locked
Opening VHD file on different server RRS feed

  • Question

  • I have a new client who has an old VHD file that they say a previous IT company was hosting a virtual server for them. Now they need to access it to get files from it.

    First attempt to open it gave:

    Failed to add device "Virtual Hard Disk". 
    'New Virtual Machine' failed to add device .... Virtual machine ID ....
    Failed to open attachment "\\file\\etc\etc" Error. 'The user name or password is incorrect"

    Looking it up i came across this https://support.microsoft.com/en-us/help/2249906/hyper-v-virtual-machine-may-not-start,-and-you-receive-a-general-access-denied-error-0x80070005-error-message

    Which said the VM ID needed to be added to the file using the command 
    icacls "...\VMFILE.vhd" /grant "NT VIRTUAL MACHINE\virtualmachineid#":(F)

    but when i do that (using the vmid given in the error from the machine i am running it on i get 

    No Mapping between account names and security IDs was done.
    Successfully processed 0 files; Failed processing 1 files

    And i cant find anything else suggesting what could be causing this.
    (Yes, I am running this in an elevated command prompt)

    Thanks!




    Bob Karon Computer Solutions www.INeedBob.com


    • Edited by Bob Karon Wednesday, April 19, 2017 7:12 PM
    Wednesday, April 19, 2017 7:04 PM

Answers

  • takeown /F c:\Windows\Servicing\Packages /D y /R


    cacls c:\Windows\Servicing\Packages /E /T /C /G "UserName":F

    Worked.


    Bob Karon Computer Solutions www.INeedBob.com

    • Marked as answer by Bob Karon Friday, April 21, 2017 4:12 PM
    Friday, April 21, 2017 4:12 PM

All replies

  • Have you tried just taking ownership of it?

    Also, for more/better responses, try reposting in the Hyper-V group, this one's for Virtual Server 2005.

    https://social.technet.microsoft.com/Forums/en-US/winserverhyperv/threads

    Thursday, April 20, 2017 4:14 PM
  • takeown /F c:\Windows\Servicing\Packages /D y /R


    cacls c:\Windows\Servicing\Packages /E /T /C /G "UserName":F

    Worked.


    Bob Karon Computer Solutions www.INeedBob.com

    • Marked as answer by Bob Karon Friday, April 21, 2017 4:12 PM
    Friday, April 21, 2017 4:12 PM