The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
12 views

WMIC |more has extra rows when .csv opened in Excel

I am trying to output the name and version of each program installed on my system to a .csv file. I could do something more complicated with VBScript, but would prefer to keep this very simple to ...
2
votes
1answer
39 views

Batch - Renaming network interfaces based on index with WMIC and netsh

I have two Intel NIC's that I need to rename based on their index numbers, WMIC is nice in that it seems to always return index numbers in numerical order so we can take the output directly without ...
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 ...
1
vote
1answer
31 views

How to find out how long a process has been running for?

Is it possible to use wmic or powershell to find out how long a process has been running for? If not, is there any other mean to obtain this information from Windows OS?
1
vote
2answers
58 views

Is it possible to get ONLY the Drive Label using WMIC?

Using WMIC, I want to get only the drive label based on the drive letter: for /f "skip=1" %a in ('wmic volume where "Driveletter like '%C%'" get label') do echo %a Now, those of you who understand ...
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: ...
2
votes
1answer
181 views

WMIC - how to check if return empty value?

I'm making a batch file to make log of computer (I need save some informations before format PC's on my work...) So I found some commands to create this log, see: rem -- Windows Version wmic OS get ...
0
votes
1answer
183 views

WMIC is NOT on Windows XP?

I recently installed Windows XP on a computer because I wanted to confirm some stuff with WMIC. What I wanted to confirm is not relevant to my problem. WMIC is NOT THERE. On Windows 7 I can type ...
0
votes
1answer
141 views

wmic OS list Full seems broken

I try that command on my Windows 7 x64 with updates. wmic os list FULL It fails with error. Node - [pc name] ERROR: Description = Invalid query
0
votes
1answer
685 views

Combine Batch/WMIC + ANSI/UNICODE Output formatting

In creating an auditing tool for my network, I'm finding that WMIC is outputting with spaces in between each character when accompanied by echoing regular text. For example, This: @echo off echo Foo ...
0
votes
1answer
135 views

Getting HDD serial number

I'm trying to get the serial number of the hard disks in my PC, i.e. the number printed on a label on the hard disk itself. I found that I can do that using wmic diskdrive get serialnumber, but I see ...
0
votes
0answers
69 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
1answer
363 views

Windows Batch File (WMI) - taskkill process based on memory usage

Is there a way using WMIC, bat files, or powershell, to kill a task with a particular task name if the amount of virtual memory the process is using is above a certain limit? Specifically I want to ...
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
18k views

How to get BIOS serialnumber with WMIC command

Whenever I use the command line below wmic bios get serialnumber It outputs the BIOS Serial number with my laptop. However, I've tried that command line to get BIOS serial number with my ...
0
votes
1answer
288 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 ...
1
vote
2answers
81 views

Batch File - Know if disk is partitioned or not

I am working on Winpe environment, how to get informations if the disk 0 is partitioned or not to launch specific commands on each case i have tried this, but how to get this works properly in a batch ...
0
votes
1answer
1k views

My system is missing a “System Serial Number”

No, it is not about the Windows serial key and/or activation. After reading this question ( http://stackoverflow.com/q/21548747/1190388 ) about dmidecode and system serial numbers, I came across ...
0
votes
1answer
574 views

How can i get proxy settings with wmi?

I try this in cmd wmic path win32_proxy, but get ERROR: Description = Invalid class OS: Windows 7 64bit Am I doing this right?
1
vote
1answer
299 views

WMIC Node Information [duplicate]

Is there a way that you can get WMIC to prompt you for a node name each time? I will be running a similar command for different machines on different occasions. I.e. to get a remote computer model. ...
4
votes
0answers
18 views

Check if important Windows Update is available [duplicate]

When depolying any application, it could be needed, that user has computer updated to latest OS version of Windows. Windows XP/Win7/Win8. in this example, one important update is available on a ...
2
votes
1answer
608 views

What do the different ping statuses returned by VBS scripts mean?

I have a VBS Script that executes this code strQuery = "SELECT * FROM Win32_PingStatus WHERE Address = '" & Cell & "'" Cell - is the Excel cell with the hostname Some of my results are ...
1
vote
1answer
3k views

Find partition letters on physical drives using wmic

I am looking for a way to list drives and the partitions on them. Specifically I am looking to prompt a user for a drive to format and I want to show them the exists partitions so they can confirm ...
1
vote
1answer
202 views

Set an IPMI IP in Windows 2012 Server

I have got an IPMI adapter card on a Windows 2012 server machine (Supermicro). What I want to do is to set an IP (Management network) to be able to access the server via IPMI. On a GRML live it is: ...
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. ...
1
vote
1answer
338 views

How can I permanently add a new path to the 'PATH' environment variable of the current user on Win 7? [duplicate]

I'm working on Windows 7. How can I permanently add a new path to the 'PATH' environment variable of the current user? I tried to do so with wmic: wmic ENVIRONMENT where "name='Path' and ...
0
votes
1answer
244 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
2answers
2k views

Bat script using WMIC causing issues

I am trying to write a script to install the correct display driver. Long story short on newer systems when you add a dedicated card the onboard is no longer disabled so when I run this command: FOR ...
0
votes
2answers
995 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 ...
20
votes
5answers
80k views

How can I find out when Windows was last restarted?

How can I know when my computer running Windows 7 was last restarted? I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.
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 ...
2
votes
2answers
10k views

Run WMIC command across network

Instead of typing this in a command prompt one at a time: wmic /node:ipaddress /user:administrator /password:mypassword bios get serialnumber How can I run that against one entire subnet and output ...
1
vote
2answers
581 views

What is the unit of size we get from using wmic command on windows

I use a couple of wmic commands and I was wondering how can a user come to know the the unit of any size related command output? For Instance I use the below 2 commands wmic /node:Abhishek-PC cpu ...
3
votes
0answers
407 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 ...
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 ...
1
vote
2answers
2k views

How do I get a fully qualified file list from a shared folder?

I'm attempting to get a list of files on a shared folder (with their complete path names)- for example, instead of File1.txt File2.txt on \\sharename\foldername, I'm trying to get: ...
0
votes
1answer
5k views

WMIC Path <what>? WMIC Class <what>?

There are all sorts of commands that WMIC accepts, such as WMIC Path Win32_Battery WMIC Path Win32_Processor WMIC Class Win32_Battery WMIC Class ComputerSystem et cetera. Is there any way to list ...
6
votes
2answers
435 views

What are the differences between “Windows wmic” and “Windows registry”?

Is all the information that is available via Windows Management Instrumentation Command-line(wmic) also available via Windows registry(regedit)? What are the main differences between them?
3
votes
1answer
352 views

Windows Process/Tasks over wmic?

There is a way to get the list of all running process/taks on Windows using the wmic interface? Is there is another way other than the windows task manager?