Answers for "how to run as administrator in cmd from a folder"

5

run cmd as administrator command line

powershell -command "start-process cmd -verb runas"
Posted by: Guest on May-14-2021
0

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”
Posted by: Guest on October-16-2020

Code answers related to "how to run as administrator in cmd from a folder"

Code answers related to "Assembly"

Browse Popular Code Answers by Language