Skip to main content

Windows Update Skript

1.) Windows-UUID

Um bei Windows die UUID abzufragen gibt du folgenden Befehl in der CMD ein:

wmic csproduct get uuid

 

2.) Python Installieren

Da das Skript auf Python basiert, brauchen wir Python auf dem Server, gebe folgendes in der PowerShell ein:

$pythonUrl = "https://www.python.org/ftp/python/3.12.2/python-3.12.2-amd64.exe"
$installer = "$env:TEMP\python-installer.exe"

Invoke-WebRequest -Uri $pythonUrl -OutFile $installer
Start-Process -FilePath $installer -ArgumentList "/quiet InstallAllUsers=1 PrependPath=1 Include_pip=1" -Wait
Remove-Item $installer