Powershell Profiles配置文件的存放位置介绍

2019-09-30 16:46:42王旭

   + FullyQualifiedErrorId : UnauthorizedAccess

其实解决这个问题跟解决执行ps1文件的方法一样,因为这个Profile其实也是一个ps1格式的文件。所以使用Set-ExecutionPolicy RemoteSigned即可。

参考文章:http://msdn.microsoft.com/en-us/library/bb613488%28VS.85%29.aspx