Execution
1.2.2
Common execution and self elevation
Installation Options
Author(s)
Manuel
Copyright
(c) 2019 mtb.me. All rights reserved.
Package Details
Owners
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
- Execution.nuspec
- Execution.psd1
- Execution.psm1
Version History
Version | Downloads | Last updated |
---|---|---|
1.7.0 | 14,108 | 3/9/2020 |
1.6.2 | 440 | 2/5/2020 |
1.6.1 | 80 | 2/3/2020 |
1.6.0 | 36 | 2/3/2020 |
1.5.1 | 2,272 | 4/24/2019 |
1.5.0 | 194 | 4/1/2019 |
1.4.4 | 45 | 3/31/2019 |
1.4.3 | 37 | 3/31/2019 |
1.4.2 | 38 | 3/31/2019 |
1.4.1 | 37 | 3/30/2019 |
1.4.0 | 36 | 3/30/2019 |
1.3.0 | 37 | 3/30/2019 |
1.2.2 (current version) | 37 | 3/29/2019 |
1.2.1 | 35 | 3/29/2019 |
1.2.0 | 61 | 3/28/2019 |
1.1.0 | 42 | 3/27/2019 |
1.0.2 | 40 | 3/26/2019 |
1.0.1 | 98 | 3/17/2019 |
1.0.0 | 56 | 3/17/2019 |