[EXO][PS] Identify if user is part of a big AD Group
Quickly check if a user or subset of users are part of a ad group that has more than 5000 members.
|
$adgroup = “[group]” $groupdn = (get-adgroup $adgroup).distinguishedname $members = dsget group $grouppn -members $total = foreach ($i in $members){$u = $i.trim('"'); get-aduser $u | select userprincipalname} $total -like "*[unique string]*" |
[EXO][PS] Find all the Distribution Groups a user is a member of.
Quickly find out all the Distribution Groups a user is a member of with a few lines of simple PS code.
|
$Username = "johnsmith@hiepic.com" $DistributionGroups = Get-DistributionGroup -ResultSize unlimited | where { (Get-DistributionGroupMember -ResultSize unlimited $_.Name | foreach {$_.PrimarySmtpAddress}) -contains "$Username"} $DistributionGroups |
[EXO] Setting up Room Finder in a Hybrid Environment
Summary: This article documents the what’s, why’s and the how’s of setting up Room Finder and Workspaces in a hybrid Office 365 Exchange Environment. The on-premise environment uses ADC with no write-back enabled. Buildings, Cities, Types, and Filters (Capacity, Floors, Features) A room list is a distribution group. A room list is a collection of room mailboxes. →
[EXO] Concert IMCEAEX string to X500
Simple script to convert IMCEAEX to X500 Address.
|
$IMCEAEX = Read-Host -Prompt "Enter IMCEAEX string to convert to X500" $IMCEAEX = $IMCEAEX -replace '_', '/' $IMCEAEX = $IMCEAEX -replace '\+20', ' ' $IMCEAEX = $IMCEAEX -replace '\+28', '(' $IMCEAEX = $IMCEAEX -replace '\+29', ')' $IMCEAEX = $IMCEAEX -replace '\+2E', '.' $IMCEAEX = $IMCEAEX -replace 'IMCEAEX-', '' $IMCEAEXNew = $IMCEAEX -split ('@') $IMCEAEX = $IMCEAEXNew[0] $IMCEAEX = 'X500:' + $IMCEAEX write-host $IMCEAEX |
Recent Comments