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

0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer


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.

Answered 05/30/2013 by: piyushnasa
Red Belt

Please log in to comment


This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.


Holy cow...

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

Answered 05/29/2013 by: VBScab
Red Belt

Please log in to comment

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?

Answered 05/29/2013 by: rileyz
Red Belt

  • 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.
  • 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.
  • Thanks. Will try that out
  • 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.
  • 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
  • Created a VBscript for it. Since it is a single user need
Please log in to comment
Answer this question or Comment on this question for clarity