Hi,
I want to run an existing vbscript using different user name and password.
WshShell.Runas "cmd.exe /c Net Localgroup " & Chr(34 ) & "Administrators" & Chr(34 ) & "abc\Test /add
If I got this right I am specifying the local group (admins) and the domain group (abc\test), but how do I adjust the coding to specify the user name and password I want this run under?
Thanks.
I want to run an existing vbscript using different user name and password.
WshShell.Runas "cmd.exe /c Net Localgroup " & Chr(34 ) & "Administrators" & Chr(34 ) & "abc\Test /add
If I got this right I am specifying the local group (admins) and the domain group (abc\test), but how do I adjust the coding to specify the user name and password I want this run under?
Thanks.