Answers for "run a script as administrator in windows 11"

0

how to run cmd run administrator using script

@echo off
break off
title C:Windowssystem32cmd.exe
cls

:cmd
set /p cmd=C:Enter Command:

%cmd%
echo.
goto cmd
Posted by: Guest on October-16-2020
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 "run a script as administrator in windows 11"

Code answers related to "Assembly"

Browse Popular Code Answers by Language