< Back

Get-NSInfoDisk

Mon Jan 13, 2020 9:04 pm

NAME Get-NSInfoDisk



SYNOPSIS

This command provide Disk information on all the Xenapp servers and Delivery Controller





SYNTAX

Get-NSInfoDisk [[-Computers] <String[]>] [-LogErrors] [<CommonParameters>]





DESCRIPTION

The Get-NSInfoDisk provides below information.



1. Server name



2. Drive



3. Size in GB



4. Free Size in Percentage



5. Free Size in GB





PARAMETERS

-Computers <String[]>



Required? false

Position? 1

Default value (Get-BrokerMachine).DNSName + (Get-BrokerController).DNSName

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-LogErrors [<SwitchParameter>]



Required? false

Position? named

Default value False

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:\\>Using the below method you can get only C Drive details of all the servers and export



it to some location.



We can change or modify it as per our requirement.



Get-NSInfoDisk | Where-Object {$_.Drive -eq 'C:'} | Out-File 'E:\\Scripts\\Nadeem-Testing\\Result.csv'









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Using the below command we can get Drive space details for only particular or specfic server.



Get-NSInfoDisk -Computers Server01





Drive : C:

ServerName : Server01

Size : 60

Free : 28.32

FreePct : 47



Drive : E:

ServerName : Server01

Size : 30

Free : 23.89

FreePct : 80









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Using the below command we will get the Drive information of all Xenapp and Delivery Controller.



Get-NSInfoDisk





Drive : C:

ServerName : Server01

Size : 120

Free : 56.85

FreePct : 48



Drive : E:

ServerName : Server01

Size : 30

Free : 15.78

FreePct : 53



Drive : C:

ServerName : Server02

Size : 120

Free : 50.03

FreePct : 42



Drive : E:

ServerName : Server02

Size : 30

Free : 16.39

FreePct : 55



Drive : C:

ServerName : Server03

Size : 60

Free : 24.09

FreePct : 40



Drive : E:

ServerName : Server03

Size : 30

Free : 19.95

FreePct : 67











RELATED LINKS