API Reference
Install-ModuleDependency
Installs a module and its embedded dependencies to an explicit private runtime folder.
Remarks
The command reads the dependency manifest produced by New-ConfigurationModule -Type EmbeddedModule and copies the root module plus each dependency payload to the requested path. Modules are not installed into PSModulePath unless the chosen path is already part of PSModulePath.
Examples
Install a module and all embedded dependencies to a private runtime folder
Install-ModuleDependency -Name EntraIDConfig -Path C:\PrivateDeps
Install only selected dependencies
Install-ModuleDependency -Name EntraIDConfig -DependencyName Microsoft.Graph.Authentication -Path C:\PrivateDeps -Force
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Install-ModuleDependency [-DependencyName <String[]>] [-Force] [-ListOnly] -Name <String> [-OnExists <Merge|Overwrite|Skip|Stop|Refresh>] -Path <String> [-RequiredVersion <Version>] [<CommonParameters>]#ByNameParameters
- DependencyName String[]
- Dependency names to install. When omitted, installs all embedded dependencies.
- Force SwitchParameter
- Overwrite existing dependency folders when merge or overwrite behavior requires it.
- ListOnly SwitchParameter
- Preview planned dependency copies without writing files.
- Name String
- Module containing embedded dependencies.
- OnExists OnExistsOption
- Conflict handling when a dependency version folder already exists.
- Possible values:
Merge,Overwrite,Skip,Stop,Refresh - Path String
- Destination folder. The root module and dependencies are copied under Name\Version folders.
- RequiredVersion Version
- Optional exact source module version.
Outputs
PowerForge.EmbeddedModuleDependencyInstallResult
Install-ModuleDependency [-DependencyName <String[]>] [-Force] [-ListOnly] -Module <PSObject> [-OnExists <Merge|Overwrite|Skip|Stop|Refresh>] -Path <String> [-RequiredVersion <Version>] [<CommonParameters>]#ByModuleParameters
- DependencyName String[]
- Dependency names to install. When omitted, installs all embedded dependencies.
- Force SwitchParameter
- Overwrite existing dependency folders when merge or overwrite behavior requires it.
- ListOnly SwitchParameter
- Preview planned dependency copies without writing files.
- Module PSObject
- Specific module object containing embedded dependencies.
- OnExists OnExistsOption
- Conflict handling when a dependency version folder already exists.
- Possible values:
Merge,Overwrite,Skip,Stop,Refresh - Path String
- Destination folder. The root module and dependencies are copied under Name\Version folders.
- RequiredVersion Version
- Optional exact source module version.
Outputs
PowerForge.EmbeddedModuleDependencyInstallResult