The tag has no wiki summary.

learn more… | top users | synonyms

11
votes
2answers
28k views

How can I find out when Windows was last restarted?

How can I know when my computer running Windows 7 was last restarted? I prefer a solution that doesn't involve searching the event log, but something like wmic or maybe cmd commands.
6
votes
2answers
338 views

What are the differences between “Windows wmic” and “Windows registry”?

Is all the information that is available via Windows Management Instrumentation Command-line(wmic) also available via Windows registry(regedit)? What are the main differences between them?
3
votes
1answer
252 views

Windows Process/Tasks over wmic?

There is a way to get the list of all running process/taks on Windows using the wmic interface? Is there is another way other than the windows task manager?
3
votes
0answers
18 views

Check if important Windows Update is available [duplicate]

When depolying any application, it could be needed, that user has computer updated to latest OS version of Windows. Windows XP/Win7/Win8. in this example, one important update is available on a ...
2
votes
1answer
309 views

What do the different ping statuses returned by VBS scripts mean?

I have a VBS Script that executes this code strQuery = "SELECT * FROM Win32_PingStatus WHERE Address = '" & Cell & "'" Cell - is the Excel cell with the hostname Some of my results are ...
2
votes
2answers
4k views

Run WMIC command across network

Instead of typing this in a command prompt one at a time: wmic /node:ipaddress /user:administrator /password:mypassword bios get serialnumber How can I run that against one entire subnet and output ...
2
votes
0answers
258 views

wmic - localized values

When using the wmic command, it is possible to specify a locale using /locale:ms_409 which means US English. I am using a German version of Windows XP, which displays some localized values when using ...
1
vote
2answers
1k views

How do I get a fully qualified file list from a shared folder?

I'm attempting to get a list of files on a shared folder (with their complete path names)- for example, instead of File1.txt File2.txt on \\sharename\foldername, I'm trying to get: ...
1
vote
1answer
89 views

WMIC Node Information [duplicate]

Is there a way that you can get WMIC to prompt you for a node name each time? I will be running a similar command for different machines on different occasions. I.e. to get a remote computer model. ...
1
vote
1answer
122 views

Set an IPMI IP in Windows 2012 Server

I have got an IPMI adapter card on a Windows 2012 server machine (Supermicro). What I want to do is to set an IP (Management network) to be able to access the server via IPMI. On a GRML live it is: ...
1
vote
0answers
98 views

Is WMIC interface values available to change?

On "WMIC" interface (cmd promt \ "wmic" command) the information that I see could be changed??? I mean, could I do the same as I do on Windows registry, just getting and setting the values displayed? ...
0
votes
1answer
467 views

My system is missing a “System Serial Number”

No, it is not about the Windows serial key and/or activation. After reading this question ( http://stackoverflow.com/q/21548747/1190388 ) about dmidecode and system serial numbers, I came across ...
0
votes
2answers
400 views

What is the unit of size we get from using wmic command on windows

I use a couple of wmic commands and I was wondering how can a user come to know the the unit of any size related command output? For Instance I use the below 2 commands wmic /node:Abhishek-PC cpu ...
0
votes
1answer
4k views

WMIC Path <what>? WMIC Class <what>?

There are all sorts of commands that WMIC accepts, such as WMIC Path Win32_Battery WMIC Path Win32_Processor WMIC Class Win32_Battery WMIC Class ComputerSystem et cetera. Is there any way to list ...
0
votes
1answer
247 views

How can i get proxy settings with wmi?

I try this in cmd wmic path win32_proxy, but get ERROR: Description = Invalid class OS: Windows 7 64bit Am I doing this right?
0
votes
1answer
2k views

Find partition letters on physical drives using wmic

I am looking for a way to list drives and the partitions on them. Specifically I am looking to prompt a user for a drive to format and I want to show them the exists partitions so they can confirm ...
0
votes
2answers
1k views

Bat script using WMIC causing issues

I am trying to write a script to install the correct display driver. Long story short on newer systems when you add a dedicated card the onboard is no longer disabled so when I run this command: FOR ...
0
votes
1answer
13 views

batch: wmic difficulty in FOR loop

I'm trying to learn to write batch files so I can be more useful at work, but I'm having some difficulty with wmic inside a for loop. (even if there is a better way to do this with PowerShell or ...
0
votes
1answer
51 views

How to get BIOS serialnumber with WMIC command

Whenever I use the command line below wmic bios get serialnumber It outputs the BIOS Serial number with my laptop. However, I've tried that command line to get BIOS serial number with my ...
0
votes
1answer
35 views

Using batch to verify a process is running with WMIC

I am attempting to write a script that will check if a process is running (in my case a virtual machine) @echo off wmic process where name="VirtualBox.exe" | find "GitHubEnterprise" /c > tmpcount ...
0
votes
2answers
53 views

Batch File - Know if disk is partitioned or not

I am working on Winpe environment, how to get informations if the disk 0 is partitioned or not to launch specific commands on each case i have tried this, but how to get this works properly in a batch ...
0
votes
0answers
102 views

refresh windows network performance counters in command line

I am testing a USB device connected to a windows PC. When the device is connected then windows has another network interface going through the device. I need to get the bytes transffered for that ...
0
votes
1answer
33 views

Run application as user?

I have to deploy some applications in a domain and would like to use WMIC for that. My problem is that I can't run the application as the profile user (without having the password), but just as admin. ...
0
votes
1answer
173 views

How can I permanently add a new path to the 'PATH' environment variable of the current user on Win 7? [duplicate]

I'm working on Windows 7. How can I permanently add a new path to the 'PATH' environment variable of the current user? I tried to do so with wmic: wmic ENVIRONMENT where "name='Path' and ...
0
votes
1answer
126 views

Filtering to physical NICs in WMIC on XP

If I enter this in Windows 7 I can filter the NICs to ones that have a physical adapter WMIC NIC WHERE PhysicalAdapter="TRUE" GET /VALUE But in XP all I get is "Invalid Query" because it doesn't ...
0
votes
1answer
688 views

disable network adapter with wmic - access denied (Windows 7 Prof)

I would like to disable the local network card (only one in the computer) by using this command: wmic path win32_networkadapter where index=7 call disable return value is 5 (access denied). I don't ...
0
votes
1answer
811 views

How to pass a variable to a WMI query run in a batch file?

I want to run the following in a batch file and prompt the user to enter "NewUserID", then insert it as a variable. Can this be done with WMI? wmic useraccount where name='user'call rename ...
0
votes
0answers
5k 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 ...