PS1 – Windows Blog by Brink

PS1

Add Run as administrator to Context Menu of PS1 Files in Windows 11

Windows runs desktops apps and application files (ex: .bat, .cmd, .exe, and .msc file types) in user mode by default without elevated administrator rights unless it prompts you with UAC to run elevated (highest privileges).

When you use Run as administrator on a desktop app or application file, you are allowing it to run with full administrator access to everything on the computer. This means you are giving it special permissions to access restricted parts of the computer that would otherwise be off-limits. This could be a potential security risk if not a trusted app or application file, but sometimes “Run as administrator” is necessary for a trusted app or application file to run properly if it requires elevated rights for full access.

A .ps1 file is a script, or “cmdlet,” used by Windows PowerShell.

This tutorial will show you how to add or remove the Run as administrator context menu item for .ps1 files for all users in Windows 10 and Windows 11.

Read more…

How to Add “Edit or Run with” PS1 File Context Menu in Windows 10

A PS1 file is a script, or cmdlet, used by Windows PowerShell.

This tutorial will show you how to add or remove a custom Edit or Run with cascading context menu for PowerShell .ps1 files for all users in Windows 10.

The Edit or Run with cascading context menu includes the following items for PS1 files :

  • Run with PowerShell
  • Run with PowerShell as administrator
  • Run with PowerShell 7
  • Run with PowerShell 7 as administrator
  • Edit with PowerShell ISE
  • Edit with PowerShell ISE as administrator
  • Edit with PowerShell ISE (x86)
  • Edit with PowerShell ISE (x86) as administrator
  • Edit with Notepad
  • Edit with Notepad as administrator

Read more…