I am very new to scripting. My challenge here is to write a script, which I will apply via Group Policy later, to use runas to execute a command with multiple switches. Below are the lines I am troubleshooting:
Set WshShell = CreateObject("WScript.Shell"
WshShell.Run "runas /user:domain\useracct secedit /configure /db c:\abc.sdb /cfg c:\abc.inf"
The problem I am having is that runas will not take the switches after the command "secedit".
Could someone help?!!!
Set WshShell = CreateObject("WScript.Shell"
WshShell.Run "runas /user:domain\useracct secedit /configure /db c:\abc.sdb /cfg c:\abc.inf"
The problem I am having is that runas will not take the switches after the command "secedit".
Could someone help?!!!