Showing posts with label Exchange. Show all posts
Showing posts with label Exchange. Show all posts
13 October 2016
Find users with active sync enabled
Get-CASMailbox -ResultSize Unlimited | Where-Object { $_.ActiveSyncEnabled -eq 'True'} | Select-Object name, activesyncenabled
08 October 2015
How to increase Exchange 2010 rules size limit
verify rules size quota:
Get-Mailbox username | Select-Object RulesQuota
Set rules quota to 256kb (default value is 64kb):
Get-Mailbox username | Set-Mailbox -RulesQuota 256kb
Get-Mailbox username | Select-Object RulesQuota
Set rules quota to 256kb (default value is 64kb):
Get-Mailbox username | Set-Mailbox -RulesQuota 256kb
06 July 2015
Verify exchange database witespace
Get-MailboxDatabase -Status |Select-Object
AdminDisplayName,AvailableNewMailboxSpace, DatabaseSize
21 August 2014
Retrieve ActiveSync devices assosciated to a mailbox
Get-ActiveSyncDevice -mailbox username
01 July 2014
Report Exchange database limits
Get-MailboxDatabase -Status | Select-Object Name, @{name='Warning';Exp={([string]$_.IssueWarningQuota).Split(' ')[0]+' MB'}}, @{name='ProhibitSend';Exp={([string]$_.ProhibitSendQuota).Split(' ')[0]+' MB'}}, @{name='ProhibitSendReceive';Exp={([string]$_.ProhibitSendReceiveQuota).Split(' ')[0]+' MB'}}
22 May 2014
Export exchange message tracking results in csv
default output of Export-CSV command for the output of Get-MessageTrackingLog will not show all properties in the correct format:
Select-Object can be used to properly format the output for the Export-CSV command:
Select-Object Timestamp, Sender, {$_.Recipients}, {$_.RecipientStatus}
| Recipients | RecipientStatus |
| System.String[] | System.String[] |
Select-Object can be used to properly format the output for the Export-CSV command:
Select-Object Timestamp, Sender, {$_.Recipients}, {$_.RecipientStatus}
08 July 2013
Hide user from GAL / Global Address List
Set-Mailbox -HiddenFromAddressListsEnabled $true -Identity $user.UserPrincipalName
07 June 2013
OWA - blind and low vision experience
you can enable or disable blind and low vision experience on OWA for all users by modifying "OWALightEnabled" atribute:
Set-OwaVirtualDirectory -Identity 'server_name\owa (Default Web Site)' -OWALightEnabled $false
Set-OwaVirtualDirectory -Identity 'server_name\owa (Default Web Site)' -OWALightEnabled $false
13 December 2012
Find exchange servers in domain
If you need to find exchange servers in a domain you can use one of these options:
1. an active directory user with mailbox will have 2 attributes (msExchHomeServerName and homemdb) that will contain the name of the mailbox server that has his mailbox - once conected to one server you can use exchange console to find the rest of them;
Get-ADUser samaccountname -Properties msExchHomeServerName, homemdb |Select-Object msExchHomeServerName, homemdb |Format-List
2. active directory computer type objects contain "exchange" word in servicePrincipalName attribute; you can use only your organizational unit that contain your servers if you have one to narrow your search:
Get-ADComputer -Filter * -SearchBase 'OU= SERVERS, DC=domain_name,DC=net' -Properties * | Where-Object {$_.serviceprincipalname -like '*exchange*'} |select-object name
3. active directory configuration partition contain information about exchange servers in domain; you can search for objects of class msExchExchangeServer:
Get-ADObject -LDAPFilter "(objectClass=msExchExchangeServer)" –SearchBase "CN=Configuration,DC=domainname,DC=net" | Select-Object name
or you can list all objects from "CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=INTERNAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domainname,DC=net" using powershell or ADSI Edit console;
Get-ADObject -Filter * -SearchBase "CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=INTERNAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domainname,DC=net" -SearchScope onelevel
1. an active directory user with mailbox will have 2 attributes (msExchHomeServerName and homemdb) that will contain the name of the mailbox server that has his mailbox - once conected to one server you can use exchange console to find the rest of them;
Get-ADUser samaccountname -Properties msExchHomeServerName, homemdb |Select-Object msExchHomeServerName, homemdb |Format-List
2. active directory computer type objects contain "exchange" word in servicePrincipalName attribute; you can use only your organizational unit that contain your servers if you have one to narrow your search:
Get-ADComputer -Filter * -SearchBase 'OU= SERVERS, DC=domain_name,DC=net' -Properties * | Where-Object {$_.serviceprincipalname -like '*exchange*'} |select-object name
3. active directory configuration partition contain information about exchange servers in domain; you can search for objects of class msExchExchangeServer:
Get-ADObject -LDAPFilter "(objectClass=msExchExchangeServer)" –SearchBase "CN=Configuration,DC=domainname,DC=net" | Select-Object name
or you can list all objects from "CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=INTERNAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domainname,DC=net" using powershell or ADSI Edit console;
Get-ADObject -Filter * -SearchBase "CN=Servers,CN=First Administrative Group,CN=Administrative Groups,CN=INTERNAL,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=domainname,DC=net" -SearchScope onelevel
11 September 2012
Update Rollup version for Exchange Server 2010
to find what exchange version update rollup you have installed use the command:
Get-Command exsetup| %{$_.fileversioninfo}
FileVersion : 14.01.0323.006
ProductVersion : 14.01.0323.006
after yhat you can navigate to technet and verifivy rollup version:
http://technet.microsoft.com/en-us/library/hh135098.aspx
Get-Command exsetup| %{$_.fileversioninfo}
FileVersion : 14.01.0323.006
ProductVersion : 14.01.0323.006
after yhat you can navigate to technet and verifivy rollup version:
http://technet.microsoft.com/en-us/library/hh135098.aspx
Subscribe to:
Posts (Atom)