if(!(get-command psexec -ea SilentlyContinue)){
if (!(Get-Command choco.exe -ErrorAction SilentlyContinue)) {
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
choco install sysinternals -y
}
C:\ProgramData\chocolatey\lib\sysinternals\tools ShimGen has successfully created a shim for accesschk.exe ShimGen has successfully created a shim for accesschk64.exe ShimGen has successfully created a shim for AccessEnum.exe ShimGen has successfully created a shim for ADExplorer.exe ShimGen has successfully created a shim for ADInsight.exe ShimGen has successfully created a shim for adrestore.exe ShimGen has successfully created a shim for Autologon.exe ShimGen has successfully created a shim for Autoruns.exe ShimGen has successfully created a shim for Autoruns64.exe ShimGen has successfully created a shim for autorunsc.exe ShimGen has successfully created a shim for autorunsc64.exe ShimGen has successfully created a shim for Bginfo.exe ShimGen has successfully created a shim for Bginfo64.exe ShimGen has successfully created a shim for Cacheset.exe ShimGen has successfully created a shim for Clockres.exe ShimGen has successfully created a shim for Clockres64.exe ShimGen has successfully created a shim for Contig.exe ShimGen has successfully created a shim for Contig64.exe ShimGen has successfully created a shim for Coreinfo.exe ShimGen has successfully created a shim for Coreinfo64.exe ShimGen has successfully created a shim for CPUSTRES.EXE ShimGen has successfully created a shim for CPUSTRES64.EXE ShimGen has successfully created a shim for ctrl2cap.exe ShimGen has successfully created a shim for Dbgview.exe ShimGen has successfully created a shim for Desktops.exe ShimGen has successfully created a shim for disk2vhd.exe ShimGen has successfully created a shim for diskext.exe ShimGen has successfully created a shim for diskext64.exe ShimGen has successfully created a shim for Diskmon.exe ShimGen has successfully created a shim for DiskView.exe ShimGen has successfully created a shim for du.exe ShimGen has successfully created a shim for du64.exe ShimGen has successfully created a shim for efsdump.exe ShimGen has successfully created a shim for FindLinks.exe ShimGen has successfully created a shim for FindLinks64.exe ShimGen has successfully created a shim for handle.exe ShimGen has successfully created a shim for handle64.exe ShimGen has successfully created a shim for hex2dec.exe ShimGen has successfully created a shim for hex2dec64.exe ShimGen has successfully created a shim for junction.exe ShimGen has successfully created a shim for junction64.exe ShimGen has successfully created a shim for ldmdump.exe ShimGen has successfully created a shim for Listdlls.exe ShimGen has successfully created a shim for Listdlls64.exe ShimGen has successfully created a shim for livekd.exe ShimGen has successfully created a shim for livekd64.exe ShimGen has successfully created a shim for LoadOrd.exe ShimGen has successfully created a shim for LoadOrd64.exe ShimGen has successfully created a shim for LoadOrdC.exe ShimGen has successfully created a shim for LoadOrdC64.exe ShimGen has successfully created a shim for logonsessions.ex ShimGen has successfully created a shim for logonsessions64. ShimGen has successfully created a shim for movefile.exe ShimGen has successfully created a shim for movefile64.exe ShimGen has successfully created a shim for notmyfault.exe ShimGen has successfully created a shim for notmyfault64.exe ShimGen has successfully created a shim for notmyfaultc.exe ShimGen has successfully created a shim for notmyfaultc64.ex ShimGen has successfully created a shim for ntfsinfo.exe ShimGen has successfully created a shim for ntfsinfo64.exe ShimGen has successfully created a shim for pagedfrg.exe ShimGen has successfully created a shim for pendmoves.exe ShimGen has successfully created a shim for pendmoves64.exe ShimGen has successfully created a shim for pipelist.exe ShimGen has successfully created a shim for pipelist64.exe ShimGen has successfully created a shim for portmon.exe ShimGen has successfully created a shim for procdump.exe ShimGen has successfully created a shim for procdump64.exe ShimGen has successfully created a shim for procexp.exe ShimGen has successfully created a shim for procexp64.exe ShimGen has successfully created a shim for Procmon.exe ShimGen has successfully created a shim for Procmon64.exe ShimGen has successfully created a shim for PsExec.exe ShimGen has successfully created a shim for PsExec64.exe ShimGen has successfully created a shim for psfile.exe ShimGen has successfully created a shim for psfile64.exe ShimGen has successfully created a shim for PsGetsid.exe ShimGen has successfully created a shim for PsGetsid64.exe ShimGen has successfully created a shim for PsInfo.exe ShimGen has successfully created a shim for PsInfo64.exe ShimGen has successfully created a shim for pskill.exe ShimGen has successfully created a shim for pskill64.exe ShimGen has successfully created a shim for pslist.exe ShimGen has successfully created a shim for pslist64.exe ShimGen has successfully created a shim for PsLoggedon.exe ShimGen has successfully created a shim for PsLoggedon64.exe ShimGen has successfully created a shim for psloglist.exe ShimGen has successfully created a shim for psloglist64.exe ShimGen has successfully created a shim for pspasswd.exe ShimGen has successfully created a shim for pspasswd64.exe ShimGen has successfully created a shim for psping.exe ShimGen has successfully created a shim for psping64.exe ShimGen has successfully created a shim for PsService.exe ShimGen has successfully created a shim for PsService64.exe ShimGen has successfully created a shim for psshutdown.exe ShimGen has successfully created a shim for pssuspend.exe ShimGen has successfully created a shim for pssuspend64.exe ShimGen has successfully created a shim for RAMMap.exe ShimGen has successfully created a shim for RegDelNull.exe ShimGen has successfully created a shim for RegDelNull64.exe ShimGen has successfully created a shim for regjump.exe ShimGen has successfully created a shim for ru.exe ShimGen has successfully created a shim for ru64.exe ShimGen has successfully created a shim for sdelete.exe ShimGen has successfully created a shim for sdelete64.exe ShimGen has successfully created a shim for ShareEnum.exe ShimGen has successfully created a shim for ShellRunas.exe ShimGen has successfully created a shim for sigcheck.exe ShimGen has successfully created a shim for sigcheck64.exe ShimGen has successfully created a shim for streams.exe ShimGen has successfully created a shim for streams64.exe ShimGen has successfully created a shim for strings.exe ShimGen has successfully created a shim for strings64.exe ShimGen has successfully created a shim for sync.exe ShimGen has successfully created a shim for sync64.exe ShimGen has successfully created a shim for Sysmon.exe ShimGen has successfully created a shim for Sysmon64.exe ShimGen has successfully created a shim for Tcpvcon.exe ShimGen has successfully created a shim for Tcpview.exe ShimGen has successfully created a shim for Testlimit.exe ShimGen has successfully created a shim for Testlimit64.exe ShimGen has successfully created a shim for vmmap.exe ShimGen has successfully created a shim for Volumeid.exe ShimGen has successfully created a shim for Volumeid64.exe ShimGen has successfully created a shim for whois.exe ShimGen has successfully created a shim for whois64.exe ShimGen has successfully created a shim for Winobj.exe ShimGen has successfully created a shim for ZoomIt.exe The install of sysinternals was successful.
# Script to obtain folder size
$folder='C:\ProgramData\chocolatey\lib\sysinternals\tools'
$foldersize=(Get-ChildItem $folder -Recurse | Measure-Object -Property Length -Sum -ErrorAction Stop).Sum
$sizeInMb=[math]::round($folderSize/1MB,2)
write-host "$folder is $sizeInMb MiB"
C:\ProgramData\chocolatey\lib\sysinternals\tools is 74.04 MiB
Categories: