8000 GitHub - MechStar/DiskSpace: Displays disk usage in Gigabytes given machines names and credentials.
[go: up one dir, main page]

Skip to content

Displays disk usage in Gigabytes given machines names and credentials.

Notifications You must be signed in to change notification settings

MechStar/DiskSpace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

DiskSpace

Displays disk usage given hosts and credentials.

Parameters

-ComputerName <String[]>

Specifies the target computer for the management operation. Enter a fully qualified domain name (FQDN), a NetBIOS name, or an IP address. When the remote computer is in a different domain than the local computer, the fully qualified domain name is required. The default is the local computer. To specify the local computer, such as in a list of computer names, use "localhost", the local computer name, or a dot (.). This parameter does not rely on Windows PowerShell remoting, which uses WS-Management. You can use the ComputerName parameter of Get-WmiObject even if your computer is not configured to run WS-Management remote commands.

-Cred <PSCredential>

Specifies a user account that has permission to perform this action. The default is the current user. Type a user name, such as User01, Domain01\User01, or User@Contoso.com. Or, enter a PSCredential object, such as an object that is returned by the Get-Credential cmdlet. When you type a user name, you are prompted for a password.

Example - Show local machine's disk usage

PS> DiskSpace

Example - Show COMPUTER1 disk usage

PS> DiskSpace -ComputerName COMPUTER1 -Cred DOMAIN\USERNAME

Example - Show COMPUTER1, COMPUTER2 and COMPUTER3 disk usage

PS> DiskSpace -ComputerName @('COMPUTER1', 'COMPUTER2', 'COMPUTER3') -Cred DOMAIN\USERNAME

About

Displays disk usage in Gigabytes given machines names and credentials.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0