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



..

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

CASIO fx-5800P : การ mod ด้วยเครื่องคิดเลข

sgsBB(SGS-Score Inserter) : โปรแกรมช่วยกรอกผลคะแนนจาก bookmark51 ใส่ระบบ SGS ของ สพฐ.

springMVC : เชื่อมต่อฐานข้อมูล mySQL ด้วย JDBC-Template