Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We're using the Hyper-V role on Windows Server 2008 R2 and Windows Server 2012.

We have some virtual machines which are powered off. How can I find out when they were last run?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I worked it out - the timestamp on the .vhd file will change only when the VM is in use, so that's the last time it was run.

share|improve this answer
    
That will give you a good indication of when the VM was shut down. Is that what you're looking for? –  Michael Hampton Sep 4 '13 at 9:13
    
Knowing when it was last shut down is good enough for my purpose. Another way of finding both the last start and last shutdown would be to boot the VM and look at it's own event log / syslog (assuming the clock is accurate) but obviously that will take longer per machine and will use resources on the host. –  Colin Pickard Sep 4 '13 at 9:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.