Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Learn how to remotely check available disk space on domain-joined Windows computers from a centralized administration environment. This Windows Server 2025 tutorial explains how to identify remote computers, retrieve disk capacity and free space, and troubleshoot common remote-management issues.
In an Active Directory environment, administrators may need to determine which workstations or servers are running low on storage. Windows Server 2025 provides the administration tools and PowerShell capabilities needed to collect disk information from remote domain computers.
Low disk space is a common operational problem in Windows environments. Workstations and servers can gradually consume storage because of Windows updates, application data, temporary files, user profiles, logs, cached content and other files.
In a small environment, an administrator can manually open This PC on each computer and inspect the available storage. In a domain environment containing dozens or hundreds of computers, that approach quickly becomes inefficient.
A better approach is to query domain computers remotely and retrieve their disk information from a centralized administration workstation.
Windows PowerShell provides the Get-CimInstance cmdlet, while the Win32_LogicalDisk class exposes information such as drive letter, capacity and free space. Microsoft specifically documents Win32_LogicalDisk for retrieving available disk space. :chatgpt-content-reference{index=”1″}
Centralized disk-space checking is particularly useful for organizations managing multiple Windows clients.
Quickly determine whether a storage shortage may be contributing to a user’s performance or application problem.
Review storage utilization across domain computers without manually visiting each workstation.
Identify servers where free space is approaching an operational threshold.
Check whether computers have enough available storage before deploying large applications or packages.
Create a list of computers that may need cleanup or additional storage capacity.
Build historical reports to understand storage consumption trends.
The process can be viewed as a simple management workflow:
Select the domain computer whose storage information you want to inspect.
Use an appropriate remote management protocol and permissions.
Query Win32_LogicalDisk for fixed local disks.
Retrieve drive letter, total capacity and available free space.
Convert byte values into GB and calculate free-space percentages.
Display or export the results for administration and monitoring.
Before checking disk space remotely, make sure the environment satisfies the following requirements:
Sign in to your Windows Server 2025 management system with an account authorized to administer the target computers.
You can use the Windows graphical administration environment to identify domain computers and then use PowerShell for the actual remote disk query.
If Group Policy Management Console is installed, you can open it by searching for:
GPMC is a centralized interface for managing Group Policy across an Active Directory environment and is supported on Windows Server 2025. :chatgpt-content-reference{index=”3″}
Suppose the computer name is:
Open PowerShell on the administration computer and run:
Get-CimInstance -ClassName Win32_LogicalDisk ` -ComputerName CLIENT-PC01 ` -Filter "DriveType=3"
The command queries the remote computer and returns fixed local disks.
Typical properties include:
Raw WMI/CIM values are returned in bytes, which can be difficult to read. PowerShell can convert the values into gigabytes.
Get-CimInstance -ClassName Win32_LogicalDisk `
-ComputerName CLIENT-PC01 `
-Filter "DriveType=3" |
Select-Object DeviceID,
@{Name="SizeGB";Expression={[math]::Round($_.Size / 1GB,2)}},
@{Name="FreeGB";Expression={[math]::Round($_.FreeSpace / 1GB,2)}}
The resulting output is easier for an administrator to interpret:
| Drive | Total Space | Free Space |
|---|---|---|
| C: | 476 GB | 132 GB |
| D: | 931 GB | 614 GB |
The real advantage of remote administration appears when you need to inspect multiple computers.
Create a list of computer names:
$Computers = @(
"CLIENT-PC01",
"CLIENT-PC02",
"CLIENT-PC03",
"CLIENT-PC04"
)
You can then query each computer:
foreach ($Computer in $Computers) {
Get-CimInstance `
-ClassName Win32_LogicalDisk `
-ComputerName $Computer `
-Filter "DriveType=3" |
Select-Object `
@{Name="Computer";Expression={$Computer}},
DeviceID,
@{Name="SizeGB";Expression={[math]::Round($_.Size / 1GB,2)}},
@{Name="FreeGB";Expression={[math]::Round($_.FreeSpace / 1GB,2)}}
}
This produces a consolidated view of the fixed disks on the selected domain computers.
Total capacity alone does not tell you whether a computer is running out of storage. A percentage makes comparison easier.
The calculation is:
PowerShell can perform the calculation automatically:
Get-CimInstance -ClassName Win32_LogicalDisk `
-ComputerName CLIENT-PC01 `
-Filter "DriveType=3" |
Select-Object DeviceID,
@{Name="SizeGB";Expression={[math]::Round($_.Size / 1GB,2)}},
@{Name="FreeGB";Expression={[math]::Round($_.FreeSpace / 1GB,2)}},
@{
Name="FreePercent";
Expression={
if ($_.Size -gt 0) {
[math]::Round(($_.FreeSpace / $_.Size) * 100,2)
}
}
}
You can add a threshold to identify computers that require attention. For example, the following example flags drives with less than 15 percent free space.
Get-CimInstance -ClassName Win32_LogicalDisk `
-ComputerName CLIENT-PC01 `
-Filter "DriveType=3" |
Where-Object {
$_.Size -gt 0 -and
(($_.FreeSpace / $_.Size) * 100) -lt 15
} |
Select-Object DeviceID,
@{Name="SizeGB";Expression={[math]::Round($_.Size / 1GB,2)}},
@{Name="FreeGB";Expression={[math]::Round($_.FreeSpace / 1GB,2)}},
@{
Name="FreePercent";
Expression={[math]::Round(($_.FreeSpace / $_.Size) * 100,2)}
}
If your objective is to perform the operation from a GUI-oriented administration workflow, use the following approach.
Use your normal Windows Server management console to identify the domain and the Organizational Units containing the computers you want to inspect.
Select the required domain computer and record its computer name.
Use the computer name as the target of your CIM query.
Query Win32_LogicalDisk and display the drive, total capacity and free-space values.
Use the results to identify computers requiring cleanup, troubleshooting or additional storage.
In larger environments, maintaining a manual computer-name list may become inconvenient. If the ActiveDirectory PowerShell module is available, administrators can retrieve computer accounts from an OU and then query their disk information.
For example:
Import-Module ActiveDirectory
$Computers = Get-ADComputer -Filter * |
Select-Object -ExpandProperty Name
foreach ($Computer in $Computers) {
Get-CimInstance `
-ClassName Win32_LogicalDisk `
-ComputerName $Computer `
-Filter "DriveType=3" |
Select-Object `
@{Name="Computer";Expression={$Computer}},
DeviceID,
@{Name="SizeGB";Expression={[math]::Round($_.Size / 1GB,2)}},
@{Name="FreeGB";Expression={[math]::Round($_.FreeSpace / 1GB,2)}}
}
A more controlled approach is to query only computers from a particular OU.
$SearchBase = "OU=Workstations,DC=vmorecloud,DC=com"
$Computers = Get-ADComputer `
-SearchBase $SearchBase `
-Filter * |
Select-Object -ExpandProperty Name
You can then pass the returned computer names to the CIM query.
Replace the example distinguished name with the OU structure used in your own Active Directory environment.
Administrators can export the collected information to CSV for documentation, analysis or further processing.
$Results = foreach ($Computer in $Computers) {
Get-CimInstance `
-ClassName Win32_LogicalDisk `
-ComputerName $Computer `
-Filter "DriveType=3" |
Select-Object `
@{Name="Computer";Expression={$Computer}},
DeviceID,
@{Name="SizeGB";Expression={[math]::Round($_.Size / 1GB,2)}},
@{Name="FreeGB";Expression={[math]::Round($_.FreeSpace / 1GB,2)}},
@{
Name="FreePercent";
Expression={
if ($_.Size -gt 0) {
[math]::Round(
($_.FreeSpace / $_.Size) * 100,
2
)
}
}
}
}
$Results |
Export-Csv `
-Path "C:\Reports\Domain-Disk-Space.csv" `
-NoTypeInformation
The resulting CSV can be opened in Microsoft Excel or another compatible data-analysis application.
| Computer | Drive | Total GB | Free GB | Free % |
|---|---|---|---|---|
| CLIENT-PC01 | C: | 476 | 132 | 27.73% |
| CLIENT-PC02 | C: | 476 | 51 | 10.71% |
| CLIENT-PC03 | C: | 953 | 481 | 50.47% |
A domain may contain computers that are offline, disconnected from the network or unavailable for remote management. A production script should handle those situations rather than stopping at the first failure.
foreach ($Computer in $Computers) {
try {
Get-CimInstance `
-ClassName Win32_LogicalDisk `
-ComputerName $Computer `
-Filter "DriveType=3" `
-ErrorAction Stop |
Select-Object `
@{Name="Computer";Expression={$Computer}},
DeviceID,
@{Name="SizeGB";Expression={[math]::Round($_.Size / 1GB,2)}},
@{Name="FreeGB";Expression={[math]::Round($_.FreeSpace / 1GB,2)}}
}
catch {
[PSCustomObject]@{
Computer = $Computer
Status = "Unavailable"
Error = $_.Exception.Message
}
}
}
Verify that the account running the query has the appropriate administrative permissions on the target computer and that your organization’s remote-management security model permits the operation.
First verify basic network connectivity and name resolution.
Test-Connection CLIENT-PC01 -Count 2
Check Windows Firewall, remote-management configuration, DNS, permissions and network connectivity.
A domain computer that is powered off or disconnected cannot provide live disk-space information. Record the computer as unavailable and query it again when it is online.
Older Windows administration guides often use the WMIC command-line utility. Microsoft has deprecated WMIC and recommends PowerShell for WMI administration. Windows Management Instrumentation itself remains available; the deprecation applies to the WMIC utility. :chatgpt-content-reference{index=”5″}
It is important to distinguish between Group Policy management and hardware/storage inventory.
GPMC is primarily designed to manage Group Policy Objects, policy configuration, reporting, modeling and Group Policy Results. It is not a dedicated disk-capacity inventory console. :chatgpt-content-reference{index=”6″}
| Tool | Primary Purpose | Disk Space Query |
|---|---|---|
| GPMC | Manage and troubleshoot Group Policy | Not a dedicated disk inventory tool |
| PowerShell / CIM | Remote system information and administration | Yes |
| Win32_LogicalDisk | Logical disk information | Yes |
| Server Manager | Server administration | Useful for server management, but not a complete domain-wide disk inventory solution |
Test remote administration scripts against a controlled group of computers before expanding the scope.
Query relevant workstation or server OUs rather than unnecessarily scanning the entire domain.
Flag computers based on a documented free-space threshold appropriate for the organization’s workloads.
Save results to CSV for analysis and historical documentation.
Do not treat an unavailable computer as having zero free space. Mark it as unreachable and retry later.
Use least privilege, secure administrative accounts and your organization’s approved remote-management configuration.
Imagine an organization has 100 domain workstations. The IT team wants to identify computers with less than 20 percent free space.
The workflow could be:
$Results |
Where-Object {
$_.FreePercent -lt 20
} |
Sort-Object FreePercent
This approach turns raw disk information into a practical administrative report.
Get-CimInstance -ClassName Win32_LogicalDisk ` -ComputerName CLIENT-PC01 ` -Filter "DriveType=3"
Remotely checking disk space is an important Windows administration task in environments with multiple domain computers. Instead of manually opening each workstation, administrators can use a centralized Windows Server 2025 administration workstation and query storage information remotely.
The combination of Active Directory for identifying computers, PowerShell for automation, CIM for remote management, and Win32_LogicalDisk for logical-disk information provides a practical foundation for domain-wide storage reporting.
For larger environments, the same approach can be extended to generate CSV reports, identify low-space computers, monitor specific OUs and integrate the results into a broader Windows monitoring workflow.
Share this guide with Windows administrators, Active Directory engineers, system administrators and IT support teams.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.