powershell - cd ~ Throws error while PWD is in Regisrty -


cd ~ throwing below error .

ps hklm:\> cd ~ cd : home location provider not set. set home location,     call "(get-psprovider 'registry').home = 'path'". @ line:1 char:1 + cd ~ + ~~~~ + categoryinfo          : invalidoperation: (:) [set-location], psinvalidoperationexception + fullyqualifiederrorid : invalidoperation,microsoft.powershell.commands.setlocationcommand 

why ?

this error gets thrown because in registry , default doesn't have home directory. error message explicitly says in order set home directory (even though see no reason to) need call (get-psprovider 'registry').home = 'path'


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -