Skip to main content

Questions tagged [wmic]

The tag has no usage guidance.

0 votes
1 answer
59 views

Unexpected Findings: Laptop Memory Details Indicate DIMM Slots – Is This Correct?

I'm planning to upgrade the RAM in my laptop and wanted to ensure I get the right memory type. I've read that laptops typically use SODIMM memory, while desktops use DIMM memory. However, when I used ...
NH.LOCAL's user avatar
0 votes
0 answers
81 views

Use wmic process to list only processes that have visible windows

I am trying to provide a secondary backup to Windows sometimes working, sometimes not, state restore post update restarts. Have got the commandLine value, which often contains the file open in a ...
user66001's user avatar
  • 1,265
0 votes
1 answer
283 views

(SOLVED) how to enable and disable device in one batch file [duplicate]

I want a shortcut that enable/disable a network card according to its status. I figured out how to enable or disable using either devcon, wmic and pnputil or found some Q&As here that suggest ...
user2048695's user avatar
1 vote
1 answer
550 views

WMIC SoftwareLicensingService setting ProductKey not working

When I run this command during a windows modification and reinstall test: wmic path SoftwareLicensingService set OA3xOriginalProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Its giving me this result: ...
Sierra46's user avatar
0 votes
1 answer
590 views

How can I check the value of ReturnValue of a WMIC command?

When running WMIC commands sometimes the ReturnValue is not zero, indicating an error, such as : wmic.exe ComputerSystem where "Name='%computername%'" call Rename Name="%newname%" ...
calade's user avatar
  • 63
1 vote
1 answer
127 views

Cannot get variables from Windows activation through Wmic SoftwareLicensingProduct

I'm trying to get Windows 10 Licensing Informations through WMIC SoftwareLicensingProduct reading in a loop but it displays nothing... The command line itself produces the right information in a CMD ...
calade's user avatar
  • 63
0 votes
1 answer
290 views

Interpretation of wmic memphysical query output values

I ran this command in the command prompt and was wondering if I was interpreting the output of the command correctly. The command goes as follows: wmic memphysical get MaxCapacity, MemoryDevices The ...
EnlightenedFunky's user avatar
2 votes
1 answer
3k views

What does OA3x mean in WMIC Command oa3xoriginalproductkey

I am asking out of curiosity to know. What does OA3x mean in WMIC PATH SOFTWARELICENSINGSERVICE GET OA3xOriginalproductkey?
Siva Prasad's user avatar
1 vote
1 answer
60 views

How can I select only the basic Ethernet interface ipo Virtual Ethernet or other interfaces in a batch with WMIC NICCONFIG?

I have a small subroutine giving the description and index of the network interface called 'CARTE', so when called with %CARTE%=wireless, it returns the correct index of wireless interface (2), but ...
calade's user avatar
  • 63
0 votes
1 answer
1k views

how can we sort files according to their size using cmd batch files and print a wait timer till the loop is running?

How can we sorting the files with size in the decreasing order. What should i add ? for %%d in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do ( if exist %%d: ( echo Another process is ...
user avatar
2 votes
1 answer
1k views

How to get the current IO utilization in percentage from the command line on Windows 10?

I already know how to get the CPU usage percentage: wmic cpu get loadpercentage That returns: LoadPercentage 21 But what about the IO? Meaning the total disk utilization in percentage, or one per ...
Majd's user avatar
  • 21
1 vote
2 answers
392 views

WMIC ProcessID does not get parsed within the same command instance

I've got a batch script that I'd like to capture its Process ID but the PID is not being parsed from within the same command instance. For example, running the batch script with the following code ...
Joseph Karkar's user avatar
0 votes
2 answers
676 views

How to query a different registry path with wmic?

In cmd, the wmic command queries the registry path: HKEY_CLASSES_ROOT\Installer\Products But this list of programs is limited to those which were installed with MSI. I would like to create a batch ...
Sam's user avatar
  • 1
1 vote
1 answer
793 views

How can I change the order in which disks appear in the command "wmic diskdrive get"

How can I change the order in which disks appear in the command wmic diskdrive get? wmic diskdrive get output I want to move the Samsung SSD 980 PRO 2TB to the first position.
Leno Li's user avatar
  • 11
1 vote
0 answers
434 views

Using WMIC to find version then run respective actions

I want to run a batch to find out which version of Symantec End Point in order to perform update or upgrade actions. I got error when implementing below script - No Instance(s) available Please help ...
VB88's user avatar
  • 423

15 30 50 per page
1
2 3 4 5
12