In a PowerShell script, how can I check if I'm running with administrator privileges?
Powershell – In a PowerShell script, how can I check if I’m running with administrator privileges
powershell
Related Topic
- Powershell – run AD commands from a standard PowerShell script
- Powershell – How to make PS script to create Hyper-V VM set administrator password for VM
- Powershell – Running a script as administrator without login as administrator
- Windows – How to we check PowerShell v2.0 is installed on a list of servers
- IIS script privileges with powershell
- Powershell – Elevate to administrator privileges in CMD/Powershell without UAC
- Powershell script to set AD permissions fails with “Access Denied” despite running account having the correct permissions
Best Answer
(from Command line safety tricks)