SetExeToRunAsAdmin

0.0.4

Sets an EXE to run as Administrator. Usage: SetExeToRunAsAdmin.ps1 -Path <exe path> (-CurrentUser | -AllUsers)

Alternatively you can use the -UnsetInstead parameter to unset the exe to run as administrator.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name SetExeToRunAsAdmin -RequiredVersion 0.0.4

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • asherto

Tags

PowerShell Windows exe set run administrator add compatibility

Functions

AddRunAsAdministrator

Dependencies

This script has no dependencies.

Release Notes

[Version 0.0.1] - Initial Release.
[Version 0.0.2] - Fixed example.
[Version 0.0.3] - Added option to unset the exe to run as administrator and refactored function code.
[Version 0.0.4] - Fixed bug in version specification and improved examples.

FileList

Version History

Version Downloads Last updated
1.2.0 48 6/17/2023
1.1 7 6/17/2023
1.0 6 6/17/2023
0.0.8 65 9/3/2022
0.0.7 11 9/3/2022
0.0.6 11 9/3/2022
0.0.4 (current version) 10 9/3/2022
0.0.3 12 9/3/2022
0.0.2 38 7/6/2022
0.0.1 12 7/6/2022
Show less