Opening an administrator-privileged PowerShell on Windows

Some of the commands you'll run while installing tools on Windows are to be executed in a PowerShell window with elevated privileges. We mention this because the process of enabling the WSL includes a command to be run in such a PowerShell window.

The process is simple:

  1. In the Start menu, enter PowerShell in the applications search box.
  2. The resultant menu will list PowerShell.
  3. Right-click the PowerShell entry.
  4. The context menu that comes up will have an entry Run as Administrator. Click on that.

The resultant command window will have administrator privileges, and the title bar will say Administrator: Windows PowerShell.

Get Node.js Web Development - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.