Powershell模块脚手架
取决于powershell 5.1(大多数系统上的默认Windows powershell)
克隆
将此存储库克隆到模块路径中。
使用以下方法检查潜在模块路径文件夹的列表:
$ env:PSModulePath -replace“;”,“`n”
我通常将它们存储在我的Documents文件夹下的远传目录中
为了最方便,所有powershell脚本和模块都应存储在powershell建议的脚本和模块路径中。
使用此模块搭建项目/模块/脚本
检查PC上可用的模块,以查看此项目是否在清单中:
获取模块-ListAvailable-名称powershell_scaffolder
该命令的输出应类似于:
目录:C:\ Users \ you \ OneDrive \ Documents \ WindowsPowerShell \ Modules
Modu