- WMI Library -
WMI Libraly > StdRegProv Class

StdRegProv Class

The StdRegProv class contains methods that interact with the system registry. You can use these methods to:
Verify the access permissions for a user
Create, enumerate, and delete registry keys
Create, enumerate, and delete named values
Read, write, and delete data values
Namespace value is root/CIMV2.
WMI Provider value is RegProv.


Properties

Method not found.

Methods

  • CreateKey
  • The CreateKey method creates a subkey in the specified tree.

  • DeleteKey
  • The DeleteKey method deletes a subkey in the specified tree.

  • EnumKey
  • The EnumKey method enumerates the subkeys for the given path.

  • EnumValues
  • The EnumValues method enumerates the named values of the given subkey.

  • DeleteValue
  • The DeleteValue method deletes a named value in the specified subkey.

  • SetDWORDValue
  • The SetDWORDValue method sets the data value for a named value whose data type is REG_BINARY.

  • SetQWORDValue
  • The SetQWORDValue method sets the data value for a named value whose data type is REG_QWORD.

  • GetDWORDValue
  • The GetDWORDValue method returns the data value for a named value whose data type is REG_DWORD.

  • GetQWORDValue
  • The GetQWORDValue method returns the data value for a named value whose data type is REG_QWORD.

  • SetStringValue
  • The SetStringValue method sets the data value for a named value whose data type is REG_MULTI_SZ.

  • GetStringValue
  • The GetStringValue method returns the data value for a named value whose data type is REG_SZ.

  • SetMultiStringValue
  • The SetMultiStringValue method sets the data value for a named value whose data type is REG_MULTI_SZ. The SetMultiStringValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

  • GetMultiStringValue
  • The GetMultiStringValue method returns the data value for a named value whose data type is REG_MULTI_SZ. The GetMultiStringValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

  • SetExpandedStringValue
  • The SetExpandedStringValue method sets the data value for a named value whose data type is REG_EXPAND_SZ. The SetExpandedStringValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

  • GetExpandedStringValue
  • The GetExpandedStringValue method returns the data value for a named value whose data type is REG_EXPAND_SZ.

  • SetBinaryValue
  • The SetBinaryValue method sets the data value for a named value whose data type is REG_BINARY. The SetBinaryValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

  • GetBinaryValue
  • The GetBinaryValue method returns the data value for a named value whose data type is REG_BINARY. The GetBinaryValue method returns a uint32 which is 0 if successful or some other value if any other error occurred.

  • CheckAccess
  • The CheckAccess method verifies that the user possesses the specified permissions. The method returns a uint32 which is 0 if successful or some other value if any other error occurred.

  • SetSecurityDescriptor
  • The SetSecurityDescriptor method updates the specified key's security descriptor with the supplied __SecurityDescriptor. The method returns a uint32 which is 0 if successful or some other value if any other error occurred.

  • GetSecurityDescriptor
  • The GetSecurityDescriptor method returns the specified key's security descriptor in a __SecurityDescriptor. The method returns a uint32 which is 0 if successful or some other value if any other error occurred.


    Example WQL

    SELECT * FROM StdRegProv
    About this site information

    This contents is created by WMI having class information.
    WMI Environment is Windows Server 2008 R2 Enterprise Edition.

    This link is Microsoft documents for "Managing Windows with WMI".
    That is VB(Visual Basic) scripting sample.
    This link is Microsoft documents for "Advanced Programming Topics in WMI .NET".
    That is VB.net(Visual Basic .net) scripting sample.

    - WMI Library -
    http://library.wmifun.net/

    WMI useful by VB,VB.Net,VC,VC.Net,VC#.Net,VBS(WSH),PowerShell for PC asset management, system monitoring and collecting hardware and software inventory.

    This website is created by Toh.
    Copyright(C) 1997-2016 WMI Fun !!. All rights reserved.
    ^ Go to the top...