Where does Windows PowerShell set $profile?

前端 未结 4 420
你的背包
你的背包 2021-01-18 05:44

I would like to move my default \"My Documents\\WindowsPowerShell\" folder. However, when I try this, PowerShell of course can\'t find $profile. Is there a file or something

4条回答
  •  感动是毒
    2021-01-18 06:16

    By default $Profile/$Home/$PSModulePath are all within the registry... normally under

    • HKEY_CURRENT_USER\Volatile Environment for User environment variables
    • HKEY_CURRENT_USER\Environment for System environment variables
    • HKEY_CURRENT_USER\Software\Microsoft\Windows\Explorer\User Shell Folders

    and elsewhere!

提交回复
热议问题