external help file | Module Name | online version | schema |
---|---|---|---|
PSCMContentMgmt-help.xml |
PSCMContentMgmt |
2.0.0 |
Configure the allow prestage content setting for a distribution point.
Set-DPAllowPrestagedContent [-DistributionPoint] <String> [[-State] <Boolean>] [[-SiteServer] <String>]
[[-SiteCode] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
Configure the allow prestage content setting for a distribution point.
This can be useful if you are intending to use Export-DPContent and Import-DPContent for a distribution point content library migration. If this is your intent, please read the CONTENT LIBRARY MIRATION section in the About help topic about_PSCMContentMgmt_ExportImport.
Set-DPAllowPrestageContent -DistributionPoint "dp1.contoso.com" -State $true -WhatIf
Enables dp1.contoso.com to allow prestaged content.
Name of distribution point (as it appears in Configuration Manager, usually FQDN) you want to change the setting on.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
A boolean value, $true configures the distribution point to allow prestage contet whereas $false removes the config.
This is the equivilant of checking the box in the distribution point's properties for "Enables this distribution point for prestaged content". Checked = $true, unchecked = $false.
Type: Boolean
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
FQDN address of the site server (SMS Provider).
You only need to use this parameter once for any function of PSCMContentMgmt that also has a -SiteServer parameter. PSCMContentMgmt remembers the site server for subsequent commands, unless you specify the parameter again to change site server.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Site code of which the server specified by -SiteServer belongs to.
You only need to use this parameter once for any function of PSCMContentMgmt that also has a -SiteCode parameter. PSCMContentMgmt remembers the site code for subsequent commands, unless you specify the parameter again to change site code.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
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.