I'm using a VBS Script to invoke a runas command through CMD.
I got it working perfectly except for one little thing. I need the CMD Screen to be completely blank while working or better yet, not to be visible at all.
The VBS Script looks like this:
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run("runas /user:mydomain\domain admin user ""Path With Spaces"""), 1, False
objShell.Sendkeys "domain admin password~"
Is there a way to invoke it with @echo off or somehow make the cmd windows not to jump up.
Please keep in mind that creating a batch and invoking it using the VBS Script is NOT an option.