For the life of me i cant figure this out, if someone could shed some light on this i would be grateful. i planned on using the code below to call a exe from the vbs with diff user credentials.
my plan was to send a drive out with nuix collector and have it so any user could run the VBS using the encoded credentials in the script. i will encode later once i am able to get this thing to work.
i can get it to work in batch, but i would rather not do so.
Code:
Option explicit
Dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
oShell.Run "RunAs /user:domain\user ""Nuix Collector\Modules\Nuix Portable.exe"
WScript.Sleep 100
oShell.Sendkeys "passwd~"
Wscript.Quiti can get it to work in batch, but i would rather not do so.