You can do that by using the UpdateThrottlingSettings() method of the ProductionServer object:
TypeName : Microsoft.Internal.EnterpriseStorage.Dls.UI.ObjectModel.OMCommon.ProductionServer
Name : UpdateThrottlingSettings
MemberType : Method
Definition : System.Void UpdateThrottlingSettings(bool isThrottled, System.UInt32 workHoursTransmissionRate, System.UInt32 nonWorkHoursTransmissionRate, System.UInt32 workHoursStart, System.UInt32 workHoursEnd, bool isSundayWorkDay, bool isMondayWorkDay, bool
isTuesdayWorkDay, bool isWednesdayWorkDay, bool isThursdayWorkDay, bool isFridayWorkDay, bool isSaturdayWorkDay)
Example:
Get-ProductionServer -DPMServerName <DPMServerName> | ForEach-Object {$_.UpdateThrottlingSettings($true,51200,102400,7,19,$false,$true,$true,$true,$true,$true,$false)}
This sets the throttling of all agents to the following settings:
- 50 Mbps during work hours, 100 Mbps during non work hours,
- work hours 7 AM to 7 PM
- Workdays Monday to Friday
Regards,
Klaus
-
Edited by
klaus.landes
Wednesday, September 05, 2012 2:16 PM
-
Proposed as answer by
klaus.landes
Wednesday, September 05, 2012 2:24 PM
-
Marked as answer by
Christian Schindler
Wednesday, September 05, 2012 2:33 PM