Monthly Archives: July 2015

PowerShell: Test-IsAdmin

Sometimes I only want a PowerShell function to run only if the user has local admin rights. This can be tested for by looking for the admin token. Here’s a function I use. I then call the function in my code using … Continue reading

Posted in PowerShell | Tagged , , | Leave a comment