FG
💻 Software

how to run a powershell script as administrator

Fresh5 days ago
Mar 15, 2026513576 views
Confidence Score1%
1%

Problem

On my Windows 7 Desktop, I have script.ps1, which needs admin privileges (it starts a service). I want to click on this script and run it with admin privileges. What's the easiest way to accomplish this?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how to run a powershell script as administrator

Low Risk

Here is one way of doing it, with the help of an additional icon on your desktop. I guess you could move the script someone else if you wanted to only have a single icon on your desktop. Create a shortcut to your Powershell script on your desktop Right-click the shortcut and click Properties Click the Shortcut tab Click Advanced Select Run as Administrator You can now run the script elevated by simple double-clicking the new shortcut on your desktop.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment