The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
825 views

disable network adapter with wmic - access denied (Windows 7 Prof)

I would like to disable the local network card (only one in the computer) by using this command: wmic path win32_networkadapter where index=7 call disable return value is 5 (access denied). I don't ...
0
votes
1answer
99 views

wmic difficulty in FOR loop

I'm trying to learn to write batch files so I can be more useful at work, but I'm having some difficulty with wmic inside a for loop. (even if there is a better way to do this with PowerShell or ...
0
votes
1answer
181 views

Using batch to verify a process is running with WMIC

I am attempting to write a script that will check if a process is running (in my case a virtual machine) @echo off wmic process where name="VirtualBox.exe" | find "GitHubEnterprise" /c > tmpcount ...
0
votes
1answer
36 views

Run application as user?

I have to deploy some applications in a domain and would like to use WMIC for that. My problem is that I can't run the application as the profile user (without having the password), but just as admin. ...
0
votes
1answer
206 views

Filtering to physical NICs in WMIC on XP

If I enter this in Windows 7 I can filter the NICs to ones that have a physical adapter WMIC NIC WHERE PhysicalAdapter="TRUE" GET /VALUE But in XP all I get is "Invalid Query" because it doesn't ...
0
votes
1answer
960 views

How to pass a variable to a WMI query run in a batch file?

I want to run the following in a batch file and prompt the user to enter "NewUserID", then insert it as a variable. Can this be done with WMI? wmic useraccount where name='user'call rename ...
2
votes
0answers
328 views

wmic - localized values

When using the wmic command, it is possible to specify a locale using /locale:ms_409 which means US English. I am using a German version of Windows XP, which displays some localized values when using ...
1
vote
0answers
101 views

Is WMIC interface values available to change?

On "WMIC" interface (cmd promt \ "wmic" command) the information that I see could be changed??? I mean, could I do the same as I do on Windows registry, just getting and setting the values displayed? ...
0
votes
0answers
50 views

Why do we need to save WMI queries in a .vbs file extension

Why do we need to save as .vbs in order to run WMIC queries like this : strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = ...
0
votes
0answers
6k views

CMD - Rename Local Computer, Join Domain, Join Specific OU

Alright so not sure if this is entirely possible all in one. Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the ...