PowerShell : การรัน Script *.ps1
..
ใช้คำสั่ง powershell ./xxx.ps1
แต่ปกติจะรันไม่ได้ เกิด Error: cannot be loaded because running scripts is disabled on this system
ต้องเปิด PowerShell ด้วยสิทธิ Administrator แล้วพิมพ์คำสั่ง
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
แล้วพิมพ์ A
การเปิดและ ปิด
https://stackoverflow.com/questions/4037939/powershell-says-execution-of-scripts-is-disabled-on-this-system
cannot be loaded because running scripts is disabled on this system
..
ความคิดเห็น
แสดงความคิดเห็น