Search and change
Let’s assume that users are locked in the XPhone Web administration. To search for all locked users:
Get-XpUsers | Where{$_.Interlock –eq "True"}
Alternative:
Get-XpUsers | Where-Object { $_.Interlock -eq "True"}
Hint
The following comparison operators can be used:
eq
= equalgt
= greater than (größer als)ge
= greater or equallt
= lower thanle
= lower or equalne
= not equallike
= like *match
= compare with RegEx
All blocked users should have Attention! in the description:
Get-XpUsers | Where{$_.Interlock –eq "True"} | foreach{$_.Description = "Achtung!";$_} | Set-XpUsers
All locked users should then be unlocked:
Get-XpUsers | where-object {$_.Interlock -eq $True} | foreach{$_.Interlock = $False;$_} | Set-XpUsers
Have you found a mistake on this page?
Or is something not formulated well or too vague? Then we look forward to receiving an e-mail, preferably with a suggestion for improvement, to doku@c4b.de. Thank you very much!