WMIC or Windows Management Instrumentation Command-line helps you obtain various information from your computer. If you want to run the WMIC commands on the remote computer, this step-by-step guide will be handy for you. Although it is pretty straightforward, you might be confused with the parameter of the command.
What is WMIC?
Windows Management Instrumentation Command-line or WMIC is an in-built utility which helps you gather information regarding computer hardware and more. From checking the hard disk health to disabling startup processes, you can do everything with the help of WMIC.
It is very easy to run WMIC commands on the local computer. However, you need to replace and add a few things in order to use the same command on a remote or LAN-connected computer. However, before getting started with the process, you must know the disadvantage of using WMIC on a remote computer.
Disadvantage of using WMIC on a remote computer
The primary disadvantage of using WMIC on a remote computer is that you won’t be able to see the progress of the activated app. For example, if you run a command-line utility to perform a specific task on the remote computer, you might need to enter more other commands to complete the process. However, if you use this method, you won’t be able to see the progress and enter subsequent commands.
In other words, you can run only such a command if it doesn’t require further authentication or user interaction. For example, you want to view the remote user, his/her system information or hard disk health status, etc. In such a situation, you can use the WMIC on the remote computer because those commands do not require any secondary authentication.
How to use WMIC to connect to a remote computer
To run WMIC on remote computer, follow these steps:
- Press Win+X to open the WinX menu.
- Select the Windows Terminal (Admin) option.
- Click the Yes button.
- Enter this command: wmic
- Enter this command:
WMIC /node:target-computer-name process call create “cmd.exe /c task-name”
To learn more about these steps, continue reading.
First, you need to open the elevated Command Prompt or the Command Prompt instance in Windows Terminal. In this case, we are about to use the Windows Terminal, but you can use Command Prompt without any issue.
To get started, press Win+X to open the WinX menu and choose the Windows Terminal (Admin) option from the menu. Click on the Yes button in the UAC prompt to open the Windows Terminal with administrator privilege.
Following that, enter this command:
wmic
You can find wmic:root\cli> in the Windows Terminal. If so, you can enter the following command:
WMIC /node:target-computer-name process call create “cmd.exe /c task-name”
Here you need to make two changes. First, you need to obtain the name of the remote computer and replace target-computer-name with the original name. Then, you need to replace the task-name with the command you want to execute on the remote computer.
The cmd.exe is used because you need to open or use the Command Prompt panel on the remote computer to execute the desired command.
How do I run a wmic command on a remote computer?
To run WMIC on a remote computer, you need to follow the above-mentioned steps. Before that, you must be connected to another computer via the same network. If the computer is not visible on the LAN, you won’t be able to run the above commands on the remote computer running Windows 11 or Windows 10.
How to enable WMIC on Windows 10?
You can use the Windows Features box or Windows Settings to enable or disable WMIC. To turn in on using CMD run this command – DISM /Online /Add-Capability /CapabilityName:WMIC~~~~
. To turn it off, run – DISM /Online /Remove-Capability /CapabilityName:WMIC~~~~
. WMIC has been deprecated in Windows 11.
How do I get SystemInfo on a remote computer?
The process to get SystemInfo on a remote or host computer is almost the same. For your information, you need to run this command: wmic computersystem get model,name,manufacturer,systemtype
. However, it is mandatory to use another parameter in order to run it on the remote computer instead of the host computer.
Read: