注:win10系统默认已安装了PowerShell

win+r打开运行:

Win10系统PowerShell执行.ps1文件

输入:$PSVersionTable查看powershell版本

Win10系统PowerShell执行.ps1文件

进入ps1文件目录:PS C:\Users\admin> cd E:\DevEnviroments\skype-docs-master\Skype\WebSDK\build
执行ps1文件:PS E:\DevEnviroments\skype-docs-master\Skype\WebSDK\build> .\Build-Samples.ps1

Win10系统PowerShell执行.ps1文件

开启权限:set-executionpolicy remotesigned

Win10系统PowerShell执行.ps1文件

结果提示要以管理员身份运行,

进入:C:\Windows\System32\WindowsPowerShell\v1.0

Win10系统PowerShell执行.ps1文件

右键选择以管理员身份运行,进入后执行  set-executionpolicy remotesigned

Win10系统PowerShell执行.ps1文件

 此时再执行ps1文件成功:

Win10系统PowerShell执行.ps1文件

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-07-18
  • 2021-07-11
  • 2022-12-23
  • 2021-07-20
猜你喜欢
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-05-12
相关资源
相似解决方案