Skip to content

Latest commit

 

History

History
174 lines (136 loc) · 3.95 KB

File metadata and controls

174 lines (136 loc) · 3.95 KB
external help file PSPublishModule-help.xml
Module Name PSPublishModule
online version https://github.com/EvotecIT/PSPublishModule
schema 2.0.0

Import-ModuleDependency

SYNOPSIS

Imports a module runtime by exact paths, with dependencies loaded before the root module.

SYNTAX

ByName (Default)

Import-ModuleDependency [[-Name] <string>] [[-Path] <string>] [-RequiredVersion <version>] [-DependencyName <string[]>] [-Force] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

ByModule

Import-ModuleDependency [[-Path] <string>] -Module <psobject> [-RequiredVersion <version>] [-DependencyName <string[]>] [-Force] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

ByPath

Import-ModuleDependency [-Path] <string> [-DependencyName <string[]>] [-Force] [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Use -Name to import dependencies directly from a module's bundled Internals\Modules payload and then import that module by exact path. Add -Path after Install-ModuleDependency to import the private runtime copy without relying on PSModulePath discovery.

EXAMPLES

EXAMPLE 1

Import-ModuleDependency -Name EntraIDConfig

EXAMPLE 2

Import-ModuleDependency -Name EntraIDConfig -Path C:\PrivateDeps

PARAMETERS

-DependencyName

Dependency names to import. When omitted, imports all dependencies in the receipt.

Type: String[]
Parameter Sets: ByName, ByModule, ByPath
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Force

Force re-import of modules already loaded in the session.

Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Module

Specific module object containing embedded dependencies.

Type: PSObject
Parameter Sets: ByModule
Aliases: None
Possible values:

Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: True

-Name

Module containing embedded dependencies.

Type: String
Parameter Sets: ByName
Aliases: ModuleName
Possible values:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: True

-PassThru

Return imported module information from Import-Module -PassThru.

Type: SwitchParameter
Parameter Sets: ByName, ByModule, ByPath
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Path

Installed dependency root or module-dependencies.json receipt path.

Type: String
Parameter Sets: ByName, ByModule, ByPath
Aliases: None
Possible values:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-RequiredVersion

Optional exact source module version when using -Name or -Module.

Type: Version
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • System.String System.Management.Automation.PSObject

OUTPUTS

  • System.Object

RELATED LINKS

  • None