Questions tagged [wmic]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
692 views

Domain Joining using WMIC command with a batch file

With a batch I was able to successfully join Office Systems on domain but for some reason a few are stuck and I did try the same command with changing fjoinoptions=2 and 3 but still unable to get them ...
user avatar
0 votes
0 answers
218 views

Why are "wmic diskdrive get size" and "(Get-Disk).Size" returning slightly different values?

As you can see, the following commands provide slightly different output. Why? I was expecting them to be the same. There is a 2.66MB difference between the two. How can I get the values from "...
Ingram's user avatar
  • 153
1 vote
1 answer
807 views

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 ...
dheb's user avatar
  • 11
0 votes
1 answer
1k 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 ...
G_Hosa_Phat's user avatar
1 vote
1 answer
2k 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 ...
tim11g's user avatar
  • 425
0 votes
1 answer
854 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=$...
Sauron's user avatar
  • 221
3 votes
1 answer
3k 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. ...
Alex's user avatar
  • 33
1 vote
1 answer
1k 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).
gregg's user avatar
  • 639
1 vote
0 answers
119 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 ...
jstuardo's user avatar
  • 155
0 votes
0 answers
715 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 { ...
user757392's user avatar
0 votes
1 answer
855 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 ...
user757392's user avatar
0 votes
1 answer
719 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 = ...
Cranta Ionut's user avatar
3 votes
0 answers
916 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....
elti's user avatar
  • 31
2 votes
1 answer
644 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 ...
Persistent13's user avatar
1 vote
0 answers
354 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% ...
marcel's user avatar
  • 11
0 votes
1 answer
4k 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 ...
Guy E's user avatar
  • 101