Questions tagged [wmic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
54 views

Get all hostnames in local DNS for current Windows server

I've deployed BGInfo from SysInternals to all of our servers, both physical and virtual. However, a few of our servers have multiple hostnames to support "backward compatibility" with some ...
0
votes
0answers
96 views

WMI: wmic Linux query error: NTSTATUS: NT_STATUS_CONNECTION_REFUSED

I followed the instructions below to install WMIC on Linux... https://askubuntu.com/questions/885407/installing-wmic-on-ubuntu-16-04-lts This installed successfully. But I try to simple query windows ...
0
votes
0answers
59 views

Can't set RDP certificate in Windows 2012R2

I have a few w2k12r2 machines running in an isolated network. I connect to those using RDP, and I wanted to make sure I don't use self-signed certificates there. I got certificates from on-prem ADCS, ...
1
vote
1answer
44 views

Get CPU load percentage on Windows 2008r2 Server - WMIC doesn't work?

I found the command wmic cpu get LoadPercentage was recommended as a way to get a CPU load estimate from a command line. It works as expected from a Windows 10 system: c:\>wmic cpu get ...
0
votes
1answer
361 views

Remove TerminalServices SSLCertificateSHA1Hash

I would like to remove RDP certificate that I previously set through the command wmic /namespace:\\root\cimv2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash=$...
3
votes
1answer
1k views

Subsequent calls to WMIC return a localdatetime with a deviating timezone

The problem In our company environment we use several batch files which use WMIC to retrieve the current time. Usually to print it to log files, but also to include the timestamp in a file name. ...
0
votes
1answer
629 views

WMIC on multiple remote PC's failing with: Failed to open Node-list file

wmic /node:@PC-list.txt os get csname,installdate Command above yields this error: Failed to open Node-list file (Please check the filename).
1
vote
0answers
47 views

WMIC is running every second... how can I stop running it?

when I enter a server using Remote Desktop connection, I notice that every second a console window is opened and closed immediately. I could take a screenshot so I could see that the program that is ...
0
votes
0answers
443 views

WMIC returnvalue = 3?

Am trying to install a simple msi from our DC to my machine for testing purposes, but, I keep on getting this one error: Method execution successful. Out Parameters: instance of __PARAMETERS { ...
0
votes
1answer
508 views

Create .txt file with all PC names on domain for WMIC?

I'm wanting to run WMIC to call an uninstall for a certain bit of software, and, I have a working WMIC command, but I don't know how to create a .txt file with all of our computer names. Does anyone ...
0
votes
1answer
467 views

GWMI - Find out if Domain Controllers are physical or virtual via script

I have tried to create a script for extracting but the output is not quite I desired. $Servers = Get-ADDomainController -Filter * | Select-Object Name foreach($server in $servers) { $compsystem = ...
3
votes
0answers
690 views

Windows netstat vs WMIC bytes sent/received difference

I'm trying to understand the difference between the bytes sent/received values returned by both netstat and wmic on Windows. I'm having a hard time finding an explanation for the significant variation....
2
votes
1answer
567 views

Nano Server - Move Pagefile

Update: I never found a way to move the pagefile and with Microsoft's pivot to make Nano container only I doubt there will ever be a way to do this. I am trying to move the pagefile on a Windows ...
1
vote
0answers
277 views

wmic GroupUser where OR not working

These 2 statements, where the only difference is the order in the conditional, give different results. What is the reason for this behavior? Is my usage of OR incorrect? wmic /Node:%computername% ...
0
votes
1answer
3k views

wait until completing WMIC process call create cmd.exe to run bat

I'm running a bat file located on a remote server. The command is: wmic /node:[server name] process call create "cmd.exe /c [bat file location]. I would like the command to wait until the batch file ...