Windows – Powershell A Drive C Does Not Exist

command linepowershellwindows 7

I am using a regular system, nothing virtual, my C drive is not mapped which I see in some forums. Environment path not set?

I started a tutorial to learn Powershell, and the first thing I tried to execute was very simple:

PS C:\Users\user> get-help get

Error I receive:

get-help : Cannot find drive. A drive with the name '.C' does not exist.
At line:1 char:1
+ get-help get
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (.C:String) [Get-Help], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetHelpCommand

Image:
enter image description here

System:

Windows7, Powershell 4.0, .NET 4.5

Best Answer

So it seems that I had a bug in my Environment Variables, Path. Here is the screen shot of what I changed.
enter image description here


After trying to reboot and fail. Uninstalled .NET, reinstalled .NET, reinstalled a Powershell version and still fail. I ended up checking my Environment Variables. I had changed them a few years ago per a "fix" for JUNIT testing in Java programming.

Related Question