I'm working on a requirement to get the partition information of each cluster node individually. However, in PowerShell, the command below on a given node is returning the list from all the nodes versus just one at a time.
$info = Get-Partition | Where-Object {$_.AccessPaths -eq "E:\"}
PS C:\Windows\system32> $info = Get-Partition | Where-Object {$_.AccessPaths -eq "E:\"}
PS C:\Windows\system32> $info
DiskPath: \\?\Disk{2740e7d4-c28f-a28f-6835-9dc252a44426}
PartitionNumber DriveLetter Offset Size Type
2 E 33619968 991.88 MB Basic
DiskPath: \\?\Disk{44cc5b7d-7c1b-2c4d-4e1b-7351302b1ec6}
PartitionNumber DriveLetter Offset Size Type
2 E 33619968 991.88 MB Basic
DiskPath: \\?\Disk{81dff6cd-e0de-b804-c1fc-55846380bbe3}
PartitionNumber DriveLetter Offset Size Type
2 E 33619968 991.88 MB Basic
How do I restrict the output to just one node please or is there a filter I can add to the command?
Thank you.
Coco