Posts

Showing posts from January, 2018

Location is not accessible - C:\ is not accessible - Access is denied.

Image
This post describes one way to fix the error "Location is not accessible - C:\ is not accessible - Access is denied." This can be frustrating as the C:\ drive can't be accessed! The cause of this issue in my case was because a user had been created in local users and groups with a home folder connected to \\localhost\c$.  This changed the security of the C:\ drive to only allow access to that user and Administrators. Fix 1. Right click the C:\ drive and select Properties then go to the Security tab, press Advanced then Continue to open Advanced Security Settings 2. Now press Add then the 'Select a principal' hyperlink 3. Change the Location to the local machine if necessary, then type Users, Check Names and press OK 4. Press OK, then OK, then Yes in the Windows Security dialog box Windows will now set the security information.  Click the Windows Security box to check the progress - you may see some errors setting the security on sub...

Exception setting "NetProfile": Cannot convert the "System.Object[]" value of type "System.Object[]" to type "Microsoft.Management.Infrastructure.CimInstance"

Image
When running the PowerShell command Get-NetIPConfiguration, you may see the exception: Exception setting "NetProfile": Cannot convert the "System.Object[]" value of type "System.Object[]" to type "Microsoft.Management.Infrastructure.CimInstance" This occurred on my Windows Nano Server which, for some reason, had obtained an invalid Default Gateway of 0.0.0.0 Fix To fix the exception, remove the invalid Default Gateway.  To do this on Windows Nano Server, I used the following PowerShell command: remove-netroute -interfaceindex 3 -NextHop 0.0.0.0

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

Image
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