PS1--cannot be loaded because the execution of scripts is disabled on this system

在nagiosXI上,經過nsclient++ 引用plugin 「check_ms_win_disk_load」(https://outsideit.net/check-ms-win-disk-load/),安裝好後,報錯信息:cannot be loaded because the execution of scripts is disabled on this system。ios

在網上搜到問題根源在於ps1的執行環境,中須要設置:ide

set-executionpolicy unrestricted

 而後經過 get-executionpolicy 檢查當前的policy若是是 unrestricted,就應該能夠成功執行了。this

相關文章
相關標籤/搜索