This page looks best with JavaScript enabled

Fixing: NanoServer Package.cat does not match the hash

 ·  ☕ 1 min read  ·  ✍️ Javy de Koning

Today I was deploying Windows Server 2016 Nano. After the deployment I wanted to install the IIS packages but I ran into the following error-message:

The module ‘NanoServerPackage’ cannot be installed because the catalog signature in ‘NanoServerPackage.cat’ does not match the hash generated from the module.

From PowerShell:

1Find-PackageProvider NanoServerPackage |
2  Install-PackageProvider -force

Install-PackageProvider : The module ‘NanoServerPackage’ cannot be installed because the catalog signature in ‘NanoServerPackage.cat’ does not match the hash generated from the module.

I tried updating and rebooting the machine as suggested by Microsoft but unfortunately that didn’t work.

Here is a quick workaround

1Install-Module -Name NanoServerPackage `
2              -SkipPublisherCheck -force
3
4Install-PackageProvider NanoServerPackage
5Set-ExecutionPolicy RemoteSigned -Scope Process
6Import-PackageProvider NanoServerPackage

Result

1Install-NanoServerPackage -Name `
2  Microsoft-NanoServer-Storage-Package,
3  Microsoft-NanoServer-IIS-Package
4
5"<h1>Hi from $(hostname)</h1>" > `
6  C:\inetpub\wwwroot\iisstart.htm
7
8Restart-Computer

NanoServerPackage

To find out what packages are available:

 1Find-NanoServerPackage | select name
 2
 3Name
 4----
 5SCVMM-Package
 6DSC-Package
 7FailoverCluster-Package
 8Compute-Package
 9SoftwareInventoryLogging-Package
10Containers-Package
11SecureStartup-Package
12IIS-Package
13DNS-Package
14DCB-Package
15ShieldedVM-Package
16SCVMM-Compute-Package
17Guest-Package
18OEM-Drivers-Package
19Host-Package
20Storage-Package
21Defender-Package

Javy de Koning
WRITTEN BY
Javy de Koning
Geek 🤓, Love sports 🏃‍♂️🏋️‍♂️, Food 🍛, Tech 💻, @Amsterdam ❌❌❌.