-
Notifications
You must be signed in to change notification settings - Fork 6
/
PortMon.yml
27 lines (27 loc) · 1.27 KB
/
PortMon.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
version: "3.03"
description: PortMon. Monitors serial and parallel port activity with this advanced monitoring tool.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/portmon
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/PortMon.zip
hash: ba9795f89315b84c21345b1a05b305ed2880de1fb04c58c7cfc9ebe24eedcdbb
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\Portmon"
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'
$long = 'HKCU:\SOFTWARE\Systems Internals'
Remove-Item "$sysInt\Portmon", "$long\Portmon" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
if ((Get-ChildItem $long).Count -eq 0) { Remove-Item $long -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
shortcuts:
- - portmon.exe
- SysInternals\PortMon
checkver: Portmon for Windows\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/PortMon.zip