The Set-SoftwareDistributionConfigcmdlet 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 device again. You specify this time period with the ReofferPeriodInDaysparameter.
Syntax
Set-SoftwareDistributionConfig [[-Instance] <SoftwareDistributionConfig>] [-WhatIf] [-Confirm] [<CommonParameters>] Set-SoftwareDistributionConfig [-ReofferPeriodInDays <Int32>] [-WhatIf] [-Confirm] [<CommonParameters>] |
Parameters
The following describes the Set-SoftwareDistributionConfigcmdlet parameters.
- Instance <SoftwareDistributionConfig>
-
Accepts a SoftwareDistributionConfiginstance 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-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 reoffer 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