# All processes (like wmic process list brief) Get-Process | Select-Object Id, Name, CPU, WorkingSet Get-Process -Name explorer | Format-List * Kill a process (like wmic process where name="notepad.exe" delete) Stop-Process -Name notepad -Force
Get-CimInstance Win32_OperatingSystem | Select-Object -ExpandProperty Caption Get-CimInstance Win32_Processor | Select-Object -ExpandProperty Name Get-CimInstance Win32_LogicalDisk | Select-Object DeviceID, Size, FreeSpace wmic windows 11 alternative
# Create custom functions to mimic WMIC syntax function wmic-os Get-CimInstance Win32_OperatingSystem function wmic-cpu Get-CimInstance Win32_Processor function wmic-disk Get-CimInstance Win32_LogicalDisk function wmic-service Get-Service function wmic-process Get-Process function Get-SystemSummary [PSCustomObject]@ Measure-Object -Property Capacity -Sum).Sum / 1GB, 2) ComputerName = $env:COMPUTERNAME # All processes (like wmic process list brief)
# Better alternative to wmic product Get-Package | Select-Object Name, Version, ProviderName Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall* | Select-Object DisplayName, DisplayVersion For 64-bit apps Get-ItemProperty HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall* | Select-Object DisplayName, DisplayVersion BIOS Information # BIOS details Get-CimInstance Win32_BIOS | Select-Object Manufacturer, Name, SerialNumber, Version Network Configuration # IP configuration Get-NetIPAddress | Select-Object InterfaceAlias, IPAddress, AddressFamily Network adapters Get-NetAdapter | Select-Object Name, InterfaceDescription, Status, LinkSpeed Instead of wmic nic get Get-CimInstance Win32_NetworkAdapter | Where-Object $_.NetEnabled -eq $true Creating Useful Aliases Add these to your PowerShell profile for quicker transitions: BuildNumber Get-ComputerInfo | Select-Object OsName
# Basic OS info Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, BuildNumber Get-ComputerInfo | Select-Object OsName, OsVersion, OsBuildNumber
# Check if WMIC is available where wmic dism /online /add-capability /CapabilityName:WMIC~~~~