The basic content of WMI is described in the previous article, which focuses on the view of WMI's property values, and also mentions that WMI has not only attributes but also methods. This section is about how to invoke the WMI object method.
By looking at WMI objects, you can see that a number of classes have both properties and methods. For example, the class "Win32_NetworkAdapterConfiguration", J has a number of methods and properties, you can use the following command query:
Get-WmiObject Win32_NetworkAdapterConfiguration | Get-Member -MemberType Methods | Format-List
The available methods listed are:
DisableIPSec
EnableDHCP
EnableIPSec
EnableStatic
ReleaseDHCPLease
RenewDHCPLease
SetDNSDomain
SetDNSServerSearchOrder
SetDynamicDNSRegistration
SetGateways
SetIPConnectionMetric
Setipxframetypenetworkpairs
SetTCPIPNetBIOS
SetWINSServer
Convertfromdatetime
Converttodatetime
Delete
GetType
Put