This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
userspace:windows_updates_-_powershell [2017/03/02 09:45] trabs-ol |
userspace:windows_updates_-_powershell [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Mit diesem Script werden so lange Updates | + | ====== WSUS Updates |
- | Voraussetzungen: | + | Mit diesem Script werden so lange Updates intstalliert bis keine mehr vorliegen. Die Updates werden nur nach 19 Uhr und vor 7 Uhr installiert um den User nicht an der Anmeldung zu hindern. Aussnahme: Der Rechner wurde neu installiert, |
+ | |||
+ | Voraussetzungen: | ||
+ | |||
+ | Getestet unter Windows 7 x64 SP1 | ||
+ | |||
+ | Logging des Scriptes erfolgt in C: | ||
+ | |||
+ | Ordnerstruktur: | ||
+ | |||
+ | CLIENT_DATA | ||
+ | * install-updates.ps1 | ||
+ | * install-updates-once.ps1 | ||
+ | * once64.ins | ||
+ | * setup64.ins | ||
+ | * windows_update_icon.png (nur fürs gute Aussehen) | ||
+ | |||
+ | OPSI | ||
+ | * control | ||
setup64.ins | setup64.ins | ||
Line 274: | Line 292: | ||
- | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
$FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||
Line 517: | Line 535: | ||
- | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
$FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||
Line 684: | Line 702: | ||
</ | </ | ||
- | < | ||
- | </ | ||
- | |||
- | < | ||
- | </ |