Add or Remove Bulk permissions to Exchange mailboxes.

Lets see How to Change Calendar Permissions in Bulk . To Restrict Free/busy or Allow Free/busy How to Get Calendar Permissions For a Specific Mailbox ? Default Calendar permissions of a Mailbox Get-MailboxFolderPermission –Identity “EmailAddress”:calendar |fl How to Change (Allow/Restrict) Calendar Permission for a Specific Mailbox ? To Allow Free/busy…continue reading →

Increase the maximum MAPI session limit from 32 concurrent to 5000 concurrent

Outlook 2013 works differently, but Legacy clients need modifications to server side. In Exchange 2013: Create Throttling Policy and apply it to all mailboxes: [crayon-5dc9eabf92a21105991200/] Then add registry key (below is for 5000 concurrent connections): [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIS\ParametersSystem]"Maximum Allowed Sessions Per User"=dword:00001388 Then restart Information Store service.continue reading →

Export biggest mailbox users with attributes to csv!

This is how: Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Select DisplayName,servername,database,StorageLimitStatus, @{name="TotalItemSize (MB)";expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split("(")[1].Split(" ")[0]. Replace(",","")/1MB),2)}},@{name="TotalDeletedItemSize (MB)";expression={[math] ::Round((($_.TotalDeletedItemSize.Value.ToString()).Split("(")[1].Split(" ")[0]. Replace(",","")/1MB),2)}},ItemCount,DeletedItemCount | Sort "TotalItemSize (MB)"  -Descending | Export-CSV "C:dirAll Mailboxes_120814.csv" -NoTypeInformation Love it!continue reading →

Change upn-suffix for all the users in certain OU

Get-ADUser -Filter {UserPrincipalName -like "*@domain.local"} -SearchBase "OU=whateverisright,DC=contoso,DC=com" | ForEach-Object {     $UPN = $_.UserPrincipalName.Replace("domain.local","newdomain.local")     Set-ADUser $_ -UserPrincipalName $UPN } Easy as opening a banana, right? https://www.youtube.com/watch?v=nBJV56WUDng :)continue reading →

Find unlicensed users with powershell in Office 365 and apply a license.

If you have many users synced to Office 365. It will be more efficient to user powershell to license them. This is how: connect-msolservice and enter crendentials. Get-MsolAccountSku will display the license types. And then: $AccountSkuId = "tenantname:STANDARDWOFFPACK_STUDENT" $UsageLocation = "FI" $LicenseOptions = New-MsolLicenseOptions -AccountSkuId $AccountSkuId $Users = Get-MsolUser -All…continue reading →