Skip Ribbon Commands
Skip to main content

Xadean's Empirical Musing

:

Quick Launch

Xadean's Empirical Musing > Posts > Using “?” Rather Than “Where-Object” in PowerShell Query
April 04
Using “?” Rather Than “Where-Object” in PowerShell Query

In a PowerShell (PS) query, "?" and "where-object" are aliases. The following is an example of how to use this in a PS command.

 

The following command will list the users who are not Exchange UM enabled when ran from a Lync / Skype for Business Management Shell:

 

Get-CsUser | ? {$_.ExUmEnabled -eq "False"} | select DisplayName, ExUmEnabled | sort-object DisplayName

Comments

There are no comments for this post.

Add Comment

Title


Body *


CAPTCHA *

 

Attachments