views:

348

answers:

1

I am trying to script SCCM 2007so I don't have to manually go through 400 servers and set the rate limit by hand. I want all of the servers to use 75% of their bandwith 24 hours a day. I am guessing powershell and wmi is going to be the best way to go about doing this, but any suggestions would be welcome.

A: 

If it's a registry setting, you can use Autoitv3 (free download) to compile an .exe to push to the systems.

Here is an example of the script used to change the MTU size in the registry. It reads in a reg key and sets the variable $NetCard$ and then adds the dword value "MTU" to that interface.

AutoItSetOption ("ExpandVarStrings" , 1)

AutoItSetOption ("TrayIconHide" , 1)

$NetCard = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\5", "ServiceName")

RegWrite("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\$NetCard$", "MTU", "REG_DWORD", "1300")

-Mathew

Mathew