![]() ![]() To set the value of a property, or to invoke a specific method, add the required key value or values for the class. The resource URI prefix for WMI classes is always the same. Start with the prefix that indicates the WS-Management protocol schema should be used. To generate a resource URI for a WMI class The following procedure describes how to generate a resource URI either to get a WMI class or to use in an enumerate operation. The URI that you supply, either to the Winrm command-line tool or to a script, consists of the prefix plus the resource specification. Generating a Complete URI for WMI Classes To access classes and instances in root\cimv2 namespace, use the URI prefix. The majority of the WMI classes for management are in the root\cimv2 namespace. For example, to access the root\default WMI namespace, use the following URI prefix. This allows the URI prefix to be generated for any WMI namespace. For example, the URI prefix in Windows Server that contains the fixed part of the prefix is. The URI prefix contains a fixed part and the WMI namespace. Constructing the URI Prefix for WMI Classes The URI can specify a WMI resource (class), a WMI action (method), or identify a specific instance of a class in messages sent over a network. You can reference a WMI class as a resource in WinRM and in the WS-Management protocol: a type of managed entity, like a service or a disk.Ī WMI class or method is identified by a URI, just as any other resource is when using the WS-Management protocol. You can also access the hardware data that is available from the standard WMI IPMI provider. That means that you can obtain data about objects such as disks, network adapters, services, or processes in your enterprise through the existing set of WMI classes. WinRM can leverage WMI to collect data about resources or to manage resources on a Windows-based operating system. WinRM supports most of the familiar WMI classes and operations, including embedded objects. You can obtain WMI data with scripts or applications that use the WinRM Scripting API or through the Winrm command-line tool. Windows Remote Management can be used to retrieve data exposed by Windows Management Instrumentation ( WMI and MI). ![]()
0 Comments
Leave a Reply. |