Archive for Februar 12th, 2017

Triumph Street Scrambler MY17 – is designed with the spirit of individualism and customisation in mind

Sonntag, Februar 12th, 2017

Microsoft Windows Server 2016 Nano Server – die Installation von Updates

Sonntag, Februar 12th, 2017

microsoftwindowsserver2016_logo   Der Microsoft Windows Server 2016 Nano Server – ist ein sogenanntes Headless System das dem Nutzer keine Möglichkeit bietet sich lokal anzumelden. Ebenso fehlt eine grafische Bedienoberfläche und trotzdem muss man natürlich Verwaltungsaufgaben durchführen z.B.: die Installation von Updates

Set-Item WSMan:\localhost\Client\TrustedHosts „192.168.1.101
Start-Service WinRM
$ip = „192.168.1.101“
$user = „$ip\Administrator“
Enter-PSSession -ComputerName $ip -Credential $user
$sess = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession
$scanResults = Invoke-CimMethod -InputObject $sess -MethodName ScanForUpdates -Arguments @{SearchCriteria=“IsInstalled=0″;OnlineScan=$true}
Invoke-CimMethod -InputObject $sess -MethodName ApplyApplicableUpdates
Restart-Computer