PowerShell Flashcards
PowerShell Disk Commands
This command will add a disk to a storage pool.
Add-PhysicalDisk
This command removes all partition information and erases all data on a disk.
Clear-Disk
Administrators use this command for connecting a disconnected virtual disk to a computer using Storage Spaces.
Connect-VirtualDisk
This command will disconnect a virtual disk from a computer.
Disconnect-VirtualDisk
Administrators can use this command to dismount a VHD or ISO image from a machine.
Dismount-DiskImage
This command formats a volume on a drive.
Format-Volume
This command allows an operating system to see a disk.
Get-Disk
This command allows an operating system to see a disk image.
Get-DiskImage
Allows an administrator to check the integrity information for a file that is on an ReFS volume.
Get-FileIntegrity
This command allows an administrator to get a list of partitions on the system’s disks.
Get-Partition
This command gives you a list of all of your available physical disks.
Get-PhysicalDisk
This command allows an operating system to see a virtual disk.
Get-VirtualDisk
This command shows you the volume object.
Get-Volume
This command allows you to initializes a disk for first-time use.
Initialize-Disk
This command allows you to remotely execute PowerShell commands on another system.
Invoke-Command
Administrators can use this command to mount a VHD or ISO image. By doing this, the image will appear as a normal disk.
Mount-DiskImage
This allows administrators to create a new partition on an existing disk.
New-Partition
This command allows you to create a new storage pool of physical disks.
New-StoragePool
This command creates a new virtual disk in the specified storage pool.
New-VirtualDisk
This command allows you to create a new volume.
New-Volume
Administrators can use this command allows you to remove a partition.
Remove-Partition
This command allows you to remove a disk.
Remove-PhysicalDisk
Administrators can use this command allows you to remove a virtual disk.
Remove-VirtualDisk
This command allows you to repair a virtual disk.
Repair-VirtualDisk
Administrators can use this command allows you to repair a volume.
Repair-Volume
This command allows you to resize a partition.
Resize-Partition
Administrators can use this command to set partition attributes, such as setting the partition to be active.
Set-Partition
You can use this command to set disk attributes.
Set-PhysicalDisk
This command allows you to modify the properties of the specified storage pool.
Set-StoragePool
This command allows an administrator to set or change the file system label of a volume.
Set-Volume
Administrators can update cached information about a specified disk.
Update-Disk
This command will update the metadata of a Windows Server 2012 R2 storage pool.
Update-StoragePool