Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to run cmd run administrator using script

Set objShell = CreateObject(“Shell.Application”)
Set objWshShell = WScript.CreateObject(“WScript.Shell”)
Set objWshProcessEnv = objWshShell.Environment(“PROCESS”)

objShell.ShellExecute “C:Windowssystem32cmd.exe”, “/k”, “”, “runas”
Source by qastack.id #
 
PREVIOUS NEXT
Tagged: #run #cmd #run #administrator #script
ADD COMMENT
Topic
Name
1+1 =