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)
Please log in to answer
Posted by:
piyushnasa
10 years ago
Posted by:
anonymous_9363
10 years ago
Posted by:
rileyz
10 years ago
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