After a Nano Server has been installed, you can manage the server roles and features by using the PackageManagement provider. To install the provider, run the Install-PackageProvider NanoServerPackage command. But by running this command you can encounter this error as below. To resolve this issue Microsoft suggests to reboot the machine but in the case, it does not work you can use these commands as a workaround.
Install-Module -Name NanoServerPackage -SkipPublisherCheck -Force
Set-ExecutionPolicy RemoteSigned -Scope Process
After you have the package provider installed, you can use the following PowerShell…