Invoke-Command -ComputerName "RemotePC" -ScriptBlock Get-CimInstance -ClassName Win32_BIOS
: The action you want to take (e.g., list , get , call , set , create , or delete ).
GET : Retrieve specific properties (e.g., wmic os get caption ). wmic help new
command. This is used to spawn new processes, services, or other manageable entities. General Syntax: wmic call create Use code with caution. Copied to clipboard Common Examples: Start a New Process: To open a new instance of Notepad: wmic process call create "notepad.exe" Create a New Directory Share:
Get-CimInstance Win32_LogicalDisk -Filter "DriveType=3" | Select DeviceID, Size, FreeSpace This is used to spawn new processes, services,
Here is an example of how to create a new WMI class called MyClass with two properties, MyProperty1 and MyProperty2 :
To see which verbs and switches are available for a specific alias (for example, managing system processes), append /? to the alias: wmic process /? Use code with caution. Creating New Instances: The "Create" Verb Help to the alias: wmic process /
You can add it quickly via elevated Command Prompt/PowerShell: DISM /Online /Add-Capability /CapabilityName:WMIC~~~~ Use code with caution. Copied to clipboard 🚀 The "New" Way: PowerShell Replacement
To find out if an alias supports the creation of new instances, and to see the required parameters, request help directly on that context's create verb: wmic process call create /? Use code with caution.