< Back
Get-d00mDiskSpaceReport
Post
NAME Get-d00mDiskSpaceReport
SYNOPSIS
Generate disk space utilization HTML report
SYNTAX
Get-d00mDiskSpaceReport [-ComputerName] <String[]> [[-FilePath] <String>] [[-Credential] <PSCredential>]
[<CommonParameters>]
DESCRIPTION
Query hard drives in Win32_LogicalDisk for size and freespace in GB and percent
of diskspace still free using a CIM session
PARAMETERS
-ComputerName <String[]>
The computers to which to execute this report
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-FilePath <String>
The directory to save the HTML report. The default is the current directory.
Required? false
Position? 2
Default value $(Get-Location)
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
The credential to use when creating a CIM session to the computer. The default is the current users
credentials.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-d00mDiskSpace -ComputerName LocalHost
This example queries Win32_LogicalDisk on the local machine and gets freespace (GB),
size (GB), and percent free for each disk using default credentials through a CIM session
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-d00mDiskSpace -ComputerName Computer1, Computer2
This example queries Win32_LogicalDisk on the remote computers, Computer1 and Computer2,
and gets freespace (GB), size (GB), and percent free for each disk using default
credentials through CIM sessions
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>'Computer1' | Get-d00mDiskSpace -Credential (Get-Credential)
This example queries Win32_LogicalDisk on the piped in computer name, Computer1, and gets
freespace (GB), size (GB), and percent free for each disk using specified credentials
through a CIM session
RELATED LINKS
SYNOPSIS
Generate disk space utilization HTML report
SYNTAX
Get-d00mDiskSpaceReport [-ComputerName] <String[]> [[-FilePath] <String>] [[-Credential] <PSCredential>]
[<CommonParameters>]
DESCRIPTION
Query hard drives in Win32_LogicalDisk for size and freespace in GB and percent
of diskspace still free using a CIM session
PARAMETERS
-ComputerName <String[]>
The computers to which to execute this report
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-FilePath <String>
The directory to save the HTML report. The default is the current directory.
Required? false
Position? 2
Default value $(Get-Location)
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
The credential to use when creating a CIM session to the computer. The default is the current users
credentials.
Required? false
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-d00mDiskSpace -ComputerName LocalHost
This example queries Win32_LogicalDisk on the local machine and gets freespace (GB),
size (GB), and percent free for each disk using default credentials through a CIM session
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-d00mDiskSpace -ComputerName Computer1, Computer2
This example queries Win32_LogicalDisk on the remote computers, Computer1 and Computer2,
and gets freespace (GB), size (GB), and percent free for each disk using default
credentials through CIM sessions
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>'Computer1' | Get-d00mDiskSpace -Credential (Get-Credential)
This example queries Win32_LogicalDisk on the piped in computer name, Computer1, and gets
freespace (GB), size (GB), and percent free for each disk using specified credentials
through a CIM session
RELATED LINKS