powershell profile

查看当前的powershell 从哪里读配置
$profile

powershell 每次启动前会读取 C:\Users\$name\Documents\PowerShell\Microsoft.PowerShell_profile.ps1

在这文件里配置上alias等

管理员身份打开powershell,执行命令:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned

 

posted @ 2020-08-05 10:45  fndefbwefsowpvqfx  阅读(137)  评论(0编辑  收藏  举报