Skip to content

Instantly share code, notes, and snippets.

@kdu2
kdu2 / Get-LargePortability.ps1
Created September 13, 2018 21:11
Find large portability archives over 100MB
param([string]$profiles="\\server\profiles")
$portability = Get-ChildItem -Path $profiles -Recurse -Include *.7z | where { $_.Length/1MB -gt 100 }
$archives = @()
foreach ($archive in $portability) {
$archive_temp = @()
$archive_temp = New-Object System.Object
$archivepath = $archive.fullname.split('\')
@kdu2
kdu2 / vdi_cleanup.bat
Created December 21, 2017 22:12
run this on parent image before shutting down and creating a snapshot for Horizon View pool recompose
@echo off
REM run as admin before shutdown/snapshot for new image recompose
@echo on
REM *********************
REM Stop and disable update services
REM *********************
net stop wuauserv
sc config wuauserv start= disabled
net stop adobearmservice
net stop adobeflashplayerupdatesvc