Get-SqlMonitorDisk
Published 14 February 2023
Gets the details of all of the disks for the given machine.
Syntax
Get-SqlMonitorDisk [[-Machine] <Machine>] [[-Name] <string>] [<CommonParameters>]
Description
The Get-SqlMonitorDisk cmdlet gets details of Disks from the SQL Monitor Server.
Without parameters, this cmdlet will get all Disks from the SQL Monitor Server.
Connect-SqlMonitor must be called before this cmdlet.
Parameters
-Machine
<Machine>
For more information, see https://documentation.red-gate.com/sm/api/powershell-cmdlet-reference/get-sqlmonitormachine.
Aliases | None |
Required? | false |
Position? | 1 |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-Name
<String>
The Disk name to match.
Aliases | None |
Required? | false |
Position? | 2 |
Default Value | None |
Accept Pipeline Input | False |
Accept Wildcard Characters | false |
-ProgressAction
<ActionPreference>
{{ Fill ProgressAction Description }}
Aliases | None |
Required? | false |
Position? | named |
Default Value | None |
Accept Pipeline Input | False |
Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
[Machine] For more information, see https://www.red-gate.com/SM13/powershell-custom-types#CustomTypes-Machine.
Return values
The output type is the type of the objects that the cmdlet emits.
-
[Disk] For more information, see https://www.red-gate.com/SM13/powershell-custom-types#CustomTypes-Disk.
Examples
-------------------------- EXAMPLE 1 --------------------------
Get-SqlMonitorDisk
-------------------------- EXAMPLE 2 --------------------------
Get-SqlMonitorDisk -Machine $machine
-------------------------- EXAMPLE 3 --------------------------
Get-SqlMonitorDisk -Name "ExampleDiskName"
-------------------------- EXAMPLE 4 --------------------------
Get-SqlMonitorDisk -Machine $machine -Name "ExampleDiskName"