The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
13 views

Use WMIC to find open files of a process

Is there a way do get a list of open files for a process using WMIC? Yes, there are sysinternals like HANDLE.EXE that can do this, but you have to get a copy, but more importantly if you are ...
0
votes
0answers
14 views

How to get window title information from cmd in wmic?

I know that you can get window title with: tasklist /v or tasklist /v /fi "WINDOWTITLE eq Untitled - Notepad" Can I get something like that in wmic? I can't find any information about that.
1
vote
1answer
28 views

WMIC in for-loop

I'm trying to get WMIC output into a variable so I can process it further. I have made a test batch file to illustrate the problem: wmic PROCESS where "commandline like '%%teststr%%'" get ...
0
votes
0answers
15 views

get process name from it's own description autoit?

how can i get the process name from computer memory by using loop depends on the process description example () if my prgram name "dev.exe" in memory and it's own description "a tool for ...
1
vote
0answers
24 views

how to detect/identify m2 ssd

As you know you can get a list of drives connected via sata using wmic: wmic diskdrive list This however doesn't seem to work with m2 ssds. Is there any equivalent for M2s that is not vendor ...
1
vote
0answers
15 views

WMIC Fails When Connecting to Computer with Multiple IP Addresses

I am trying to run a restart script against a list of computers, where it uses WMIC to see if users are logged in: WMIC /NODE: "workstation_name" COMPUTERSYSTEM GET USERNAME and then use psshutdown if ...
1
vote
1answer
44 views

WMI Call to retrieve Physical Serial Number on HDD's

I'm trying to write a script that incorporates a retrieved Drive Serial Number for a report. So far I've just been trying to get a WMI call or really anything to even retrieve it in the first place ...
0
votes
0answers
98 views

How to get WMI (Windows Management Instrumentation) information From Linux (Debian)

Step 1: I installed many packages such as wmi-client_1.3.14-3_amd64, libwmiclient1_1.3.14-3_amd64, ... to make my linux as wmi-client. Step 2: WMI with Linux. root@MRT:/home/mohammad/Desktop# wmic ...
0
votes
0answers
70 views

How to get laptop docking station serial number programmatically?

Is there are a way to get laptop docking station serial number programmatically? I assume it should be accessible via WMI, specifically via Win32_SystemEnclosure class but unable to come up with ...
0
votes
0answers
12 views

Identifying device type remotely

I am writing an IP scanner in C#... I'm not looking for coding help, but rather the how do I determine the device type. Using WMI and remote registry I am able to get all information I want from ...
1
vote
1answer
41 views

Disable/enable lan-device by batchfile: If comparisons not working

I have created this .bat-file which is invoked by clicking on the proper shortcut, which is configured properly. But the last two comparisons seem not to evaluate properly. Here we go. @ECHO off ...
0
votes
0answers
61 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 ...
3
votes
1answer
1k 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 ...
0
votes
1answer
78 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) ...
1
vote
2answers
76 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 ...
0
votes
0answers
263 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
2answers
2k 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 ...
1
vote
1answer
926 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
2answers
529 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
0answers
711 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), ...
0
votes
2answers
257 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 ...
2
votes
2answers
77 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
1answer
62 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.
0
votes
1answer
1k views

how to completely disable pagefile use wmic

Hi I am trying to create a batch file to disable the page file on windows 7, is there any wmic command will do this? I know I should be able to use "wmic pagefileset delete" however this always ...
3
votes
1answer
193 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
303 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 ...
1
vote
2answers
296 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
1answer
95 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
0answers
45 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
1answer
86 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 ...
2
votes
1answer
292 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 ...
0
votes
2answers
188 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 ...
1
vote
1answer
451 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
417 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
36 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
609 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
222 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 ...
2
votes
1answer
824 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
2k 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
2answers
466 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
2answers
3k 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
1k 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
836 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 ...
3
votes
1answer
71k 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
633 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
104 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
1k 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
484 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
19 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 ...