I have PS v4 and am working in Windows 8.1. I have been working in PS ISE as an administrator.
I was doing the chapter 5 lab exercise in “Learning Windows Powershell 3 in a month of lunches” (resetting the property value of Dontprettypath using ‘>set-itemproperty -path advanced -PSPropert Enabledontprettypath -value 1’). For some reason, it was not working.
While checking for what I might have done wrong, I think that I reset the value for HKCU. I was prompted for a value and I typed in ‘cls’.
When I run ‘get-psdrive’, I see hkcu listed.
However, I checking the location gives the following message:
>set-location -path hkcu
set-location : Cannot find path ‘C:hkcu’ because it does not exist.
At line:1, char :1
+set-location -path hkcu
- CategoryInfo : ObjectNotFound: (C:\hkcu:String) [Set-Location], ItemNotFoundException
+FullyQualifiedErrorId : PathNotFound,MicrosoftPowerShell.Commands.SetLocationCommand
I would appreciate any help you can give.