Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
0 votes
1 answer
216 views

I wrote this batch to get the number of active processes given a certain command line value, but the not equal operator I use in the query to exclude WMIC.exe itself doesn't work, and the batch ...
-1 votes
2 answers
317 views

I'm looking for an elegant way to search for windows service Paths not encapsulated in quotes (nessus 63155). The reasoning behind this is to inspect some server for vulnerability to Microsoft Windows ...
1 vote
1 answer
106 views

I have installed Windows 2012 server Core only so I can only use command prompt. I created certain users in groups and given them permissions to write, read, delete etc. Now I wish to use the cmd to ...
0 votes
2 answers
987 views

I'm trying to find a powershell command that will list volumes of internal hard disks only. I can run a wmic command for wmic diskdrive which gives me the MediaType, but not the volume. I ran the ...
1 vote
0 answers
36 views

I'm trying to write a little cmd script to query the cpu with wmic to get the thread count applied to a registry key. I have this code so far. for /f "tokens=2 delims=^=" %%t in ('wmic cpu ...
-1 votes
1 answer
131 views

I have written a program that pulls various data pieces from whatever machine it is running on, and I'm having some trouble with a particular query I built into it. This one line is [correctly] ...
0 votes
2 answers
156 views

I am trying to write a batch file that goes over existing network shares and deletes all the non-administrative ones. Here's my code: FOR /F "USEBACKQ SKIP=1 TOKENS=*" %%j IN (`wmic /node:...
Enqueue's user avatar
  • 59
0 votes
2 answers
284 views

I want to close a program using command line. to do so I will use this line of code to find the PID of the service, wmic process get ProcessID,ExecutablePath | findstr /c:"D:\Eightcap - MT5\...
0 votes
3 answers
240 views

I use this code to set first output line into variable but can't set second or other line into another variables. wmic memorychip get capacity Output: Capacity 4294967296 4294967296 8589934592 ...
1 vote
2 answers
878 views

Long time reading. First time poster. I have a Windows machine with many NICs, and rather than the normal ipconfig, I want a simple way of showing the IP address(es) of just the adapter(s) that is(are)...
2 votes
1 answer
430 views

I am trying to calculate the last time the computer was restarted with CMD. But I don't want it in Year/month/day format. Send the total number of days, hours and minutes Here's what I've been able to ...
0 votes
1 answer
2k views

I want to read security settings value programmatically using command prompt and wmic.exe tool. Specifically value "Computer Configuration\Policies\Windows Settings\Security Settings\Local ...
kopiev's user avatar
  • 39
1 vote
1 answer
695 views

I found that WMIC doesn't get all installed software because it takes information from some specific/default registry as unique, and that registry alone doesn't contain the full list of software shown ...
0 votes
1 answer
454 views

I try to access all attributes of the given method from any classes into the WMI. For example, I can list the methods inside "Win32_SystemDriver " class Get-WmiObject -Class ...
0 votes
2 answers
231 views

I'm trying to create batch file that will use wmic to find a process and terminate it. The command line looks like this: "C:\Progress\OE117\bin\_progres" -ininame Pro2.ini -basekey "...

15 30 50 per page
1
2 3 4 5
...
48

AltStyle によって変換されたページ (->オリジナル) /