The tag has no usage guidance.

learn more… | top users | synonyms

41
votes
5answers
160k 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.
6
votes
2answers
562 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?
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 ...
4
votes
0answers
540 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 ...
3
votes
2answers
19k 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 ...
3
votes
1answer
511 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?
3
votes
1answer
124 views

“No Instance(s) Available” error with the wmic command

I'm getting a "No Instance(s) Available" error with the wmic command. The command I'm running (from an elevated/administrator cmd.exe window) is: G:\>wmic datafile where name="file.txt" get ...
3
votes
1answer
129 views

Get wall-clock time of a windows process with command line

Is it possible to get an uptime from a windows process which is not based on the clock settings of the system? A linux-based solution is something like: ps -eo comm,etime With some researches, I ...
2
votes
1answer
1k 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 ...
2
votes
1answer
164 views

Is there an efficient way to query if product is installed on Windows and retrieve IdentifyingNumber

I'm trying to automate a test process to first uninstall a product if present. To find the product I've so far found that the information is available through wmi and wmic product get ...
2
votes
1answer
1k 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 ...
2
votes
1answer
606 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 ...
2
votes
1answer
226 views

Issues automating printer driver update (printer settings) and printer preferences in Win7, using a PS,cmd,vbs,etc script?

WMI can do it, but I have an issue, PCs are on, but logged off. If I try to run: wmic /node:%strIP% printer where DeviceID="lp1" set DriverName="Lexmark Universal v2" It fails with a message about ...
2
votes
1answer
325 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
1answer
7k 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 ...
1
vote
2answers
154 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 ...
1
vote
2answers
766 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 ...
1
vote
1answer
39 views

How can I collect `pslist` elapsed time information by using wmic?

The MS technet utility pslist can produce result like this: How can I use wmic to obtain the 'Elapsed Time' result? If it is not possible, I am happy to try Powershell.
1
vote
1answer
76 views

How to find out the architecture of OS installed and get only the value 32 or 64 in Windows?

How to find out the architecture of OS installed and get only the value 32 or 64 in Windows? With wmic os get osarchitecture I get : OSArchitecture 64-bit I only want 32 or 64 without ...
1
vote
1answer
341 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 ...
1
vote
1answer
278 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
1answer
56k 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 ...
1
vote
2answers
99 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 ...
1
vote
1answer
5k 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
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: ...
1
vote
1answer
258 views

Wmic output into variable

Am trying to write the output of this command into a variable, but can't quite get the syntax to work... My WMIC query is: wmic PATH SoftwareLicensingProduct WHERE "ProductKeyID like '%-%' AND ...
1
vote
1answer
66 views

WMIC Process information doesn't get the status

Executing wmic PROCESS get name,status in an elevated command prompt in Windows 7 will get all running processes, but the status is empty (see screen shot). How can I get the status of currently ...
1
vote
2answers
50 views

Send a file to all network users automatically via WMIC command

I have a script with which I can scan the network for live ips and the result is being sent to a file called "ip_list.txt". After that, I would like to send a file "file.txt" on every ip address from ...
1
vote
1answer
413 views

How to set network connection priority order under windows with wmic or VB-script?

Under Windows via "Network Adapters>Advanced Settings...>Adapters and Bindings>Connections" I can define the network connection priority order (I dont mean the provider order!). But how can I do this ...
1
vote
0answers
360 views

Command “wmic memphysical get maxcapacity” gives wrong number

I have been using my laptop with 16G (8gx2) memory for a long time, I can use all of 16G memory without any problem, but ran wmic memphysical get maxcapacity today shows however 8388608 (8G), ...
1
vote
1answer
56 views

Understanding the wmic cpu/os output

I have 2 questions - I have several computers on my network. When I use "wmic cpu" some of them return single line data output and others two identical lines. Does it (necessarly) mean those ...
1
vote
2answers
193 views

Checking UAC Elevation of Running Process from Command Prompt

How can I use the command prompt (cmd.exe) to check if a process is running with UAC elevation / elevated privileges? If I were to use the Task Manager (taskmgr.exe), I could check by adding the "UAC ...
1
vote
0answers
39 views

Get memory location and space associated to process using processId

I want to get the memory information(address and size) of a process in Ram using process id. I tried WMIC and task manager they provide only the memory used by the process at current time. Could ...
1
vote
0answers
32 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
431 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. ...
1
vote
1answer
312 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: ...
1
vote
1answer
491 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
2answers
158 views

My L3 cache size showing zero in wmic (cmd)

I purchased a desktop system which has 6 MB Cache. When I checked the L3 cache in the BIOS I didn't find a L3 cache. I the tried to use another method in from the command line to confirm the L3 cache ...
0
votes
2answers
2k 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
2answers
131 views

Remove all volumes from all connected disks - Diskpart

How can I remove all volumes from the hard drives in a WinPE environment using Diskpart through Powershell or WMIC calls? The WinPE image will be injected with the required packages using DISM ...
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
2answers
346 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
852 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
1answer
935 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?
0
votes
2answers
3k 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
2k 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
0answers
25 views

Can the wmic command reliably be used in script batch files?

I believe that the following command: wmic product where "name like '%%winzip%%'" call Uninstall shuts down PC's when deployed with SCCM. Has anybody came across any issues with the command similar ...
0
votes
1answer
30 views

WMIC file copy from server to a client fails

I try to run from a server the following command but it doesn't finally works. What I try to do is to copy a file from the c$ of my server to a specific client. 10.10.10.10 (The server) ...
0
votes
0answers
204 views

WMI “No Instances Available”

I am trying to query WMI to get the serial number of a remote PC, but I get an error: C:\WINDOWS\system32>winrs -r:253506a wmic csproduct list No Instance(s) Available. Other WMIC commands work. ...
0
votes
1answer
948 views

Installing JDK on Windows 10 - MsiEnumProducts error 1610 due to broken WBEM library/WMI library

I failing on installing JDK 8 on an x64 Windows 10 installation or updating from any older version to the up-to-date version. After the usual Java Update failed with no error message whatsoever, I ...