Execution

1.2.1

Common execution and self elevation

Installation Options

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

Install-Module -Name Execution -RequiredVersion 1.2.1

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

Install-PSResource -Name Execution -Version 1.2.1

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

Copyright

(c) 2019 mtb.me. All rights reserved.

Package Details

Author(s)

  • Manuel

Functions

Set-ScriptArgs Invoke-SelfElevation Exit-WithAndWaitOnExplorer Get-HashFromValue Start-NativeExecution Get-QuotedPath Test-CalledFromPrompt

Dependencies

Release Notes

* Enhancements if a new window is spawned up after self elevation
           * Breaking change for Unix/Windows self elevation calls. Use this syntax in scripts:

           #!/usr/bin/env pwsh

           [CmdletBinding()]
           param()

           $ErrorActionPreference = "Stop"
           # $ProgressPreference = "SilentlyContinue"
           Set-StrictMode -Version Latest
           [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

           # Import modules
           try { Import-Module Execution } catch { Install-Module Execution -Scope CurrentUser -Force; Import-Module Execution }

           Set-ScriptArgs $MyInvocation.BoundParameters $MyInvocation.UnboundArguments

           Invoke-SelfElevation

           Exit-WithAndWaitOnExplorer 0

FileList

Version History

Version Downloads Last updated
2.0.2 34,542 4/28/2024
2.0.1 326 4/27/2024
2.0.0 9 4/26/2024
1.7.0 23,950 3/9/2020
1.6.2 445 2/5/2020
1.6.1 85 2/3/2020
1.6.0 41 2/3/2020
1.5.1 2,277 4/24/2019
1.5.0 199 4/1/2019
1.4.4 50 3/31/2019
1.4.3 42 3/31/2019
1.4.2 43 3/31/2019
1.4.1 42 3/30/2019
1.4.0 41 3/30/2019
1.3.0 42 3/30/2019
1.2.2 42 3/29/2019
1.2.1 (current version) 40 3/29/2019
1.2.0 66 3/28/2019
1.1.0 47 3/27/2019
1.0.2 45 3/26/2019
1.0.1 103 3/17/2019
1.0.0 63 3/17/2019
Show less