Set-SoftwareDistributionConfig
10/3/2008
The Set-SoftwareDistributionConfig cmdlet sets the configuration of the Mobile Device Manager (MDM) 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 powered device again. You specify this time period with the ReofferPeriodInDays parameter.
Syntax
Set-SoftwareDistributionConfig [[-Instance] <SoftwareDistributionConfig>] [-WhatIf] [-Confirm] [<CommonParameters>]
Set-SoftwareDistributionConfig [-ReofferPeriodInDays <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>]
Parameters
The following describes the Set-SoftwareDistributionConfig cmdlet parameters.
- Instance <SoftwareDistributionConfig>
Accepts a SoftwareDistributionConfig instance 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.
- 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-SoftwareDistributionConfig cmdlet accepts a SoftwareDistributionConfig object. To see all the properties for this object, at the MDM Shell prompt, type Get-SoftwareDistributionConfig | Get-Member.
Output Type
None
Examples
This Set-SoftwareDistributionConfig command example sets the reoffer period to 14 days.
C:\PS>Set-SoftwareDistributionConfig -ReofferPeriodInDays 14
This sequence of commands example uses the Get-SoftwareDistributionConfig cmdlet together with the Set-SoftwareDistributionConfig cmdlet to change the re-offer period to 5 days.
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