Skip to content

Publish ModuleToPullServer

dscbot edited this page Oct 15, 2024 · 1 revision

Publish-ModuleToPullServer

SYNOPSIS

Deploy DSC modules to the pullserver.

SYNTAX

Publish-ModuleToPullServer [-Name] <String> [-ModuleBase] <String> [-Version] <Version>
 -PullServerWebConfig <String> [-OutputFolderPath <String>] 
 [<CommonParameters>]

DESCRIPTION

Publish DSC module using Module Info object as an input. The cmdlet will figure out the location of the module repository using web.config of the pullserver.

EXAMPLES

EXAMPLE 1

| Publish-ModuleToPullServer

EXAMPLE 2

| Publish-ModuleToPullServer -OutputFolderPath "\Server01\DscService\Module"

PARAMETERS

-ModuleBase

This is the location of the base of the module.

Type: String
Parameter Sets: (All)
Aliases:

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

-Name

Name of the module.

Type: String
Parameter Sets: (All)
Aliases:

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

-OutputFolderPath

Path to the Location where the MOF files should be published. This should be used when the PullServer is a SMB share pull server. (https://docs.microsoft.com/nl-nl/powershell/dsc/pull-server/pullserversmb) Defaults to $null

Type: String
Parameter Sets: (All)
Aliases:

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

-PullServerWebConfig

Path to the Pull Server web.config file, i.e. "$env:SystemDrive\inetpub\wwwroot\PSDSCPullServer\web.config"

Type: String
Parameter Sets: (All)
Aliases:

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

-Version

This is the version of the module

Type: Version
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
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

System.Void

NOTES

RELATED LINKS