Rexxer

Some tips for me and other

Exchange

Active Directory + Outlook 2013 template (Office 2013 templates)

To manage account settings in Outlook in a domain I decided to do this via GPO. For Office 2013 only ADMX templates are present. So you can’t import them via gpedit. 1. Create a Central Store for templates: http://support.microsoft.com/kb/929841 2. Download this http://www.microsoft.com/en-us/download/details.aspx?id=6243 and copy to the PolicyDefinitions folder. 3. Download http://www.microsoft.com/download/en/details.aspx?id=18968 and copy it […]

Exchange 2010 + OWA + Time interval for caching credentials

You can change it here: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters Add Dword parameter with the name UserTokenTTL and value e.g. 30 in seconds.  

Exchange 2010 + delete a specific e-mail from all the boxes

1. You must have a special permissions for it: import-export mailboxes, see it on the MS Technet. 2. Check that it will be work for this e-mail correctly: Get-Mailbox-ServerYourServer| Search-Mailbox-SearchQuery’Subject:”YouSubject” and Body:”Phrase in body”‘-targetmailbox”YourOwnMailboxForReport”-targetfolder”Inbox”-logonly-loglevelfull After this command you’ll receive a letter with CSV-log. Check it. If everythin is ok go to the next step. 3. […]

Exchange 2010 DAG update

I had a problem with updating Exchange 2010 in DAG. I resolved this in a such way: 1. Control panel – Internet Settings – Advanced – Turn off certificates checking. 2. Control panel – User accounts – Accounts control to minimum – OFF. 3. Check DNS settings – I had a small problem with it. […]

Exchange 2010 + DAG replication failed

One day I have noticed that a database replication had status “Failed”. It happened after rebooting servers. So, I tried to suspend and resume the replication – unsuccessfully – the same status “Failed”. I looked for a recipe on the Internet and found this: http://www.youdidwhatwithtsql.com/cluster-network-san1-is-partitioned/1288 but I couldn’t do it because it said “some network […]

Exchange 2010 + move e-mails to another transport server

1: On exchange EDGE server 1   get-queue 2: Pause the transport services, 3: Suspend the queue get-queue | ? {$_.deliverytype -eq ‘dnsconnectordelivery’} | get-message | suspend-message 4: Then export those suspended messages: get-queue | ? {$_.DeliveryType -eq ‘dnsconnectordelivery’} | get-message | ForEach-Object {$temp=”c:\temp\”+$_.InternetMessageID+”.eml”;$Temp.Replace(“<“,”_”);$Temp=$Temp.Replace(“>”,”_”);Export-Message $_.Identity | AssembleMessage -Path $Temp} 5: Remove exchange Edge server 1 […]

Exchange 2010 + Count RPC connections

Script: function Get-CASActiveUsers { [CmdletBinding()] param( [Parameter(Position=0, ParameterSetName=”Value”, Mandatory=$true)] [String[]]$ComputerName, [Parameter(Position=0, ParameterSetName=”Pipeline”, ValueFromPipelineByPropertyName=$true, Mandatory=$true)] [String]$Name ) process { switch($PsCmdlet.ParameterSetName) { “Value” {$servers = $ComputerName} “Pipeline” {$servers = $Name} } $servers | %{ $RPC = Get-Counter “\MSExchange RpcClientAccess\User Count” -ComputerName $_ $OWA = Get-Counter “\MSExchange OWA\Current Unique Users” -ComputerName $_ New-Object PSObject -Property @{ Server = […]

Exchange 2010 shell + usefull commands

Permissions for Public Folders Add-PublicFolderClientPermission -AccessRights Owner -Identity \MyPublicFolder -user domain\ivan.ivanovGet-PublicFolderClientPermission -Identity \MyPublicFolder For meeting-rooms Get-Mailbox Meeting.RoomGet-Mailbox Meeting.Room | flGet-MailboxCalendarSettings Meeting.Room | flAdd-MailboxPermission -Identity:Meeting.Room -AccessRights:fullaccess -User:domain\ivan.ivanov SMTP-connector get-receiveconnector | add-adpermission -user ivan.ivanov -extendedrights ms-Exch-SMTP-Accept-Authoritative-Domain-Sender DLs get-distributiongroup | select Identity,RequireSenderAuthenticationEnabled Mailboxes get-mailboxstatisticsget-mailboxstatistics | select displayName,TotalItemSize EventLog Get-EventLogLevelSet-EventLogLevel -Identity “MSExchangeSA\OAL Generator” -Level Medium Get mailboxes with forwarding […]

Load Balancer for Exchange

I was needed in a cheep software NLB and found this article: http://marksmith.netrends.com/Lists/Posts/Post.aspx?ID=111 In this article I will show you how to build an open-source, Linux (CentOS) based load balancer using the Direct Server Return (DSR) method of load balancing with the Linux Virtual Server (LVS) package and the Piranha web GUI. Let me first […]

Exchange 2010 + queue monitoring

Sometimes the network or other issues happen and cause queues growing. So I need to monitor this incident. This powershell script helps me: $FromAddress = “postmaster@domain.com” $ToAddress = “postmaster@domain.com” $MessageSubject = “Queues Report” $MessageBody = “Attached is the current queues.” $SendingServer = “mail-server” $queue = Get-Queue -Filter {MessageCount -gt 5} | fl if ($queue) { […]

Previous Posts Next posts