/build/static/layout/Breadcrumb_cap_w.png

I have a requirement to run a vbscript with admin rights during every user login. Can i implement the same by including the script as part of the run registry key.

The script should be executed even if a non admin user logs in.


0 Comments   [ + ] Show comments

Answers (3)

Posted by: piyushnasa 10 years ago
Red Belt
1

I have never come across such a situation. Can you tell for what purpose do you require it at every logon. Your application is slowing down the logon time which is not a good thing to do.

Posted by: anonymous_9363 10 years ago
Red Belt
0

Holy cow...

What does the script *do*? Why does it need admin rights?

Posted by: rileyz 10 years ago
Red Belt
0

What you perpose will not work as the run key runs under the logon user context.

Ugly way of doing it, but have you thought about a schduled task to run on login? Or make it a part of you logon script?


Comments:
  • If my understanding is correct, adding it to scheduled tasks or login scripts needs to be handled as part of gropu policy settings.

    I am creating an msi to include some other requirements as well. Is there any way to include this requirement as part of the msi. - vk1231 10 years ago
  • Gah, if you mentioned you had a MSI as part of the question it would of helped...

    Not sure if this will work, but you can add in a command in the Run key to repair the MSI, simlar to the cmd you used for active setup (msiexec {productcode] /fpu etc.)

    In the msi do the custom action you need to do and condition it to run as required. So when the repair happens it will run the script.

    Its really ugly and I dont recommened you use a MSI to these kinda of things, a MSI is made to deploy software. Also this is a massive overhead to implement, your log on times may suck after this. - rileyz 10 years ago
  • Thanks. Will try that out - vk1231 10 years ago
  • I have a wierd requirment like that also. There should be a script that does some thing like this. I need to give full permissions to all users to C:\Program Files\Java\jre7 so that the users can copy some signatures to it. - Sidhugadu 10 years ago
  • This requirement can be accomplished during the installation itself. But if needs to be run during every user login, I think it cannot be accomplished using an msi - vk1231 10 years ago
  • Created a VBscript for it. Since it is a single user need - Sidhugadu 10 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ