WMIC network, #NIC, services

Very simple but useful command wmic #wmic

Last time we’ve learnt, how to run wmic under user profile – (run cmd as different user – Admin).

Today let me show, how to run wmic on the remote machine.

Magic syntax is /node:PC_Name

easy to start/stop local/remote service (for example Themes)

wmic /node:PC001 process call create “net stop/start Themes”

enable/disable particular NIC (as different user, or remotly)

wmic (/node:PCxxx) nic get name, index

wmic /node:PC002 path win32_networkadapter where index=2 call enable/disable

(restart needed)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s