Gather storage information with PowerShell

To gather Windows server storage information with PowerShell I find these comments useful:

# Create a remote command line connection to the server
Enter-PSSession -Computername <computer> -Credential <domain\username>

# Retrieve disk information
Get-Disk | Sort-Object Number

# Retrieve volumes sorted by driveletter
Get-Volume | Sort-Object Driveletter

# Retrieve deduplication volumes
Get-Dedupvolume | Sort-Object driveletter

# Retrieve deduplication status
Get-Dedupstatus | Sort-Object driveletter

# Start deduplication job manually
Start-Dedupjob -Volume A: -Type Optimization

# Retrieve deduplication job status
Get-Ddedupjob -Volume A: