How do i run a powershell script as administrator in windows 10

Apr 30, 2015 · This comes included with Windows 8+ and Server 2012+. For Windows 7, it can be downloaded from here. If running Windows 7 or 8, you will also need the Windows Management Framework 4.0. This comes included with Windows 8.1+ and Server 2012 R2+. For Windows 7 and 8, it can be downloaded from here. Connect to Exchange Online with a script Dec 28, 2016 · I have made a logon batch file which runs fine if I run it while logged in as the user interactively however when I let it run as part of the logon script local group policy it is run as Administrator and therefore not shown in Windows Explorer for the user. Is there something I am missing to get it run as the logged in user. 2.2 Click on the Advanced button & set the Run as Admin checkbox. 2.3 OK, OK {you will notice the shortcut's icon change when you do this} You can now double-click on the shortcut instead of your original script and it will run as Admin [after the normal Admin challenge]. The extra step compared to doing this for batch files is 2.1. Enable "Run as Administrator" and click on "OK" button. Now you can run PowerShell in elevated mode by simply double-clicking the new shortcut on your desktop. Run PowerShell as administrator in scheduled tasks: If you are scheduling a PowerShell script, make sure you select the "Run With Highest Privileges" check box. May 02, 2017 · In this post we are going to look at the multiple different ways to use user credentials in PowerShell. Bare in mind, the examples listed in this post aren't the only options available when it comes to using credentials in PowerShell, but these examples are a good place to start.