Skip to content

Commit

Permalink
Additional text formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Xelu86 committed Jul 31, 2023
1 parent e5717df commit 4d29a49
Show file tree
Hide file tree
Showing 10 changed files with 257 additions and 168 deletions.
59 changes: 35 additions & 24 deletions docset/winserver2022-ps/hyper-v/Convert-VHD.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,33 @@ Converts the format, version type, and block size of a virtual hard disk file.
## SYNTAX

```
Convert-VHD [-Path] <String> [-DestinationPath] <String> [-VHDType <VhdType>] [-ParentPath <String>]
[-BlockSizeBytes <UInt32>] [-DeleteSource] [-AsJob] [-PassThru]
[-AddressAbstractionType <VirtualHardDiskPmemAddressAbstractionType>] [-CimSession <CimSession[]>]
[-ComputerName <String[]>] [-Credential <PSCredential[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Convert-VHD [-Path] <String> [-DestinationPath] <String> [-VHDType <VhdType>]
[-ParentPath <String>] [-BlockSizeBytes <UInt32>] [-DeleteSource] [-AsJob]
[-PassThru] [-AddressAbstractionType <VirtualHardDiskPmemAddressAbstractionType>]
[-CimSession <CimSession[]>] [-ComputerName <String[]>] [-Credential <PSCredential[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION

The `Convert-VHD` cmdlet converts a virtual hard disk file by copying the data from a source virtual
hard disk file to a new virtual hard disk file of a specified format and version type. The format is
determined by the file name extension of the specified files, either vhdx or vhd. Conversion is an
offline operation; the virtual hard disk must not be attached when the operation is started.
The `Convert-VHD` cmdlet converts a virtual hard disk file by copying the data from a source
virtual hard disk file to a new virtual hard disk file of a specified format and version type. The
format is determined by the file name extension of the specified files, either **VHDX** or **VHD**.
Conversion is an offline operation; the virtual hard disk must not be attached when the operation
is started.

## EXAMPLES

### Example 1

```powershell
Convert-VHD -Path c:\test\testvhd.vhd -DestinationPath c:\test\testvhdx.vhdx
Convert-VHD -Path C:\test\testvhd.vhd -DestinationPath C:\test\testvhdx.vhdx
```

This example converts a source VHD to a destination VHDX. Because the format is determined by the
file name extension and the default type is determined by the source virtual hard disk when no type
is specified, the destination virtual hard disk will be a VHDX-format disk of the same type as the
source virtual hard disk.
This example converts a source **VHD** to a destination **VHDX**. Because the format is determined
by the file name extension and the default type is determined by the source virtual hard disk when
no type is specified, the destination virtual hard disk will be a VHDX-format disk of the same type
as the source virtual hard disk.

### Example 2

Expand All @@ -53,8 +55,8 @@ ParentPath = "C:\test\parentvhd.vhd"
Convert-VHD -Path c:\test\child1vhdx.vhdx @parameters
```

This example converts a source differencing disk of VHDX format to a destination differencing disk
of VHD format that's connected to an existing parent disk.
This example converts a source differencing disk of **VHDX** format to a destination differencing
disk of **VHD** format that's connected to an existing parent disk.

## PARAMETERS

Expand Down Expand Up @@ -113,7 +115,7 @@ Accept wildcard characters: False
Specifies one or more Hyper-V hosts on which the virtual hard disk is to be converted. NetBIOS
names, IP addresses, and fully qualified domain names are allowable. The default is the local
computer. Use localhost or a dot (.) to specify the local computer explicitly.
computer. Use `localhost` or a dot (`.`) to specify the local computer explicitly.

```yaml
Type: String[]
Expand Down Expand Up @@ -296,11 +298,20 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## RELATED LINKS

- [Get-VHD](get-vhd.md)
- [Merge-VHD](merge-vhd.md)
- [Mount-VHD](mount-vhd.md)
- [New-VHD](new-vhd.md)
- [Optimize-VHD](optimize-vhd.md)
- [Resize-VHD](resize-vhd.md)
- [Set-VHD](set-vhd.md)
- [Test-VHD](test-vhd.md)
[Get-VHD](get-vhd.md)

[Dismount-VHD](dismount-vhd.md)

[Merge-VHD](merge-vhd.md)

[Mount-VHD](mount-vhd.md)

[New-VHD](new-vhd.md)

[Optimize-VHD](optimize-vhd.md)

[Resize-VHD](resize-vhd.md)

[Set-VHD](set-vhd.md)

[Test-VHD](test-vhd.md)
36 changes: 23 additions & 13 deletions docset/winserver2022-ps/hyper-v/Dismount-VHD.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ Dismounts a virtual hard disk.
### Path (Default)

```
Dismount-VHD [-Path] <String[]> [-SnapshotId <Guid>] [-PassThru] [-CimSession <CimSession[]>]
[-ComputerName <String[]>] [-Credential <PSCredential[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
Dismount-VHD [-Path] <String[]> [-SnapshotId <Guid>] [-PassThru]
[-CimSession <CimSession[]>] [-ComputerName <String[]>] [-Credential <PSCredential[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

### Disk

```
Dismount-VHD [-DiskNumber] <UInt32> [-PassThru] [-CimSession <CimSession[]>]
[-ComputerName <String[]>] [-Credential <PSCredential[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
[-ComputerName <String[]>] [-Credential <PSCredential[]>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -77,7 +79,7 @@ Accept wildcard characters: False
Specifies one or more Hyper-V hosts on which a virtual hard disk is to be dismounted. NetBIOS names,
IP addresses, and fully qualified domain names are allowable. The default is the local computer. Use
localhost or a dot (.) to specify the local computer explicitly.
`localhost` or a dot (`.`) to specify the local computer explicitly.

```yaml
Type: String[]
Expand Down Expand Up @@ -229,12 +231,20 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## RELATED LINKS

- [Convert-VHD](convert-vhd.md)
- [Get-VHD](get-vhd.md)
- [Merge-VHD](merge-vhd.md)
- [Mount-VHD](mount-vhd.md)
- [New-VHD](new-vhd.md)
- [Optimize-VHD](optimize-vhd.md)
- [Resize-VHD](resize-vhd.md)
- [Set-VHD](set-vhd.md)
- [Test-VHD](test-vhd.md)
[Convert-VHD](convert-vhd.md)

[Get-VHD](get-vhd.md)

[Merge-VHD](merge-vhd.md)

[Mount-VHD](mount-vhd.md)

[New-VHD](new-vhd.md)

[Optimize-VHD](optimize-vhd.md)

[Resize-VHD](resize-vhd.md)

[Set-VHD](set-vhd.md)

[Test-VHD](test-vhd.md)
32 changes: 20 additions & 12 deletions docset/winserver2022-ps/hyper-v/Get-VHD.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Gets the virtual hard disk attached to the system with disk number 6.
Get-VM -VMName TestVM | Select-Object -Property VMId | Get-VHD
```

Gets the virtual hard disk objects associated with virtual machine TestVM, using the pipeline
Gets the virtual hard disk objects associated with virtual machine **TestVM**, using the pipeline
feature for the **VMId** parameter.

### Example 4
Expand All @@ -78,7 +78,7 @@ feature for the **VMId** parameter.
Get-VM -VMName TestVM | Select-Object -Property VMId | Get-VHD
```

Gets the virtual hard disk objects associated with virtual machine TestVM using the pipeline feature
Gets the virtual hard disk objects associated with virtual machine **TestVM** using the pipeline feature
for the path parameter.

### Example 5
Expand Down Expand Up @@ -115,7 +115,7 @@ Accept wildcard characters: False
Specifies one or more Hyper-V hosts on which a virtual hard disk is to be retrieved. NetBIOS names,
IP addresses, and fully qualified domain names are allowable. The default is the local computer. Use
localhost or a dot (.) to specify the local computer explicitly.
`localhost` or a dot (`.`) to specify the local computer explicitly.

```yaml
Type: String[]
Expand Down Expand Up @@ -220,12 +220,20 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## RELATED LINKS

- [Convert-VHD](convert-vhd.md)
- [Dismount-VHD](dismount-vhd.md)
- [Merge-VHD](merge-vhd.md)
- [Mount-VHD](mount-vhd.md)
- [New-VHD](new-vhd.md)
- [Optimize-VHD](optimize-vhd.md)
- [Resize-VHD](resize-vhd.md)
- [Set-VHD](set-vhd.md)
- [Test-VHD](test-vhd.md)
[Convert-VHD](convert-vhd.md)

[Dismount-VHD](dismount-vhd.md)

[Merge-VHD](merge-vhd.md)

[Mount-VHD](mount-vhd.md)

[New-VHD](new-vhd.md)

[Optimize-VHD](optimize-vhd.md)

[Resize-VHD](resize-vhd.md)

[Set-VHD](set-vhd.md)

[Test-VHD](test-vhd.md)
32 changes: 20 additions & 12 deletions docset/winserver2022-ps/hyper-v/Merge-VHD.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Merges virtual hard disks.

```
Merge-VHD [-Path] <String> [[-DestinationPath] <String>] [-Force] [-AsJob] [-PassThru]
[-CimSession <CimSession[]>] [-ComputerName <String[]>] [-Credential <PSCredential[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]
[-CimSession <CimSession[]>] [-ComputerName <String[]>] [-Credential <PSCredential[]>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -84,7 +84,7 @@ Accept wildcard characters: False
Specifies one or more Hyper-V hosts on which virtual hard disks are to be merged. NetBIOS names, IP
addresses, and fully qualified domain names are allowable. The default is the local computer. Use
localhost or a dot (.) to specify the local computer explicitly.
`localhost` or a dot (`.`) to specify the local computer explicitly.

```yaml
Type: String[]
Expand Down Expand Up @@ -234,12 +234,20 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## RELATED LINKS

- [Convert-VHD](convert-vhd.md)
- [Dismount-VHD](dismount-vhd.md)
- [Get-VHD](get-vhd.md)
- [Mount-VHD](mount-vhd.md)
- [New-VHD](new-vhd.md)
- [Optimize-VHD](optimize-vhd.md)
- [Resize-VHD](resize-vhd.md)
- [Set-VHD](set-vhd.md)
- [Test-VHD](test-vhd.md)
[Convert-VHD](convert-vhd.md)

[Dismount-VHD](dismount-vhd.md)

[Get-VHD](get-vhd.md)

[Mount-VHD](mount-vhd.md)

[New-VHD](new-vhd.md)

[Optimize-VHD](optimize-vhd.md)

[Resize-VHD](resize-vhd.md)

[Set-VHD](set-vhd.md)

[Test-VHD](test-vhd.md)
34 changes: 21 additions & 13 deletions docset/winserver2022-ps/hyper-v/Mount-VHD.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Mounts one or more virtual hard disks.
## SYNTAX

```
Mount-VHD [-Path] <String[]> [-NoDriveLetter] [-ReadOnly] [-SnapshotId <Guid>] [-PassThru]
[-CimSession <CimSession[]>] [-ComputerName <String[]>] [-Credential <PSCredential[]>] [-WhatIf]
[-Confirm] [<CommonParameters>]
Mount-VHD [-Path] <String[]> [-NoDriveLetter] [-ReadOnly] [-SnapshotId <Guid>]
[-PassThru] [-CimSession <CimSession[]>] [-ComputerName <String[]>]
[-Credential <PSCredential[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -78,7 +78,7 @@ Accept wildcard characters: False
Specifies one or more Hyper-V hosts on which a virtual hard disk is to be mounted. NetBIOS names, IP
addresses, and fully qualified domain names are allowable. The default is the local computer. Use
localhost or a dot (.) to specify the local computer explicitly.
`localhost` or a dot (`.`) to specify the local computer explicitly.

```yaml
Type: String[]
Expand Down Expand Up @@ -246,12 +246,20 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable

## RELATED LINKS

- [Convert-VHD](convert-vhd.md)
- [Dismount-VHD](dismount-vhd.md)
- [Get-VHD](get-vhd.md)
- [Merge-VHD](merge-vhd.md)
- [New-VHD](new-vhd.md)
- [Optimize-VHD](optimize-vhd.md)
- [Resize-VHD](resize-vhd.md)
- [Set-VHD](set-vhd.md)
- [Test-VHD](test-vhd.md)
[Convert-VHD](convert-vhd.md)

[Dismount-VHD](dismount-vhd.md)

[Get-VHD](get-vhd.md)

[Merge-VHD](merge-vhd.md)

[New-VHD](new-vhd.md)

[Optimize-VHD](optimize-vhd.md)

[Resize-VHD](resize-vhd.md)

[Set-VHD](set-vhd.md)

[Test-VHD](test-vhd.md)
Loading

0 comments on commit 4d29a49

Please sign in to comment.