You can also use PowerShell commands on remote machines configured for remote management. Waiting to read some solutions from you shortly. Create a script policy and assign it. The thing that makes this even more difficult is the user that is logged in on all of these devices is not an administrator, just a regular user. How to assign computer startup scripts To assign computer startup scripts. Note: If the compatibility tab is absent, this method will not work. The path is Computer Configuration\Windows Settings\Scripts (Startup/Shutdown). 5 Ways to Run Powershell as Administrator in Windows 10 The script 'test_admin_script.ps1' cannot be run because it contains a "#requires" statement for running as Administrator. Enable Safe Mode with Networking: Starts Windows in safe mode and includes the network drivers and services needed to access the Internet or other computers on your network. Start-Process PowerShell -Verb RunAs. run powershell script at startup as administrator If you use the code snippet (see below) at the start of your PowerShell script, you run the UAC credential prompt requiring an administrator's approval. Can't interact with the UI now because again, it's running as an admin. Run PowerShell Script as Administrator While Preserving the Working Directory We may need to preserve the script's working directory for specific situations. Note: Windows PowerShell may still need to ask for your confirmation due to your local computer's User Account Control (UAC). Currently the number of device is going to get close to 200 and i need to get this script to run as admin on all machines from the applied GPO. There are three different safe mode options: Enable Safe Mode: Starts Windows with a minimal set of drivers and services. How-to Run a PowerShell Script - All Options Explained 3. The easiest way to run PowerShell scripts as an administrator is to start Windows PowerShell as administrator. Using Run box. 2. As far as I know, Startup scripts run just before the boot process gets to the logon screen, and in the context of the local computer account, which has local administrative privileges .