Runoce Registry key

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
keenkiran
Posts: 17
Joined: Thu Mar 27, 2008 9:10 pm

Runoce Registry key

Post by keenkiran »

Hi,I need to install a package using VBScript.But the script should start automatically after the reboot.For this I am using Runonce registry key.So once the user login's then the script runs by itself.But the problem here is - The user should have admin rights. Is there any other way that the script can be run with out admin rights.

User avatar
donj
Posts: 416
Joined: Thu Nov 16, 2006 9:02 pm

Runoce Registry key

Post by donj »

If the user needs admin rights to perform the task, then they need admin rights to run the script. Unfortunately, a script isn't designed to bypass Windows' security.

You might consider packaging the script (PrimalScript Pro and Enterprise offer a packager) in an EXE that allows alternate credentials to be applied.

User avatar
donj
Posts: 416
Joined: Thu Nov 16, 2006 9:02 pm

Runoce Registry key

Post by donj »

Or for that matter just deploy the MSI via Group Policy.

Locked