注:win10系統默認已安裝了PowerShell
win+r打開運行:
輸入:$PSVersionTable查看powershell版本
進入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
開啓權限:set-executionpolicy remotesigned
結果提示要以管理員身份運行,
進入:C:\Windows\System32\WindowsPowerShell\v1.0
右鍵選擇以管理員身份運行,進入後執行 set-executionpolicy remotesigned
此時再執行ps1文件成功: