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
Post a Comment