小编ari*_*dar的帖子

Powershell $PROFILE 变量指向错误的位置。它设置的 $PROFILE 变量在哪里?

对我的机器进行一些更改后,Powershell 失败,因为 $PROFILE 变量指向与以前不同的位置,即它设置为

C:\Powershell\Microsoft.PowerShell_profile.ps1
Run Code Online (Sandbox Code Playgroud)

代替

C:\Users\user\Documents\Powershell\Microsoft.PowerShell_profile.ps1
Run Code Online (Sandbox Code Playgroud)

这会导致诸如找不到已安装模块等问题。所以我的问题是Powershell如何设置$PROFILE的值?可以改变吗?

powershell powershell-core

1
推荐指数
1
解决办法
5184
查看次数

标签 统计

powershell ×1

powershell-core ×1