0
我是PowerShell中的新手,因为有一天我正在寻找一种解决方案来从相对路径中导入PowerShell中的dscresources。我不希望每个执行该文件的人都需要在PowerShell模块文件夹中包含模块。具有相对路径的导入DscResources
代替
Import-DscResource -Name Test
像这样
Import-DscResource -Name Test -Path "../Modules/Test"
谁能帮助我?
谢谢:)