mardi 13 septembre 2011

Run powershell with elevated privileges

Sometimes,it depends on what you need to do, but you'll need to run power shell with elevated privileges.

You can run power shell with elevated privileges with this command line:
runas /noprofile /user:YOURUSER "C:\windows\system32\windowspowershell\v1.0\powershell.exe -NoExit & 'c:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWERSHELL\Registration\SharePoint.ps1

Aucun commentaire:

Enregistrer un commentaire