Questions tagged [wmic]

WMIC stands for Windows Management Instrumentation Command-line

WMIC stands for Windows Management Instrumentation Command-line. It uses the power of Windows Management Instrumentation (WMI) to enable systems management from the command line. WMIC extends WMI for operation from several command-line interfaces and through batch scripts. WMIC gives you a powerful, user-friendly interface to the WMI namespace.

More information

734 questions
-2
votes
1 answer

WMIC output in a batch script

This is pretty straight forward but after much Googling and experimenting, I cannot find the answer. I will use this as an example and then I can apply it to other scripts I am writing. When I run this command wmic cpu get name >…
doheth
  • 87
  • 9
-2
votes
1 answer

Powershell Get-HotFix find updates supplied in a text file

I am working on updates for Win 7 x64 ultimate. I have a text file in which I have typed KBnnnnn one entry per line. I want sort of a script/loop to go through each entry in text file and find it in installed updates. If found append a new text file…
sunnyimran
  • 3
  • 1
  • 4
-2
votes
1 answer

WMIC differences in Linux vs Windows

This wmic query (NODE, USER, PASS all desensitised)... wmic /NODE:10.00.00.1 /LOCALE:MS_409 /PRIVILEGES:ENABLE /TRACE:OFF /INTERACTIVE:OFF /FAILFAST:OFF /USER:domain\my_user /PASSWORD:myPass! /OUTPUT:STDOUT /APPEND:STDOUT /AGGREGATE:ON class…
MattGarnett
  • 545
  • 3
  • 20
-2
votes
1 answer

convert text file with comma deliminator to csv

I am trying to retrieve the data from user groups and exporting it into an excel. So i am able to get the users etc into a text file, but converting them to excel has to be manual(open text file in excel, then do the text import wizard and selecting…
Ruiru
  • 117
  • 1
  • 2
  • 7
-2
votes
1 answer

Execute And Close Other Applications From My Winform C#

It is a small part of my program where my program needs to start the program from DataGridView (Content Clicked Event) and its just executing that program perfectly but is not able to close it because some of incoming programs don't have same…
Rohaan Alam
  • 5
  • 1
  • 6
-2
votes
1 answer

Python script using WMIC. required argument 'flags' (pos 2) not found

I have a simple python script that uses wmic, to gather information from remove machines. Everything worked well until I added a line to gather some version information about iexplorer (the os4 line). os3 = os.popen('wmic /user:"' + username + '"…
C0ppert0p
  • 634
  • 2
  • 7
  • 23
-2
votes
1 answer

Batch script to get total,free,available size of disks

Thanx in advance I want to create a batch script using which I get all the drives used space, available space, and total space and store it in to the table. Please help me. i found fsutil command but failed to retrieve result.
Hima Joshi
  • 11
  • 3
-2
votes
1 answer

How to get information about Windows update status via wmic or nodejs?

I need information if the Windows updates status is ok and return it
-2
votes
1 answer

Need help in WMIC Output

How can I format the output file for below wmic command? I need to rework on failed machines wmic /node:@D:\input.txt /Output:"D:\Result.html" nicconfig where (IPEnabled=TRUE and DHCPEnabled=FALSE) call SetDNSServerSearchOrder…
-3
votes
1 answer

Uninstall applications including those not installed from MSI with Python

I want to uninstall any application in my system using python I tried using wmic command but it only shows few applications in your system not all of them . I am trying but not getting solution for this problem . Any advice would be helpful
-3
votes
2 answers

Batch Script to get % CPU and % MEM Usage of particular process

Can you help me writing Batch script to get the Percentage CPU and Percentage MEM usage of a particular process. I searched a lot but didn't found any solution. 1) Tried with "Tasklist" command but not getting Percentage MEM Usage of process.…
A1229
  • 1
  • 1
  • 1
  • 2
-3
votes
1 answer

wmic is not recognized as an internal or external command, operable program or batch file

I'm trying to get my motherboard's serial number through the following command in windows 10 cmd: wmic baseboard get serialnumber but I receive this Error: wmic is not recognized as an internal or external command, operable program or batch…
Mohammadreza
  • 79
  • 2
  • 9
-3
votes
1 answer

How to find which windows 10 build is installed?

I need to find which windows 10 is installed via a batch file. If it is between 1607 and RS4 build I will install x.exe if it is rs4 or higher I will not install x.exe. So I need an if/else statement to make it work? threshold 1 1507 10240 threshold…
-3
votes
3 answers

Batch file: START "" /W CMD /C doesn't seem to work inside a foor loop

I have a batch file and it's content is: SETLOCAL enabledelayedexpansion SET /A FT=500 FOR /F "skip=1 tokens=1-6" %%A IN ('START "" /wait WMIC Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table ') DO ( IF NOT !FT!==500…
spaniard89
  • 307
  • 1
  • 6
  • 18
1 2 3
48
49