Auditing your BITS settings

Use the following MOF edits to audit your BITS settings.

 

configuration.mof

// RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac & Jonas Hettich)

// this section tells the inventory agent what to collect

// 1/19/2011 10:21:30 AM

// Created by Enhansoft – Garth Jones

 

#pragma namespace (“\\\\.\\root\\cimv2”)

#pragma deleteclass(“BITS”, NOFAIL)

[DYNPROPS]

Class BITS

{

[key] string KeyName;

Uint32 EnableBitsMaxBandwidth;

Uint32 MaxBandwidthValidFrom;

Uint32 MaxBandwidthValidTo;

Uint32 MaxTransferRateOnSchedule;

Uint32 MaxTransferRateOffSchedule;

};

 

[DYNPROPS]

Instance of BITS

{

KeyName=”RegKeyToMOF_32″;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|EnableBitsMaxBandwidth”),Dynamic,Provider(“RegPropProv”)] EnableBitsMaxBandwidth;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxBandwidthValidFrom”),Dynamic,Provider(“RegPropProv”)] MaxBandwidthValidFrom;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxBandwidthValidTo”),Dynamic,Provider(“RegPropProv”)] MaxBandwidthValidTo;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxTransferRateOnSchedule”),Dynamic,Provider(“RegPropProv”)] MaxTransferRateOnSchedule;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxTransferRateOffSchedule”),Dynamic,Provider(“RegPropProv”)] MaxTransferRateOffSchedule;

};

 

#pragma namespace (“\\\\.\\root\\cimv2”)

#pragma deleteclass(“BITS_64”, NOFAIL)

[DYNPROPS]

Class BITS_64

{

[key] string KeyName;

Uint32 EnableBitsMaxBandwidth;

Uint32 MaxBandwidthValidFrom;

Uint32 MaxBandwidthValidTo;

Uint32 MaxTransferRateOnSchedule;

Uint32 MaxTransferRateOffSchedule;

};

 

[DYNPROPS]

Instance of BITS_64

{

KeyName=”RegKeyToMOF_64″;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|EnableBitsMaxBandwidth”),Dynamic,Provider(“RegPropProv”)] EnableBitsMaxBandwidth;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxBandwidthValidFrom”),Dynamic,Provider(“RegPropProv”)] MaxBandwidthValidFrom;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxBandwidthValidTo”),Dynamic,Provider(“RegPropProv”)] MaxBandwidthValidTo;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxTransferRateOnSchedule”),Dynamic,Provider(“RegPropProv”)] MaxTransferRateOnSchedule;

[PropertyContext(“Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows\\BITS|MaxTransferRateOffSchedule”),Dynamic,Provider(“RegPropProv”)] MaxTransferRateOffSchedule;

};

 

 

SMS_Def.mof

// RegKeyToMOF by Mark Cochrane (thanks to Skissinger, Steverac & Jonas Hettich)

// this section tells the inventory agent what to report to the server

// 1/19/2011 10:21:30 AM

// Created by Enhansoft – Garth Jones

 

#pragma namespace (“\\\\.\\root\\cimv2\\SMS”)

#pragma deleteclass(“BITS”, NOFAIL)

[SMS_Report(TRUE),SMS_Group_Name(“BITS”),SMS_Class_ID(“Enhansoft|BITS|1.0”),

SMS_Context_1(“__ProviderArchitecture=32|uint32”),

SMS_Context_2(“__RequiredArchitecture=true|boolean”)]

Class BITS: SMS_Class_Template

{

[SMS_Report(TRUE),key] string KeyName;

[SMS_Report(TRUE)] Uint32 EnableBitsMaxBandwidth;

[SMS_Report(TRUE)] Uint32 MaxBandwidthValidFrom;

[SMS_Report(TRUE)] Uint32 MaxBandwidthValidTo;

[SMS_Report(TRUE)] Uint32 MaxTransferRateOnSchedule;

[SMS_Report(TRUE)] Uint32 MaxTransferRateOffSchedule;

};

 

#pragma namespace (“\\\\.\\root\\cimv2\\SMS”)

#pragma deleteclass(“BITS_64”, NOFAIL)

[SMS_Report(TRUE),SMS_Group_Name(“BITS”),SMS_Class_ID(“Enhansoft|BITS|1.0”),

SMS_Context_1(“__ProviderArchitecture=64|uint32”),

SMS_Context_2(“__RequiredArchitecture=true|boolean”)]

Class BITS_64 : SMS_Class_Template

{

[SMS_Report(TRUE),key] string KeyName;

[SMS_Report(TRUE)] Uint32 EnableBitsMaxBandwidth;

[SMS_Report(TRUE)] Uint32 MaxBandwidthValidFrom;

[SMS_Report(TRUE)] Uint32 MaxBandwidthValidTo;

[SMS_Report(TRUE)] Uint32 MaxTransferRateOnSchedule;

[SMS_Report(TRUE)] Uint32 MaxTransferRateOffSchedule;

};

Leave a Reply

Your email address will not be published. Required fields are marked *