An instance of a WMI class can be created using the CreateInstance method of the class. The following example creates an instance of Win32_Trustee:
(Get-WmiObject Win32_Trustee -List).CreateInstance()
An instance of a WMI class can be created using the CreateInstance method of the class. The following example creates an instance of Win32_Trustee:
(Get-WmiObject Win32_Trustee -List).CreateInstance()