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:49] trabs-ol |
userspace:windows_updates_-_powershell [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== WSUS Updates Powershell ====== | ====== WSUS Updates Powershell ====== | ||
- | 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, | + | 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: | Voraussetzungen: | ||
- | Ordnerstruktur | + | Getestet unter Windows 7 x64 SP1 |
+ | |||
+ | Logging des Scriptes erfolgt in C: | ||
+ | |||
+ | Ordnerstruktur: | ||
CLIENT_DATA | CLIENT_DATA | ||
Line 288: | Line 292: | ||
- | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
$FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||
Line 531: | Line 535: | ||
- | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
$FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||
Line 698: | Line 702: | ||
</ | </ | ||
- | < | ||
- | </ | ||
- | |||
- | < | ||
- | </ |