I'm trying to write a Query Filter that will filter 'SessionLocalSummaryView' results for a logged in user.
The filter I'm trying to use is:
$qFilter = New-Object VMware.Hv.QueryFilterContains -Property @{ 'memberName' = 'Results.NamesData.userName'; 'value' = $UserName }
This is spitting out an error saying the member is not a valid member name. In all of the documentation I'm seeing is using something like 'base.<something else>'
Where does "base" come from? I tried to doing a get member on the query results and it doesn't have a "base" property. Am I looking at this the wrong way or is there something else I should be looking at?
Shouldn't that be @{'memberName' = 'NamesData.userName'; 'value' = $UserName}?
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Shouldn't that be @{'memberName' = 'NamesData.userName'; 'value' = $UserName}?
---------------------------------------------------------------------------------------------------------
Was it helpful? Let us know by completing this short survey here.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
Very picky with capitalization. namesData.userName works.
Thanks!