Running a command as Administrator using PowerShell?
Running a command as Administrator using PowerShell?
Running a command as Administrator using PowerShell?
Re: Running a command as Administrator using PowerShell?
If the current console is not elevated and the operation you're trying to do requires elevated privileges then you can start `powershell` with the **Run as Administrator** option :
```
PS> Start-Process powershell -Verb runAs
```
[Microsoft Docs: Start-Process](https://learn.microsoft.com/powershell/module/Microsoft.PowerShell.Management/Start-Process)
```
PS> Start-Process powershell -Verb runAs
```
[Microsoft Docs: Start-Process](https://learn.microsoft.com/powershell/module/Microsoft.PowerShell.Management/Start-Process)