Configuration driven Active Directory management.
Publishes a Context as a PowerShell Package.
Publish-AdmfContext -Path <String> -Repository <String> [-ApiKey <String>] [-GetV3]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Publish-AdmfContext -Name <String> [-Store <String>] [-Version <Version>] -Repository <String>
[-ApiKey <String>] [-GetV3] [-ProgressAction <ActionPreference>] [<CommonParameters>]
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.
Publish-AdmfContext -Path 'C:\ADMF\Default\1.0.0' -Repository Contoso
Publishes the “Default” Context to the Contoso repository
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 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 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 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 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
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
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
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.