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.

Muhammad Imran Habib

Imran is a technology evangelist with 8 years of experience working with some of the Industry leading companies. Imran's expertise includes On-Prem/Virtual Infrastructure deployments, IT Solutions for SMEs, End User Computing Support.

You may also like...