This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('\') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |