-
Notifications
You must be signed in to change notification settings - Fork 6
/
PsShutdown.yml
23 lines (23 loc) · 1.03 KB
/
PsShutdown.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: "2.6"
description: PsShutdown. Shutdown, logoff and power manage local and remote systems.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/psshutdown
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://live.sysinternals.com/PsShutdown.exe
hash: 13fd3ad690c73cf0ad26c6716d4e9d1581b47c22fb7518b1d3bf9cfb8f9e9123
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\PsShutdown"
New-Item $sysint, $fin -ErrorAction 'SilentlyContinue' | Out-Null
Set-ItemProperty -Path $fin -Name 'EulaAccepted' -Value 1 -Type 'DWord' -Force | Out-Null
pre_uninstall: |
if ($purge) {
$sysInt = 'HKCU:\SOFTWARE\Sysinternals'
Remove-Item "$sysInt\PsShutdown" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
bin: PsShutdown.exe
checkver: PsShutdown\s+v([\d.]+)</h1
autoupdate:
url: https://live.sysinternals.com/PsShutdown.exe