FG
💻 Software

How do you run an executable with the same name as an alias in powershell?

Fresh5 days ago
Mar 15, 20263806 views
Confidence Score0%
0%

Problem

sc.exe is a command line tool for manipulating services on windows. E.g. to list all the services on your machine you can type from a command prompt. However, if you do it from powershell, it instead executes Set-Content because sc is an alias for Set-Content. Even will execute the alias. How do I …

Error Output

sc query

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do you run an executable with the same name as an alias in powershell?

Low Risk

You have two options, you can either use or .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment