Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

powershell elevate to admin within a function

#To run an entire PowerShell session prompting for UAC:
Start-Process powershell.exe -Verb runAs
 
PREVIOUS NEXT
Tagged: #powershell #elevate #admin #function
ADD COMMENT
Topic
Name
1+1 =