How to Open PowerShell With Admin Privileges From CMD – Windows 11

PowerShell and Command Prompt (CMD) have a bunch of overlapping functionality, but what if you particularly need to launch PowerShell from Command Prompt or a batch file? This article will walk you through the process, here’s how:

When running any application from an elevated Command Prompt, that application also begins with administrative rights. The same goes for batch files — if the script was run as administrator, any applications launched by the script will also be run as administrator. Type PowerShell into Command Prompt to start PowerShell with admin privileges.

Initiating PowerShell with administrative rights from a regular, non-elevated Command Prompt window is a pretty roundabout form of doing things. You need to invoke PowerShell from Command Prompt to establish a separate PowerShell window.

To do so, write or paste “PowerShell start-process PowerShell -verb runas” into Command Prompt, and press Enter.

A new elevated PowerShell window will appear.

Be careful as always doing things in an eloquent PowerShell window.

Miguel

I started this tech blog back in 2011 as a place to write down processes I took to fix my client systems and network. Now I write some tips and tricks to help others with the tech issues that one might encounter.

You may also like...