New
#1
Run PowerShell Script As An Administrator
Hi. So I've been searching online on a way to do this yet I cannot find a way to do it.
_______________________________________
I need this in specific:
I want to double click a PowerShell script file (which will run as an administrator) from Windows Explorer that has this as the script:
Set-MpPreference -DisableRealtimeMonitoring $true
(that script requires that PowerShell needs to be run as an administrator)
_______________________________________
So those are the restrictions:
No right-click>run PowerShell as an administrator
No opening a shortcut to PowerShell (as an administrator) and pasting the command
Thanks