在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