Active Directory Management Framework

Configuration driven Active Directory management.

Publish-AdmfContext

SYNOPSIS

Publishes a Context as a PowerShell Package.

SYNTAX

Path

Publish-AdmfContext -Path <String> -Repository <String> [-ApiKey <String>] [-GetV3]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

Store

Publish-AdmfContext -Name <String> [-Store <String>] [-Version <Version>] -Repository <String>
 [-ApiKey <String>] [-GetV3] [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Publishes a Context as a PowerShell Package. This wraps a Context as its own PowerShell module named “ADMF.Context.<ContextName>”.

It uses the version number in the context.json for the module version. All dependent contexts are declared as a module dependency following the same naming scheme.

EXAMPLES

EXAMPLE 1

Publish-AdmfContext -Path 'C:\ADMF\Default\1.0.0' -Repository Contoso

Publishes the “Default” Context to the Contoso repository

PARAMETERS

-Path

Path to the Context to publish.

Type: String
Parameter Sets: Path
Aliases:

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

-Name

Name of the Context to publish. Will search known Context stores for available Contexts.

Type: String
Parameter Sets: Store
Aliases:

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

-Store

Store to search for the Context to publish. Will search all stores if not otherwise specified.

Type: String
Parameter Sets: Store
Aliases:

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

-Version

Version of the Context to publish. Will publish the latest version if not specified.

Type: Version
Parameter Sets: Store
Aliases:

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

-Repository

Repository to publish the Context to.

Type: String
Parameter Sets: (All)
Aliases:

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

-ApiKey

API Key of the repository to publish to. Defaults to “Whatever”

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: Whatever
Accept pipeline input: False
Accept wildcard characters: False

-GetV3

Use PowerShellGet V3 or later. Defaults to the configuration setting of ADMF.PowerShellGet.UseV3.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: (Get-PSFConfigValue -FullName ADMF.PowerShellGet.UseV3 -Fallback $false)
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

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

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

OUTPUTS

NOTES