add the two users to the below DDGs to the queries. - Microsoft Community
- Get link
- X
- Other Apps
hello team,
could please add "tlomax" , "sef" samaccountname below queries.
================================================================
mhf:
((((((((recipienttype -eq 'usermailbox') -or (recipienttype -eq 'mailcontact'))) -or (recipienttype -eq 'mailuser'))) -and (((office -like 'materials handling*') -or (samaccountname -eq 'jnorman'))))) -and (-not(name -like 'systemmailbox{*')) -and (-not(name -like 'cas_{*')) -and (-not(recipienttypedetailsvalue -eq 'mailboxplan')) -and (-not(recipienttypedetailsvalue -eq 'discoverymailbox')) -and (-not(recipienttypedetailsvalue -eq 'arbitrationmailbox')))
===============================
herbert:
((((((((recipienttype -eq 'usermailbox') -or (recipienttype -eq 'mailcontact'))) -or (recipienttype -eq 'mailuser'))) -and (((((((office -like 'herbert*') -or (samaccountname -eq 'mmccleary'))) -or (samaccountname -eq 'jlewis'))) -or (samaccountname -eq 'jnorman'))))) -and (-not(name -like 'systemmailbox{*')) -and (-not(name -like 'cas_{*')) -and (-not(recipienttypedetailsvalue -eq 'mailboxplan')) -and (-not(recipienttypedetailsvalue -eq 'discoverymailbox')) -and (-not(recipienttypedetailsvalue -eq 'arbitrationmailbox')))
================================================
hermann;
((((((((recipienttype -eq 'usermailbox') -or (recipienttype -eq 'mailcontact'))) -or (recipienttype -eq 'mailuser'))) -and (((((office -like 'hermann*') -or (samaccountname -eq 'jnorman'))) -or (samaccountname -eq 'mgrabenauer'))))) -and (-not(name -like 'systemmailbox{*')) -and (-not(name -like 'cas_{*')) -and (-not(recipienttypedetailsvalue -eq 'mailboxplan')) -and (-not(recipienttypedetailsvalue -eq 'discoverymailbox')) -and (-not(recipienttypedetailsvalue -eq 'arbitrationmailbox')))
====================================================
little;
((((((((recipienttype -eq 'usermailbox') -or (recipienttype -eq 'mailcontact'))) -or (recipienttype -eq 'mailuser'))) -and (((((office -like 'little*') -or (samaccountname -eq 'mmccombs'))) -or (samaccountname -eq 'jnorman'))))) -and (-not(name -like 'systemmailbox{*')) -and (-not(name -like 'cas_{*')) -and (-not(recipienttypedetailsvalue -eq 'mailboxplan')) -and (-not(recipienttypedetailsvalue -eq 'discoverymailbox')) -and (-not(recipienttypedetailsvalue -eq 'arbitrationmailbox')))
l
=============================================================
johnson
;
((((((((recipienttype -eq 'usermailbox') -or (recipienttype -eq 'mailcontact'))) -or (recipienttype -eq 'mailuser'))) -and (((((((office -like 'johnson*') -or (samaccountname -eq 'mmccombs'))) -or (samaccountname -eq 'jnorman'))) -or (samaccountname -eq 'mgrabenauer'))))) -and (-not(name -like 'systemmailbox{*')) -and (-not(name -like 'cas_{*')) -and (-not(recipienttypedetailsvalue -eq 'mailboxplan')) -and (-not(recipienttypedetailsvalue -eq 'discoverymailbox')) -and (-not(recipienttypedetailsvalue -eq 'arbitrationmailbox')))
===========================================================================
building 6;
((((((((recipienttype -eq 'usermailbox') -or (recipienttype -eq 'mailcontact'))) -or (recipienttype -eq 'mailuser'))) -and (((office -like 'building 6*') -or (samaccountname -eq 'jnorman'))))) -and (-not(name -like 'systemmailbox{*')) -and (-not(name -like 'cas_{*')) -and (-not(recipienttypedetailsvalue -eq 'mailboxplan')) -and (-not(recipienttypedetailsvalue -eq 'discoverymailbox')) -and (-not(recipienttypedetailsvalue -eq 'arbitrationmailbox')))
================================================
building 11;
((((((((recipienttype -eq 'usermailbox') -or (recipienttype -eq 'mailcontact'))) -or (recipienttype -eq 'mailuser'))) -and (((((((((((((((((((((((office -like 'bldg. 11*') -or (samaccountname -eq 'jwarren'))) -or (samaccountname -eq 'vruffin'))) -or (samaccountname -eq 'pjur'))) -or (samaccountname -eq 'oki'))) -or (samaccountname -eq 'lbs'))) -or (samaccountname -eq 'kkm'))) -or (samaccountname -eq 'moe'))) -or (samaccountname -eq 'lcg'))) -or (samaccountname -eq 'bwh'))) -or (samaccountname -eq 'mmccombs'))) -or (samaccountname -eq 'jnorman'))))) -and (-not(name -like 'systemmailbox{*')) -and (-not(name -like 'cas_{*')) -and (-not(recipienttypedetailsvalue -eq 'mailboxplan')) -and (-not(recipienttypedetailsvalue -eq 'discoverymailbox')) -and (-not(recipienttypedetailsvalue -eq 'arbitrationmailbox')))
========================================================
regards,
sounder
hi sounder,
thanks time , patient. have spent time check scripts failed certify this.
since sub-forum focuses on office 365 business online services, assist users simple forum powershell commands not experts in particular field. seek professional assistance, please contact our specialists in our powershell forum? understanding highly appreciated.
thanks,
brook
Office / Office 365 for admins / Exchange Online
- Get link
- X
- Other Apps
Comments
Post a Comment