Mount VHDX: Unterschied zwischen den Versionen
Aus Wiki-WebPerfect
Admin (Diskussion | Beiträge) |
Admin (Diskussion | Beiträge) |
||
Zeile 2: | Zeile 2: | ||
== Mount VHD/VHDX with CMD == | == Mount VHD/VHDX with CMD == | ||
[[Datei:Mount-vhd-from-command-line.png|right]] | [[Datei:Mount-vhd-from-command-line.png|right]] | ||
+ | '''Mount''' | ||
diskpart | diskpart | ||
select vdisk file="<location_of_vhd>" | select vdisk file="<location_of_vhd>" | ||
attach vdisk | attach vdisk | ||
+ | |||
+ | '''Dismount''' | ||
+ | diskpart | ||
+ | detach vdisk | ||
== Mount/Dismount VHD/VHDX with PowerShell == | == Mount/Dismount VHD/VHDX with PowerShell == | ||
+ | '''Mount''' | ||
<source lang="powershell">Mount-VHD –Path "<location_of_vhd>" </source> | <source lang="powershell">Mount-VHD –Path "<location_of_vhd>" </source> | ||
+ | '''Dismount''' | ||
<source lang="powershell">Dismount-VHD –Path "<location_of_vhd>" </source> | <source lang="powershell">Dismount-VHD –Path "<location_of_vhd>" </source> | ||
Version vom 16. Mai 2018, 12:40 Uhr
Mount VHD/VHDX with CMD
Mount
diskpart select vdisk file="<location_of_vhd>" attach vdisk
Dismount
diskpart detach vdisk
Mount/Dismount VHD/VHDX with PowerShell
Mount
Mount-VHD –Path "<location_of_vhd>"
Dismount
Dismount-VHD –Path "<location_of_vhd>"