Thomas Hellingman Microsoft,PowerShell Gather storage information with PowerShell

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:

Related Post

Azure Active Directory / Intune – Dynamic Group Membership RulesAzure Active Directory / Intune – Dynamic Group Membership Rules

Android Enterprise Corporate Owned Dedicated Devices / Corporate Owned Single Use (COSU) Group Name: “Intune Devices Android COSU”Query: (device.deviceOSType -eq “AndroidEnterprise”) and (device.deviceOwnership -eq “Company”) and (device.enrollmentProfileName -ne null)