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.
This topic is 15 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
keenkiran
Posts: 17
Last visit: Wed Jul 23, 2008 8:53 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
Last visit: Thu May 29, 2008 5:08 am

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
Last visit: Thu May 29, 2008 5:08 am

Runoce Registry key

Post by donj »

Or for that matter just deploy the MSI via Group Policy.
This topic is 15 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked