Mittwoch, 9. Oktober 2013

SCCM Custom Hardware Inventory (Regkey)

SCCM Custom Hardware Inventory (Regkey)

Datei „E:\Microsoft Configuration Manager\inboxes\clifiles.src\hinv\configuration.mof“ öffnen

Extension hinzufügen:

//========================
// Added extensions start
//========================

// Registry property provider

#pragma deleteclass("Maintenance_Task", NOFAIL)
[DYNPROPS]
Class Maintenance_Task
{
[key] string KeyName;
String MTStamp;
};
[DYNPROPS]
Instance of Maintenance_Task
{
KeyName="Maintenance Task";
[PropertyContext("Local|HKEY_LOCAL_MACHINE\\SOFTWARE\\INFRA\\Maintenance Task|MTStamp"),Dynamic,Provider("RegPropProv")] MTStamp;
};

//========================
// Added extensions end
//========================
 
Datei speichern

Check Configuration Command in CMD:

mofcomp.exe –check „E:\Microsoft Configuration Manager\inboxes\clifiles.src\hinv\configuration.mof

Set Configuration Command in CMD:
mofcomp.exe „E:\Microsoft Configuration Manager\inboxes\clifiles.src\hinv\configuration.mof

Class in Hardware Inventory aktivieren (Regkey muss vorhanden sein, sonst Remote Connect):

Logfiles:
E:\Microsoft Configuration Manager\Logs\PolicyPv.log  ==> Class überwachen auf Server
C:\Windows\CCM\Logs\InventoryAgent.log ==> Inventory überwachen auf Client

Keine Kommentare:

Kommentar veröffentlichen