Returns files system information
Syntax
This cmdlet returns file system information for the specified server. A physical item can be used to specify a specific file, folder, or volume to return file system information for.
Detailed Description
Get-DtPhysicalItem [-ServiceHost] <Server> [-Ref <PhysicalItem>] [<CommonParameters>]
Parameters
Name | Type | Description | Required | Pipeline Input |
---|---|---|---|---|
Service Host |
Server |
|
true | false |
Ref | PhysicalItem |
Specify an object returned from a previous Get-DtPhysicalItem call. |
false | false |
Outputs
PhysicalItem [ ]
Examples
$DtServerObjectAlpha= New-DtServer -Name alpha -UserName domain\administrator -Password password $DtVolumes = Get-DtPhysicalItem -ServiceHost $DtServerObjectAlpha $DtVolume1Root = Get-DtPhysicalItem -ServiceHost $DtServerObjectAlpha -Ref $DtVolumes[0] Disconnect-DtServer -ServiceHost $DtServerObjectAlpha |
A server object is created for the server alpha using the domain\administrator and password credentials. It assigns the server object to the variable called DtServerObjectAlpha. Then the volumes on the server are stored in the variable DtVolumes. Finally, the files and folders at the root of the first volume in DtVolumes is stored in the variable DtVolume1Root. The connections for the server object are then closed.