The tag has no usage guidance.

learn more… | top users | synonyms

48
votes
7answers
219k 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.
1
vote
2answers
701 views

Wmic output into variable

Am trying to write the output of this command into a variable, but can't quite get the syntax to work... My WMIC query is: wmic PATH SoftwareLicensingProduct WHERE "ProductKeyID like '%-%' AND ...
1
vote
2answers
260 views

Is it possible to get ONLY the Drive Label using WMIC?

Using WMIC, I want to get only the drive label based on the drive letter: for /f "skip=1" %a in ('wmic volume where "Driveletter like '%C%'" get label') do echo %a Now, those of you who understand ...
0
votes
1answer
1k views

Getting HDD serial number

I'm trying to get the serial number of the hard disks in my PC, i.e. the number printed on a label on the hard disk itself. I found that I can do that using wmic diskdrive get serialnumber, but I see ...