myITforum and Windows IT Pro Forums

Extending Inventory Multiple Registry Keys

Author Message
wiredjack

  • Total Posts : 19
  • Scores: 2
  • Reward points : 3070
  • Joined: 2/24/2017
  • Status: offline
Extending Inventory Multiple Registry Keys Sunday, May 07, 2017 10:42 PM (permalink)
0
[Helpful answer received] / [List Solutions Only]
When updating configuration.mof with the below syntax. The output in dataldr.log indicates "MofCompiler failed: parsing error (8004400c); ObjectNum=0, FirstLine=0, LastLine=0" 
Can someone spot where my mistake is or guide me in a different direction?
 #pragma namespace ("\\\\.\\root\\cimv2")
 #pragma deleteclass("SCHANNEL", NOFAIL)
 [DYNPROPS]
 Class SCHANNEL
 {
 [key] string KeyName;
 Uint32 EventLogging;
 Uint32 NULL;
 Uint32 RC240128;
 Uint32 RC256128;
 Uint32 RC2128;
 Uint32 RC440128;
 Uint32 RC456128;
 Uint32 RC464128;
 Uint32 DES56;
 Uint32 AES128;
 Uint32 AES256;
 Uint32 TripleDES168168;
 Uint32 TripleDES168;
 Uint32 MD5;
 Uint32 SHA;
 Uint32 SHA256;
 Uint32 SHA384;
 Uint32 SHA512;
 Uint32 DiffieHellman;
 Uint32 PKCS;
 Uint32 SSL20server;
 Uint32 SSL30server;
 Uint32 SSL30client;
 Uint32 TLS10server;
 Uint32 TLS11server;
 Uint32 TLS12server;
 Uint32 PCT10server;
 Uint32 MultiProtocolUnifiedHello;
 };
  
 [DYNPROPS]
 Instance of SCHANNEL
 {
 KeyName="RegKeyToMOF_32"; [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL|EventLogging"),Dynamic,Provider("RegPropProv")] EventLogging;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\NULL|Enabled"),Dynamic,Provider("RegPropProv")] NULL;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\RC2 40/128|Enabled"),Dynamic,Provider("RegPropProv")] RC240128;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\RC2 56/128|Enabled"),Dynamic,Provider("RegPropProv")] RC256128;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\RC2 128/128|Enabled"),Dynamic,Provider("RegPropProv")] RC2128;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\RC4 40/128|Enabled"),Dynamic,Provider("RegPropProv")] RC440128;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\RC4 56/128|Enabled"),Dynamic,Provider("RegPropProv")] RC456128;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\RC4 64/128|Enabled"),Dynamic,Provider("RegPropProv")] RC464128;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\DES 56/56|Enabled"),Dynamic,Provider("RegPropProv")] DES56;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\AES 128/128|Enabled"),Dynamic,Provider("RegPropProv")] AES128;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\AES 256/256|Enabled"),Dynamic,Provider("RegPropProv")] AES256;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\Triple DES 168/168|Enabled"),Dynamic,Provider("RegPropProv")] TripleDES168168;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Ciphers\\Triple DES 168|Enabled"),Dynamic,Provider("RegPropProv")] TripleDES168;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Hashes\\MD5|Enabled"),Dynamic,Provider("RegPropProv")] MD5;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Hashes\\SHA|Enabled"),Dynamic,Provider("RegPropProv")] SHA;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Hashes\\SHA256|Enabled"),Dynamic,Provider("RegPropProv")] SHA256;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Hashes\\SHA384|Enabled"),Dynamic,Provider("RegPropProv")] SHA384;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Hashes\\SHA512|Enabled"),Dynamic,Provider("RegPropProv")] SHA512;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\KeyExchangeAlgorithms\\Diffie-Hellman|Enabled"),Dynamic,Provider("RegPropProv")] DiffieHellman;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\KeyExchangeAlgorithms\\PKCS|Enabled"),Dynamic,Provider("RegPropProv")] PKCS;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 2.0\\Server|Enabled"),Dynamic,Provider("RegPropProv")] SSL20server;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Server|Enabled"),Dynamic,Provider("RegPropProv")] SSL30server;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\SSL 3.0\\Client|Enabled"),Dynamic,Provider("RegPropProv")] SSL30client;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.0\\Server|Enabled"),Dynamic,Provider("RegPropProv")] TLS10server;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.1\\Server|Enabled"),Dynamic,Provider("RegPropProv")] TLS11server;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\TLS 1.2\\Server|Enabled"),Dynamic,Provider("RegPropProv")] TLS12server;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\PCT 1.0\\Server|Enabled"),Dynamic,Provider("RegPropProv")] PCT10server;
 [PropertyContext("Local|HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\SecurityProviders\\SCHANNEL\\Protocols\\Multi-Protocol Unified Hello\\Server|Enabled"),Dynamic,Provider("RegPropProv")] MultiProtocolUnifiedHello;
 };
 

 
#1
    wiredjack

    • Total Posts : 19
    • Scores: 2
    • Reward points : 3070
    • Joined: 2/24/2017
    • Status: offline
    Re:Extending Inventory Multiple Registry Keys Sunday, May 07, 2017 10:55 PM (permalink)
    0
    [This post was marked as helpful]
    Found my issue. Using NULL was not allowed. 
     
    #2
      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2017 ASPPlayground.NET Forum Version 3.9