Posts Tagged ‘user’

Hi folks,

for several reasons you have to do an export of users with some attributes. To do this easily you can use CSVDE (Comma Separated Value Data Exchange) to export users from specified OUs to an CSV file:

csvde.exe -m -n -u -f c:\temp\userexport_ou01.csv -d “ou=01,dc=yourdomain,dc=com” -l “samaccountname,sn,mail,msexchhomeservername”

Thanks to Yusuf for his great export article -> Yusufs Directory Blog

Cheers,

Chris

With this command you get an overview over a certain user’s mailbox folders:

Get-MailboxFolderStatistics user@domain.com | ft folderpath, itemsinfolder

You can limit this to special folder, too:

Get-MailboxFolderStatistics -identity user@domain.com -FolderScope ‘DeletedItems’ | Select Identity, FolderPath, ItemsInFolder, FolderSize

Cheers,

Chris

If you want to block RPC over HTTPS you can use PowerShell to get it done quick:

Get-Mailbox -RecipientType ‘UserMailbox’ | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$True

If you want to limit this to a special database:

Get-Mailbox -ResultSize unlimited -Filter ‘((RecipientTypeDetails -like ”*UserMailbox*”) -and (((Database -eq ”CN=DB_NAME,CN=Databases,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=ORGANISATION,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=DOMAIN,DC=COM”))))’ | Set-CASMailbox -MAPIBlockOutlookRpcHttp:$False

You also can run this automatic via task scheduler.

Cheers,

Chris