10/17/2008

The Set-SoftwareDistributionConfigcmdlet sets the configuration of the Mobile Device Manager software distribution service.

If a mandatory package is offered to a device, and the device reports that the installation failed, MDM software distribution waits for a specified period of days before offering the package to the managed Windows Mobile device again. You specify this time period with the ReofferPeriodInDaysparameter.

Syntax

Set-SoftwareDistributionConfig [-ReofferPeriodInDays <int>]
[-confirm] [-whatif] [<CommonParameters>]

Set-SoftwareDistributionConfig [[-Config]
<SoftwareDistributionConfig>] [-confirm] [-whatif]
[<CommonParameters>]

Parameters

The following describes the Set-SoftwareDistributionConfigcmdlet parameters.

Config <SoftwareDistributionConfig>

Accepts a SoftwareDistributionConfigobject as input.

ReofferPeriodInDays <Int32>

Specifies the number of days that a mandatory package will stay in failed mode before it is reoffered to the managed device. The value may be from 0 to 30. The default value is 7. If this value is set to 0, then the reoffer period is set to one hour.

WhatIf

Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).

Confirm

Prompts you for confirmation before the cmdlet executes.

CommonParameters

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the MDM Shell prompt, type, get-help about_commonparameters.

Input Type

The Set-SoftwareDistributionConfigcmdlet accepts a SoftwareDistributionConfigobject. To see all the properties for this object, at the MDM Shell prompt, type Get-SoftwareDistributionConfig | Get-Member.

Output Type

None

Examples

This Set-SoftwareDistributionConfigcommand example sets the re-offer period to 14 days.

Copy Code
C:\PS>Set-SoftwareDistributionConfig -ReofferPeriodInDays 14

This sequence of commands example uses the Get-SoftwareDistributionConfigcmdlet together with the Set-SoftwareDistributionConfigcmdlet to change the re-offer period to 5 days.

Copy Code
C:\PS>$a = Get-SoftwareDistributionConfig 
C:\PS>$a.ReofferPeriodInDays = 5 
C:\PS>Set-SoftwareDistributionConfig $a

Cmdlet Help

To view this information online, at the MDM Shell prompt, type

get-help Set-SoftwareDistributionConfig -detailed, or get-help Set-SoftwareDistributionConfig -full

See Also