The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
1k 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
181 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
289 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
41 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
245 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
1k 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 ...
3
votes
0answers
408 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
12 views

Fetch shared storage usage info from windows server

I am trying to retrieve usage related info of shared storage attached to a server by using: WMIC logicaldisk get size,freespace,caption,drivetype /Format:csv The output is fine. But here the Drive ...
0
votes
0answers
39 views

Using relative paths in WMIC

I'm trying to access a couple classes added to WMI by a piece of software. There's no alias for them, so I'm using the PATH command. According to the help for the command: Escapes to full WMI object ...
0
votes
0answers
29 views

Get partition blocksize and volume name

I want to use wmic to find the logical blocksize: C:\Users\meej>wmic partition get blocksize BlockSize 512 512 512 And I want to use wmic to find the human readable name: ...
0
votes
0answers
70 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 ...