how to login as administrator in windows 7 using powershell code example Example: powershell admin privileges Start-Process powershell -Verb runAs