Skip navigation
Patch Nano Server

Patch Nano Server

Q. How do I patch Nano Server?

A. For a regular Windows installation patching is possible through the Update option and even with Server Core the sconfig menu can be used to trigger an update cycle. For Nano Server there is no Update utility or sconfig menu to trigger the patching. One option is to use Server Management Tools which is the Azure-based management tool which has an update option.

The other option is by triggering PowerShell commands remotely to look for updates and install them from Windows Update:

Enter-PSSession -ComputerName NanoVM

#Look for updates
$ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession  
$result = $ci | Invoke-CimMethod -MethodName ScanForUpdates -Arguments @{SearchCriteria="IsInstalled=0";OnlineScan=$true}
$result.Updates

#Install updates
Invoke-CimMethod -InputObject $ci -MethodName ApplyApplicableUpdates
Restart-Computer; exit

Enter-PSSession -ComputerName NanoVM
#View installed updates
$ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession
$result = $ci | Invoke-CimMethod -MethodName ScanForUpdates -Arguments @{SearchCriteria="IsInstalled=1";OnlineScan=$true}
$result.Updates

If you have the cumulative update downloaded you can copy it to the Nano instance then install it:

$s = New-PSSession -ComputerName NanoVM
Copy-Item -ToSession $s -Path C:\ServicingPackages_cabs -Destination C:\ServicingPackages_cabs -Recurse
Enter-PSSession $s

Add-WindowsPackage -Online -PackagePath C:\ServicingPackages_cabs\Windows10.0-KB3200970-x64.cab
Restart-Computer; exit

If you receive a disk space error increase the size of the VHD from the default 4 GB.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish