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 10:05] 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: | ||
| Line 9: | Line 9: | ||
| Logging des Scriptes erfolgt in C: | Logging des Scriptes erfolgt in C: | ||
| - | Ordnerstruktur | + | Ordnerstruktur: |
| CLIENT_DATA | CLIENT_DATA | ||
| Line 292: | Line 292: | ||
| - | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
| $FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||
| Line 535: | Line 535: | ||
| - | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
| $FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||