• Contact Us
  • About Us
  • Privacy Policy

TrustGuide

Guides and hows, tips for everyone

  • Home
  • Windows
  • Android
  • IT
    • Programming language
  • FaceBook
  • iPhone
  • Chrome
  • Photoshop

Useful Tips To Run Powershell Script As Administrator

October 4, 2022 by davidmr Leave a Comment

It doesn’t matter if you already know or you are new to the program; mastering how to run Powershell Script as administrator is helpful. 

Sometimes, your activity can be interrupted by high privilege requirements. Having the administrative rights, you can achieve difficult configuration tasks or manage your disk, etc. With its multiple purposes, the system is undoubtedly a useful command prompt.

https://img.rawpixel.com/private/static/images/website/2022-05/bs438-image-kwvyn2g1.jpg?w=1200&h=1200&dpr=1&fit=clip&crop=default&fm=jpg&q=75&vib=3&con=3&usm=15&cs=srgb&bg=F4F4F3&ixlib=js-2.2.1&s=551955a89b3aa5c3450aa2c0b801738c

General Information Of The System

About The Command Prompt

As a technical term, Shell means an interface that offers you access to the operating system and to obtain monitor rights. Powershell, developed by Microsoft, is an advanced command prompt version, allowing you to execute commands and perform administrative tasks and configuration. 

The open-source project can run not only on Android but also on Mac and Linux. The customizable commands in the system allow you to save lots of time on time-consuming tasks and be more productive.

Prerequisites To Get The Privileges Authority 

There are some criteria you should obtain in order to have the authority to customize commands.

  • A Windows 10 PC is recommended to have, or at least Windows 7+, so you can easily follow the tutorials.
  • Windows Powershell 5.1 or above to ensure all the methods work.
  • Create an account with administrator privileges.

How To Run Powershell Script As Administrator

https://www.canva.com/design/DAFLYzNVgmQ/0LRPSLrZ8nDuQ2p0HFGbZA/view?utm_content=DAFLYzNVgmQ&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton

Short Answer

It’s not difficult to run Powershell Script as administrator on your devices. There are either simple and more complex methods. You can select to open the administrative mode by right-clicking the icon in some places, such as the search bar, the task manager, the file explorer, etc.

We’ll go through the list of simple and easy-to-follow ones, and you can choose the one that is convenient for you.

Use Command Prompt

  • Search for Command Prompt on the Windows Menus or use the run box.
  • Access to the target system by typing its name in the CMD.
  • Copy and paste this line: start-process PowerShell -verb runas and press Enter. It will show another window that indicates your administrative authority.

Use Search Bar

If your operating system is Windows 10, you can use its Cortana Search bar. 

  • Search for the system in the search field of the Taskbar.
  • Look for the Windows Powershell option, right-click, and choose run as administrator. You’ll come to the window that has the interface running as administrator.

Use The Run Box

https://prnt.sc/v_Rzkz12fg9s

  • Hold the combination Windows + R; the dialogue box will appear with a search bar, type the name of the command prompt, and press Enter.
  • The window you need will appear; copy-paste the same command line as when you use Command prompt: start-process PowerShell -verb runas and choose Enter. After that, you’ll be granted admin authority.

Use Task Manager

  • If you use Win 8 – 10, press the combination Ctrl + Shift + Esc to open the Task manager, and choose More details in the bottom left corner.
  • On the Menu bar, explore the File option, click on it, then select Run new task.
  • It will show a box named Create new task, write Powershell and agree with the checkbox Create this task with administrative privileges, then hit the OK option. 
  • You’ll see the new window indicating you have the command authority and can approach the operating system’s services.

Use File Explorer

Powershell Executable

  • If your operating system is 32-bit or 64-bit, you can navigate to one of these two folders and do some more steps to monitor different configuration tasks. 
    • 32-bit operating system: C:\Windows\Systems32\WindowsPowerShell\v1.0
    • 64-bit operating system: C:\Windows\SysWOW64\WindowsPowerShell\v1.0
  • Look for the file name powershell.exe
  • Right-click on it and select Run as administrator. Now, you can customize commands.

File Explorer File Menu

  • Use the shortcuts Win Key + E or click on the icon on the Taskbar to open the File Explorer.
  • In the File Explorer, open the File option, choose Open Window Powershell, then select Open Windows Powershell as administrator.  

Use The Start Menu

https://prnt.sc/UnaUzqj81aig

  • If you are using Win10, you can try this method to monitor administrative tasks.
  • Open the Start menu by clicking on the Win symbol in the bottom left corner.
  • Scroll down to the Windows Powershell shortcut folder, select the option, then choose Run as administrator.
  • After that, you can execute commands.

The Bottom Lines

There are more ways to run Powershell Script as administrator, but we’ve presented to you some simple ones. Feel free to choose any methods from the guide above to have administrative authority and take advantage of them.

However, if it’s not really necessary, try not to use the privileged account. If you accidentally download some malicious script, your account’s permission can prevent damage to your system and protect our data. Visit trustguide.net for more useful tips to make your daily tasks easier.

Filed Under: Guideline

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Office 365 Active Directory Sync: Instructions Revealed!
  • How Does Powershell Delete Ad User? The Truth Revealed! 
  • How To Disable MFA Office 365? Easy Tips and Tricks! 
  • How To Setup Ldapsearch Windows Using AD LDS- Solved!
  • Exchange 550 5 7 1 Resolver RST Authrequired Authentication Required- Solved!

Copyright © 2023 · TrustGuide.net · Log in