E911 Get-CsOnlineLisLocation not working

%3CLINGO-SUB%20id%3D%22lingo-sub-2377191%22%20slang%3D%22en-US%22%3EE911%20Get-CsOnlineLisLocation%20not%20working%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2377191%22%20slang%3D%22en-US%22%3E%3CP%3EI%20believe%20that%20get-csonlinelislocation%20is%20not%20working%20as%20intended.%20I%20enter%3C%2FP%3E%3CP%3Eget-csonlinelislocation%20-location%20Location1%26nbsp%3B%3C%2FP%3E%3CP%3Eit%20is%20interpreting%20the%20location%20name%20as%20having%20a%20wildcard%20at%20the%20end%20and%20returning%20everything%20that%20starts%20with%20Location1%20i.e.%20Location11%2C%20Location12%2C%20Location13.%20I%20don't%20believe%20from%20the%20documentation%20that%20this%20is%20how%20this%20was%20intended%20to%20work.%20My%20current%20work%20around%20is%3C%2FP%3E%3CP%3Eget-csonlinelislocation%20-location%20Location1%20%7C%20where-object%20%7B%24_.location%20-eq%20Location1%7D%3C%2FP%3E%3CP%3Ewhich%20seems%20a%20bit%20redundant.%3C%2FP%3E%3CP%3EPS%20for%20those%20wondering%20why%20I%20just%20don't%20use%3C%2FP%3E%3CP%3Eget-csonlinelislocation%20%7C%20where-object%20%7B%24_.location%20-eq%20Location1%7D%3C%2FP%3E%3CP%3Eget-csonlinelislocation%20alone%20only%20returns%20the%20first%201000%20records%2C%20we%20have%20over%201000%20locations.%20So%20if%20Location1%20is%20number%201001%20it%20will%20never%20find%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2377191%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Frequent Visitor

I believe that get-csonlinelislocation is not working as intended. I enter

get-csonlinelislocation -location Location1 

it is interpreting the location name as having a wildcard at the end and returning everything that starts with Location1 i.e. Location11, Location12, Location13. I don't believe from the documentation that this is how this was intended to work. My current work around is

get-csonlinelislocation -location Location1 | where-object {$_.location -eq Location1}

which seems a bit redundant.

PS for those wondering why I just don't use

get-csonlinelislocation | where-object {$_.location -eq Location1}

get-csonlinelislocation alone only returns the first 1000 records, we have over 1000 locations. So if Location1 is number 1001 it will never find it.

0 Replies