Thursday, March 2, 2023

Microsoft Teams released a major update on PowerShell Module 5.0.0 with significant performance improvements and lots of new filters.


- Releases major updates for Get-CsOnlineUser with significant performance improvements and new filtering capabilities to scenarios without the "-Identity" parameter.


 - Performance improvements, especially with "-Filter" scenarios like using wildcard operator (*), OnPrem* and Timestamp attributes.


 - New attributes have now been introduced in the output to ensure parity with scenarios involving the "-Identity" parameter: CountryAbbreviation, SipProxyAddress, TeamsMediaLoggingPolicy, UserValidationErrors, WhenCreated.


 - These attributes are now enabled for filtering: Alias, City, CompanyName, CompanyName, HostingProvider, UserValidationErrors, OnPremEnterpriseVoiceEnabled, OnPremHostingProvider, OnPremLineURI, OnPremSIPEnabled, SipAddress, SoftDeletionTimestamp, State, Street, TeamsOwnersPolicy, WhenChanged, WhenCreated, FeatureTypes, PreferredDataLocation, LastName.


 -  These filtering operators have been reintroduced into Get-CsOnlineUser:
     - "-like" operator now supports the use of wildcard operators in 'contains' and 'ends with' scenarios. 

Example: Get-CsOnlineUser -Filter "DisplayName -like '*abc*'"
     - "-contains" can now be used to filter properties that are an array of strings like FeatureTypes, ProxyAddresses and ShadowProxyAddresses.

Example: Get-CsOnlineUser -Filter {FeatureTypes -contains "PhoneSystem"}
     - "-gt" (greater than), "-lt" (less than), "-le" (less than or equal to) can now be used for filtering all string properties. Example: Get-CsOnlineUser -Filter {UserPrincipalName -gt/-le/-lt "abc"}
     - "-ge" (greater than or equal to) can now also be used for filtering on policies. Example: Get-CsOnlineUser -Filter {ExternalAccessPolicy -ge "xyz_policy"}


 - Updates to the type of users displayed:    
   - Unlicensed Users - Unlicensed users would show up in the output for 30 days post-license removal.


   - Soft deleted users - These users will be displayed in the output with SoftDeletionTimestamp set to a value.

No comments:

Post a Comment