0
votes
0answers
28 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
81 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 ...
1
vote
2answers
62 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
0answers
117 views

refresh windows network performance counters in command line

I am testing a USB device connected to a windows PC. When the device is connected then windows has another network interface going through the device. I need to get the bytes transffered for that ...
0
votes
1answer
2k 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 ...
0
votes
2answers
435 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
2answers
1k 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
4k 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
356 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
272 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?