It depand on what do you want to do with it and how.
For example if you want to see the username+UID+vservername on screen then use this:
$NcNameMappingUnixUser = NcNameMappingUnixUser; foreach($line in $NcNameMappingUnixUser) {write-host "$($line.UserName) $($line.UserId) $($line.Vserver)"}
if you want to check for specific user name in a specific vserver use this:
$NcNameMappingUnixUser = NcNameMappingUnixUser; foreach($line in $NcNameMappingUnixUser) {if ($line.UserName -eq 'pcuser' -and $line.Vserver -eq 'svm1') {write-host $($line.UserName) $($line.UserId) $($line.Vserver)"}}
or:
$NcNameMappingUnixUser = NcNameMappingUnixUser; $NcNameMappingUnixUser | ForEach-Object {if ($_.UserId -eq 65535) {$_ | Format-Table UserName, UserId, Vserver} }
or just format-table:
$NcNameMappingUnixUser | Format-Table UserName, UserId, Vserver
so it depends on what you want to gain, but those are more Powershell tips them DataOntap ToolKit.