If you are prompted for an administrator password or for a confirmation, type the password, or click Allow. Note: The console session is also known as. How do I run my console as an administrator To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. Write-Host 'Checking for elevated permissions. If you disable or do not configure this policy setting, logging off the connected administrator is allowed. You Must Be an Administrator Running a Console Session in Order to Use the SFC Utility FIX TutorialThe System File Checker or sfc.exe is a utility in Micro. After you open this session, start a command prompt in the session and type the following command to start the shadow session to the console: Console.
The following PowerShell code can be used to check if the current script is running in the “Run as Administrator” mode: You can either use this or the Mstsc command-line utility that is described in the Connect to the console session section, but omit the -console switch. If you need to run a PowerShell script with the administrator privileges, you can check if the current powershell.exe process has the elevated permissions right in your PS code.