Set-SoftwareDistributionConfig
2/9/2009
The Set-SoftwareDistributionConfig cmdlet 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 ReofferPeriodInDays parameter.
Syntax
Set-SoftwareDistributionConfig [-ReofferPeriodInDays <int>] [-confirm] [-whatif] [<CommonParameters>]
Set-SoftwareDistributionConfig [[-Config] <SoftwareDistributionConfig>] [-confirm] [-whatif] [<CommonParameters>]
Parameters
The following describes the Set-SoftwareDistributionConfig cmdlet parameters.
- Config <SoftwareDistributionConfig>
Accepts a SoftwareDistributionConfig object 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-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 re-offer 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