Skip to content

Publish MofToPullServer

dscbot edited this page Oct 15, 2024 · 1 revision

Publish-MofToPullServer

SYNOPSIS

Deploy DSC Configuration document to the pullserver.

SYNTAX

Publish-MofToPullServer [-FullName] <String> -PullServerWebConfig <String> [-OutputFolderPath <String>]
 [<CommonParameters>]

DESCRIPTION

Publish MOF file to the pullserver. It takes File Info object as pipeline input. It also auto detects the location of the configuration repository using the web.config of the pullserver.

EXAMPLES

EXAMPLE 1

\*.mof | Publish-MOFToPullServer

EXAMPLE 2

\*.mof | Publish-MOFToPullServer -OutputFolderPath "\Server01\DscService\Configuration"

PARAMETERS

-FullName

MOF File Name

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

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