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:48] trabs-ol |
userspace:windows_updates_-_powershell [2021/08/23 08:37] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | 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, | + | ====== 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, | ||
Voraussetzungen: | Voraussetzungen: | ||
- | Ordnerstruktur | + | Getestet unter Windows 7 x64 SP1 |
+ | |||
+ | Logging des Scriptes erfolgt in C: | ||
+ | |||
+ | Ordnerstruktur: | ||
CLIENT_DATA | CLIENT_DATA | ||
- | * install-updates.ps1 | + | * install-updates.ps1 |
- | * install-updates-once.ps1 | + | * install-updates-once.ps1 |
- | * once64.ins | + | * once64.ins |
- | * setup64.ins | + | * setup64.ins |
+ | * windows_update_icon.png (nur fürs gute Aussehen) | ||
OPSI | OPSI | ||
- | * control | + | * control |
setup64.ins | setup64.ins | ||
Line 285: | Line 292: | ||
- | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
$FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||
Line 528: | Line 535: | ||
- | $LogPath = 'C: | + | $LogPath = "$env:SystemDrive\tmp\windows-update-opsi.log" |
$FirstRun = Test-Path -Path $LogPath | $FirstRun = Test-Path -Path $LogPath | ||
Line 695: | Line 702: | ||
</ | </ | ||
- | < | ||
- | </ | ||
- | |||
- | < | ||
- | </ |