Hackviking He killed Chuck Norris, he ruled dancing so he took up a new hobby…

15Nov/110

Hyper-V unable to start or connect


Received this error when I was working with my Hyper-V servers. It's easy to solve but the hos machine has to be rebooted and therefore all the VM machines will be unavailable for a while during the reboot.
Error:

Cannot connect to the virtual machine because the authentication certificate is expired or invalid. Would you like to try connecting again?

This error is due to the VMMS certificate expiring. So just run the KB fix and the issue will be gone!

More info: http://support.microsoft.com/kb/967902
Direct download of the fix: http://www.microsoft.com/downloads/details.aspx?FamilyID=289c831c-9142-4c00-bacd-6c1924ff0ecc

22Sep/103

Unable to display current owner

Run across a strange problem today. On a test server running Microsoft Windows Server 2008 one developer discovered that he couldn't delete a file even though he was admin on the system. I connect to the system and realize that I have the same problem, even though I'm domain admin. When I checked the permissions on the file it just displayed that I didn't have the permissions to see the ACL and redirected me to the ownership tab. All I could see there was "Unable to display owner". When I tried to take ownership I got "Access denied again". So back to the trusted CMD i thought! Same thing cacls.exe returned the same thing and gave me Access denied...

 

I then ran psexec from sysinternals:psexex -s cmd.exe
This starts the CMD as local system account. Now I have access to anything, or so i thought. NOT!
Same thing again, couldn't do anything with the file or view any options. Back to the drawingboard and then I came up with a reboot. Tried it and failed, it was a desperate measure and it was pretty clear that it wouldn't fix anything.

 

Then I found the solution, I needed to access the file without windows pounding the NTFS rights in my head. I really didn't want to rip out the hard drive and put it in to an other server to do it. So this is what I did....

 

Download MoveFile from sysinternals.
Run cmd.exe as administrator.
Run movefile c:\{path}\{fucked-up-file} ""
Reboot

 

That will trigger the operating system to delete the file during system boot.