< Back

Publish-MOFToPullServer

Sun Jan 19, 2020 7:25 pm

NAME 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.





PARAMETERS

-FullName <String>

MOF File Name



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-PullServerWebConfig <String>

Path to the Pull Server web.config file, i.e.

"$env:SystemDrive\\inetpub\\wwwroot\\PSDSCPullServer\\web.config"



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OutputFolderPath <String>

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/powers ... lserversmb)

Defaults to $null



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Void





-------------------------- EXAMPLE 1 --------------------------



Dir <path>\\*.mof | Publish-MOFToPullServer













-------------------------- EXAMPLE 2 --------------------------



Dir <path>\\*.mof | Publish-MOFToPullServer -OutputFolderPath "\\\\Server01\\DscService\\Configuration"















RELATED LINKS