1

如何在没有这些警告的情况下导入此模块:

导入模块 PowerTab

Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your
computer. Do you want to run C:\Users\someone\Documents\WindowsPowerShell\Modules\PowerTab\Handlers\PSClientManager.ps1?
[D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is "D"):
4

1 回答 1

1

我认为取决于您的执行策略配置:

你可以试试

set-executionpolicy bypass

或者

set-executionpolicy remotesigned

或者

   set-executionpolicy unrestricted

或者在模块文件夹中提取文件之前,您需要unblock模块的 zip 文件(或从中提取的所有文件):

您只需选择属性,然后在安全下单击“取消阻止”。单击取消阻止会完全删除Zone.Identifier Alternative Data Stream脚本(和其他内容)并使脚本(和其他内容)可执行。

并阅读帮助:

get-help about_execution_policies -full
于 2013-04-24T10:15:35.313 回答