Questions tagged [wmic]
14 questions
3
votes
1 answer
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.
Starting with Windows 10 - we do not remember seeing…
Alex
- 33
- 7
3
votes
0 answers
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.
Why is the byte count much higher when I use…
elti
- 31
- 3
2
votes
1 answer
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 Server Nano install. The page file is located at E:\…
Persistent13
- 643
- 3
- 13
1
vote
1 answer
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).
gregg
- 597
- 3
- 9
- 26
1
vote
0 answers
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 run every second is "WMIC".
I have looked at…
jstuardo
- 155
- 1
- 7
1
vote
0 answers
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% path Win32_GroupUser WHERE (GroupComponent =…
marcel
- 11
- 1
1
vote
1 answer
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 LoadPercentage
LoadPercentage
21
c:\>
From a Windows 2008r2…
tim11g
- 425
- 5
- 9
- 21
0
votes
1 answer
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=$CertificateThumbprint
Is it safe to direct remove the certificate…
Sauron
- 211
- 1
- 6
0
votes
0 answers
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
{
ReturnValue = 3;
};
My syntax…
user757392
- 173
- 1
- 3
- 12
0
votes
1 answer
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 know how to do that?
I know that the WMIC switch…
user757392
- 173
- 1
- 3
- 12
0
votes
1 answer
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 = gwmi -q "Select * from win32_computersystem" |…
Cranta Ionut
- 179
- 3
- 3
- 12
0
votes
1 answer
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 execution completing. In other words: the command…
Guy E
- 101
- 1
- 2
0
votes
1 answer
Running remote commands on Windows 10
Recently i was trying to research deeper into running remote commands from windows to windows. It can be easy with ssh, ftp - but I wanted it to run the commands without knowing the password either username, just local ip and computer name and maybe…
dheb
- 1
0
votes
1 answer
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 of our legacy software systems after a server was replaced…
G_Hosa_Phat
- 101
- 4