Import-Module : The specified module 'SmbShare' was not loaded because no valid module file was found in any module directory - Nano Server

This post describes how to fix the error "Import-Module : The specified module 'SmbShare' was not loaded because no valid module file was found in any module directory." on Windows Nano Server.

This error can occur if you try to import the SmbShare module without having first installed the File Server role.  To install this role on Windows Nano Server:

1. Install the Nano Server Package Provider:

Save-Module -Path "$env:programfiles\WindowsPowerShell\Modules\" -Name NanoServerPackage -minimumVersion 1.0.1.0

Import-PackageProvider NanoServerPackage

2. Install the File Server role:

Install-NanoServerPackage Microsoft-NanoServer-Storage-Package

3. Restart the Windows Nano Server.

Once the server has restarted, you can run the SmbShare cmdlets e.g. Get-SmbShare


Comments

Popular posts from this blog

LG TV This app will now restart to free up more memory

LG TV Clear All Browsing History Data

LG TV turn off Quick Start in settings