-
Notifications
You must be signed in to change notification settings - Fork 6
/
PsGetSid.yml
36 lines (36 loc) · 1.33 KB
/
PsGetSid.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: "1.46"
description: PsGetSid. Translates SIDs to names and vice versa.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/psgetsid
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
architecture:
64bit:
url: https://live.sysinternals.com/PsGetSid64.exe
hash: 201d8e77ccc2575d910d47042a986480b1da28cf0033e7ee726ad9d45ccf4daa
bin:
- PsGetsid64.exe
- - PsGetsid64.exe
- PsGetsid
32bit:
url: https://live.sysinternals.com/PsGetSid.exe
hash: a48ac157609888471bf8578fb8b2aef6b0068f7e0742fccf2e0e288b0b2cfdfb
bin: PsGetSid.exe
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\PsGetSid"
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\PsGetSid" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
checkver: PsGetSid\s+v([\d.]+)</h1
autoupdate:
architecture:
64bit:
url: https://live.sysinternals.com/PsGetSid64.exe
32bit:
url: https://live.sysinternals.com/PsGetSid.exe