Complete the code to get all running processes using CIM cmdlet.
Get-[1] -ClassName Win32_ProcessThe Get-CimInstance cmdlet retrieves instances of CIM classes, such as Win32_Process, which lists running processes.
Complete the code to filter processes with the name 'notepad' using WMI cmdlet.
Get-[1] -Class Win32_Process -Filter "Name = 'notepad.exe'"
Get-WmiObject is the older cmdlet to query WMI classes and supports the -Filter parameter for filtering.
Fix the error in the code to get the operating system info using CIM cmdlet.
Get-CimInstance -ClassName [1]The class Win32_OperatingSystem contains information about the OS, so it must be used here.
Fill both blanks to get the total visible memory size from the operating system using CIM cmdlet.
$os = Get-CimInstance -ClassName [1] $totalMemory = $os.[2]
The Win32_OperatingSystem class has the property TotalVisibleMemorySize which shows total memory in kilobytes.
Fill all three blanks to query services that are running using WMI cmdlet.
Get-[1] -Class [2] -Filter "State = '[3]'"
Get-WmiObject queries WMI classes like Win32_Service. Filtering by State = 'Running' gets running services.