< Back

Publish-ModuleToPullServer

Sun Jan 19, 2020 7:25 pm

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





PARAMETERS

-Name <String>

Name of the module.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-ModuleBase <String>

This is the location of the base of the module.



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Version <Version>

This is the version of the module



Required? true

Position? 3

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



Get-Module <ModuleName>| Publish-ModuleToPullServer













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



Get-Module <ModuleName>| Publish-ModuleToPullServer -OutputFolderPath "\\\\Server01\\DscService\\Module"















RELATED LINKS