Set-DODownloadMode
Sets the Delivery Optimization download mode.
Syntax
Default (Default)
Set-DODownloadMode
[-downloadMode] <SettableDownloadMode>
[<CommonParameters>]
Description
The Set-DODownloadMode cmdlet sets the Delivery Optimization download mode on the local device.
The supported modes are CdnOnly, Lan, and Internet.
The download mode controls whether Delivery Optimization uses HTTP sources only or also exchanges content with peers. Group Policy or mobile device management (MDM) policy can override changes you make with this cmdlet.
Examples
Example 1: Enable LAN peering
Set-DODownloadMode -downloadMode Lan
This command configures Delivery Optimization to use HTTP sources and peers on the local network.
Example 2: Disable peer-to-peer downloads
Set-DODownloadMode -downloadMode CdnOnly
This command configures HTTP-only downloads without peer-to-peer sharing.
Parameters
-downloadMode
Specifies the download mode. The accepted values are:
CdnOnly: Uses HTTP sources without peer-to-peer sharing.Lan: Allows peer-to-peer sharing with devices on the local network.Internet: Allows peer-to-peer sharing with devices on the internet.
Parameter properties
| Type: | SettableDownloadMode |
| Default value: | None |
| Accepted values: | CdnOnly, Lan, Internet |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
None
You can't pipe objects to this cmdlet.
Outputs
None
This cmdlet doesn't return objects.
Notes
Run this cmdlet from an elevated PowerShell session. Use Get-DODownloadMode to check the
active mode and Get-DOConfig to identify its configuration provider.