The wmic tag has no wiki summary.
4
votes
3answers
134 views
How to detect current media type in CLI under Windows? (DVD-RW, BD-R, etc)
How to detect current media type in CLI under Windows? (DVD-RW, BD-R, etc)
I've tried with wmic cdrom get /format:list but no info about the current media type.
I want to detect if the disc is a CD, ...
0
votes
1answer
24 views
How to find a user in a specific group using wmi
I have added a "SearchingUser" user to administrators group of a remote server "RemoteServer".
I am trying to verify the user is added to the server using WMIC and this is the command:
wmic ...
0
votes
1answer
165 views
WMIC command to find update
Is there a way to find if multiple MS updates are installed using WMIC command:
wmic qfe | find ?
Thanks
0
votes
0answers
39 views
Can we write a SINGLE query for retrieving PROPERTIES from TWO CLASSES in WMIC?
I want to retrieve the data from multiple classes in single query in WMIC.
I know that it wont be possible in WMI. But somewhere i feel it can be possible in wmic.
also i am able to retrieve and push ...
2
votes
2answers
995 views
CMD - Rename Local Computer, Join Domain, Join Specific OU
Alright so not sure if this is entirely possible all in one.
Situation: Brand new computer not on the domain, just a local workgroup. Want to change that computers name, join a domain, and put the ...
1
vote
0answers
317 views
wmic shows network drives as used that have been unmapped
I have a script running on Windows 7 Professional SP1 x64 that maps the first available network drive to a network resource, uses it, and then deletes the mapping.
Unfortunately, after deleting the ...
2
votes
2answers
270 views
WMI is showing wrong version of Microsoft Access
We use Microsoft Access for certain database functions and as most of you already know an Access database can be very grumpy when accessed by an outdated version of Access. In order to control this I ...
0
votes
1answer
1k views
How to use WMIC to connect to remote machine and output netstat to a file?
I'm trying to issue the following command remotely:
netstat -ano > C:\output.txt
but cannot figure out how to do that with WMIC! Any idea?
I've got:
process call create netstat.exe
working but ...
0
votes
1answer
156 views
How can I use WMIC to add an user to the administrator of a remote computer?
Does anyone know of a way (other than psexec) to add a user to the local administrators group of a remote machine?
I'm having trouble figuring out the syntax for wmic.
0
votes
2answers
510 views
Getting Win32_Service security descriptor using VBScript
I am using VbScript for retrieving the securitydescriptor of a Win32_Service. I am using the following code:
SE_DACL_PRESENT = &h4
ACCESS_ALLOWED_ACE_TYPE = &h0
ACCESS_DENIED_ACE_TYPE = ...
0
votes
1answer
258 views
wmic change default output format(get only process executable path)
Using wmic to get information about process.
wmic process where processid="<PID>"
gives many details (Caption, creationtime, arguments, ExecutablePath etc) . Right now I am processing the ...
1
vote
1answer
622 views
How can I best learn “wmic” the Windows WMI command line tool?
I'm interested in learning how to use WMIC, but I'm confused on where to begin. How does this tool compare to PowerShell? Can Powershell do everything WMIC can... and more?
0
votes
1answer
245 views
Limit on WMIC requests from a Windows Service
Does anyone know if there is limit on how many wmic requests Windows can handle simultaneously if they are originating from a Windows service? The reason I'm asking is because my application fails ...
0
votes
0answers
371 views
Query One WMIC Class and Call a Method from Another Class
Howdy. I cannot find any documentation on this, so I assume it is likely impossible. If one wanted to query info from one WMI class (like, say, if a user is logged) in WMIC and then call a method ...
0
votes
3answers
510 views
wmic hangs in Cygwin
If I open Cygwin in rxvt, running wmic does not show the expected wmic:root\cli> prompt. If I execute C:\cygwin\bin\bash.exe from cmd.exe, running wmic inside bash.exe returns the expected prompt. ...
1
vote
3answers
2k views
Getting Windows EventViewer CSV file from Command-line
EventViewer in Windows has the ability to export a log to a CSV file. I would like to automatically make a backup of that log in that format (as has been done manually in the past few years). It's a ...
0
votes
3answers
1k views
How to shutdown remote Win2k8 machine using WMIC?
What is the exact syntax to shutdown remote Win2k8 server using WMIC?
(The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access ...
2
votes
1answer
2k views
Remote installing an msi on citrix servers using WMI
OK, I'm a C# programmer that is trying to streamline the deployment of a custom windows form app I inherited and built an installer for with WiX (this app will need to be reinstalled regularly as I'm ...
1
vote
2answers
2k views
WMIC returns error when querying product
I'm trying to automate the installation of an MSI on my server, however before the installation can go ahead I need to uninstall the previous version from the server.
Searching on the internet I've ...
0
votes
2answers
2k views
How do I copy a network file using wmic on a remote computer?
I'm an admin of a domain and im trying to run a wmic script to copy a file on a remote pc from another remote pc.
My command:
WMIC /NODE:@"C:\compList.txt" PROCESS CALL Create "xcopy ...