Allow access to the Exchange power shell from outside the Organization. 1.Set-User -Identity user -RemotePowerShellEnabled $true 2.Set-PowerShellVirtualDirectory -ExternalUrl http://fqdn/PowerShell -Identity “EX01\PowerShell (Default Web Site)” 3.Set-PowerShellVirtualDirectory -BasicAuthentication $true PoweShell Script $RemoteEx2013Session = New-PSSession -ConfigurationName Microsoft.Exchange ` -ConnectionUri https://fqdn/PowerShell/ ` -Authentication Basic -Credential (Get-credential) Import-PSSession $RemoteEx2013Session Access Permission View Only Add-RoleGroupMember -Identity “View-Only Organization Management” -Member user ..

Read more

Allow access to the Exchange power shell from outside the Organization. 1.Set-User -Identity user -RemotePowerShellEnabled $true2.Set-PowerShellVirtualDirectory -ExternalUrl http://fqdn/PowerShell -Identity “EX01PowerShell (Default Web Site)”3.Set-PowerShellVirtualDirectory -BasicAuthentication $true PoweShell Script $RemoteEx2013Session = New-PSSession -ConfigurationName Microsoft.Exchange `                                     -ConnectionUri https://fqdn/PowerShell/ `                                     -Authentication Basic -Credential (Get-credential)Import-PSSession $RemoteEx2013Session Access Permission View OnlyAdd-RoleGroupMember -Identity “View-Only Organization Management” -Member user Full Access PermissionAdd-RoleGroupMember -Identity ..

Read more

How to get a list with all users that have permission on Exchange 2013 ForEach ($RoleEntry in Get-ManagementRoleEntry *Remove-Mailbox -parameters Identity) {Get-ManagementRoleAssignment -Role $RoleEntry.Role -GetEffectiveUsers -Delegating $False | Where-Object {$_.EffectiveUserName -Ne “All Group Members”} | FL Role, EffectiveUserName, Assign..

Read more

Activate event log Set-EventLogLevel -Identity MSExchangeTransportPoisonMessage -Level Expert To get the event log Get-MessageTrackingLog -EventId Poisonmessage To set it back to a lower  event log level Set-EventLogLevel -Identity MSExchangeTransportPoisonMessage -Level Lowest And not at lest you can deactivate Poison Message detection.Set-TransportServer -PoisonMessageDetectionEnab..

Read more

Exchange Transport Debugging tools Experfwiz (Exchange Performance Data Collection tool) http://experfwiz.codeplex.com/ Example:.experfwiz.ps1 -threads Procdumphttp://technet.microsoft.com/en-us/sysinternals/dd996900.aspx Example:procdump -ma EdgeTransport.exe -s 30 -n 3 -accepteula c:EdgeTransport.dmp Message Header Analyzerhttps://testconnectivity.microsoft.com/ Message Tracking LogGet-MessageTrackingLog -Start “11/10/2014 08:00:00″ -End “11/10/2014 11:30:00″Get-MessageTrackingLog -Start “11/10/2014 08:00:00″ -End “11/10/2014 11:30:00″  –Recipients email.address@domain.tld -Sender email.address@domain.tldGet-ExchangeServer | Get-MessageTrackingLog -MessageSubject “ Subject” | Sort-Object Timestamp | ft ..

Read more

Remove the Site in Default Web SiteRemove-EcpVirtualDirectory -Identity “ecp (Default Web Site)” Remove the Site in Back EndRemove-EcpVirtualDirectory -Identity “ecp (Exchange Back End)” Recreate the Site in Default Web SiteNew-EcpVirtualDirectory -WebSiteName “Default Web Site” Recreate the Site in Back EndNew-EcpVirtualDirectory -WebSiteName “Exchange Back ..

Read more

Remove the Site in Default Web SiteRemove-ActiveSyncVirtualDirectory -Identity Microsoft-Server-ActiveSync (Default Web Site) Recreate the Site in Default Web SiteNew-ActiveSyncVirtualDirectory -WebSiteName “Default Web Site” -ExternalUrl https://FQDN/Microsoft-Server-ActiveSync -InternalUrl https://FQDN/Microsoft-Server-ActiveSync Remove the Site in Back EndRemove-ActiveSyncVirtualDirectory -Identity “Server NameMicrosoft-Server-ActiveSync (Exchange Back End)” Recreate the Site in Back End New-ActiveSyncVirtualDirectory -WebSiteName “Exchange Back ..

Read more