Mount VHDX: Unterschied zwischen den Versionen

Aus Wiki-WebPerfect
Wechseln zu: Navigation, Suche
K
 
(6 dazwischenliegende Versionen des gleichen Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 +
== Mount/Dismount VHD/VHDX with DISM ==
 +
'''Mount'''
 +
dism /mount-image /imagefile:<full_path_to_vhd> /mountdir:<mount_path> /index=1
  
== Mount VHD/VHDX with CMD ==
+
'''Dismount'''
 +
dism /unmount-image /mountdir:<mount_path> /commit
 +
 
 +
 
 +
 
 +
== Mount/Dismount VHD/VHDX with Diskpart ==
 
[[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="<full_path_to_vhd>"
 
  attach vdisk
 
  attach vdisk
 +
 +
'''Dismount'''
 +
diskpart
 +
select vdisk file="<full_path_to_vhd>"
 +
detach vdisk
 +
  
  
 
== Mount/Dismount VHD/VHDX with PowerShell ==
 
== Mount/Dismount VHD/VHDX with PowerShell ==
<source lang="powershell">Mount-VHD –Path "<location_of_vhd>" </source>
+
'''Mount'''
 +
<source lang="powershell">Mount-VHD –Path "<full_path_to_vhd>" </source>
  
<source lang="powershell">Dismount-VHD –Path "<location_of_vhd>" </source>
+
'''Dismount'''
 +
<source lang="powershell">Dismount-VHD –Path "<full_path_to_vhd>" </source>
  
  
Zeile 16: Zeile 33:
  
 
[[Kategorie:Windows]]
 
[[Kategorie:Windows]]
 +
[[Kategorie:PowerShell]]

Aktuelle Version vom 23. Juni 2020, 12:33 Uhr

Mount/Dismount VHD/VHDX with DISM

Mount

dism /mount-image /imagefile:<full_path_to_vhd> /mountdir:<mount_path> /index=1

Dismount

dism /unmount-image /mountdir:<mount_path> /commit


Mount/Dismount VHD/VHDX with Diskpart

Mount-vhd-from-command-line.png

Mount

diskpart
select vdisk file="<full_path_to_vhd>"
attach vdisk

Dismount

diskpart
select vdisk file="<full_path_to_vhd>"
detach vdisk 


Mount/Dismount VHD/VHDX with PowerShell

Mount

Mount-VHD –Path "<full_path_to_vhd>"

Dismount

Dismount-VHD –Path "<full_path_to_vhd>"