Windows -Running a command on a remote PC

by Chris Hall/December 1, 2016

Recently we’ve had the requirement to uninstall an update from a Remote PC. The PC is unresponsive to input from the KB and Mouse so the only other option was running the uninstall from remote. This can be easily done using the below commands, but it can be extended to remotely run any program on a target PC.

To do so, WMIC is used to run a new process on the target PC (node) and powershell is invoked running the command.

Please see the below for examples:

wmic /node:PCNAME process call create “powershell INSERT COMMAND HERE”

Example: Uninstalling a Windows Update from remote:

wmic /node:PCNAME process call create “powershell wusa /uninstall /kb:3097877 /quiet /forcerestart”

← Back to News

Want to say hey or find out more?

If you're part of a small/medium or enterprise level we
can help address your IT Management needs.

Get in touch
View our Services
Make your data
work for you.
Contact Us

+61 438 661 875


Copyright © DataCommand Pty Ltd / Privacy Policy
ABN 98 205 256 068 / ACN 131 977 323