-
Notifications
You must be signed in to change notification settings - Fork 6
/
ShareEnum.yml
25 lines (25 loc) · 1.16 KB
/
ShareEnum.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
version: "1.61"
description: ShareEnum. Scans all the computers within the domains accessible to it, showing file and print shares and their security settings.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/shareenum
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/ShareEnum.zip
hash: 7f88cabcf12a502e8242d5d1d899ee6d1ddec6642e56cbd6511a698827cbfcba
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\Share Enum"
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\Share Enum", "$sysInt\ShareEnum" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
shortcuts:
- - ShareEnum.exe
- SysInternals\ShareEnum
checkver: ShareEnum\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/ShareEnum.zip