Example: process Inside WMIC interactive mode:
# Get the OS object $os = Get-CimInstance -ClassName Win32_OperatingSystem -ComputerName "PC-123" # Invoke the shutdown method Invoke-CimMethod -InputObject $os -MethodName Win32Shutdown -Arguments @Flags=4 wmic help new
If you specifically need to run an old script that uses WMIC, follow these steps to turn it back on: Open > Apps > Optional Features . Click View features . Search for WMIC . Check the box and click Install . 🚀 Pro Tips for PowerShell If you are moving to the "new" help system: Example: process Inside WMIC interactive mode: # Get