How to run as admin when run as another user in Sharepoint admin shell?

Start-Process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" `
-Verb RunAs `
-ArgumentList "-NoExit", "-Command", "Add-PSSnapin Microsoft.SharePoint.PowerShell"

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply