PS Simple Scripts

November 20, 2011

A source-side operation failed. Error An error occurred while performing the seed operation. Error: Failed to open a log truncation context to source server….

Filed under: General — telnet25 @ 5:46 pm

If you are trying to add mailbox database copy on your DAG member and un-able to do it, and also receiving fallowing errors , your remedy could be in this fallowing link.

http://blogs.technet.com/b/exchange/archive/2010/09/01/3410888.aspx

Error:

A source-side operation failed. Error An error occurred while performing the seed operation. Error: Failed to open a log truncation context to source server ‘EX2.smtp25.org’. Hresult: 0xfffffae7. Error: The database was either not found or was not replicated.. [Database: DB4, Server: EX1.smtp25.org]

Failed to open a log truncation context to source server ‘EX2.smtp25.org’. Hresult: 0xfffffae7. Error: The database was either not found or was not replicated.

Click here for help… http://technet.microsoft.com/en-US/library/ms.exch.err.default(EXCHG.140).aspx?v=14.1.218.11&t=exchgf1&e=ms.exch.err.Ex4543D9

Exchange Management Shell command attempted:

Add-MailboxDatabaseCopy -Identity ‘DB4’ -MailboxServer ‘EX1’ -ActivationPreference ‘2’

Elapsed Time: 00:00:02

image

  • now from the link above

http://blogs.technet.com/b/exchange/archive/2010/09/01/3410888.aspx

Identify the GUID of the database that is being added using this command:

Get-MailboxDatabase DAG-DB0 | fl name,GUID

image

On the server specified in the add command, using the database GUID identified, remove the following registry key:
HKEY_LOCAL_MACHINE

  • SOFTWARE
  • Microsoft
  • ExchangeServer
  • v14
  • Replay
  • State
  • <db-guid>
  • DumpsterInfo

image

Now compare the GUID’s and delete the ones matches from registry as shown…

image

image

Save registry and exit. you should be able to add mailbox database copy now, if Data Bases added goes into suspended mode, just make right click and update DB copy, it will take some time depending upon how big is the DB etc.

image

Respectfully,
Oz Casey, Dedeal ( MVP north America)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
http://smtp25.blogspot.com/ (Blog)
https://telnet25.wordpress.com/ (Blog)

November 19, 2011

Setup wizard for update rollup 6 for Exchange server 2010 service pack 1 ended prematurely because of an error….

Filed under: General — telnet25 @ 4:45 am

If you are attempting to install RU on Exchange 2010 server and receiving fallowing error, there is easy way to go around to get the install working without such issues.

image

Problem: Install attempt RU XX on Exchange 2010 server is failing with above or similar error

Solution: Run the setup file with Administrator privileges

Cause: Most likely UAC turned on ( no need to try to turn it off )

image

image

Now here is the big secret , in old days we were able to say copy and paste into CMD window without typing the full path of the install file, you will quickly realize this is not working on Windows 2008 and you are like come on (-:

on the install file hold “SHIFT” key down and left click to get option “ Copy as path”

image

Open CMD as administrator and “paste” will work now , Wowwww got to love this, whom ever though of making such improvement into Windows 2008,

image

Now install will work flawless.

Oz Casey , Dedeal

MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +

Http://smtp25.blogspot.com (Blog

Http://telnet25.spaces.live.com (Blog)

Http://telnet25.wordpress.com (Blog)

November 14, 2011

Disable permanently Outlook Team Calendar

Filed under: General — telnet25 @ 9:41 pm

Outlook 2010 introduced new future called “Team Calendar”. This future might be annoying or not acceptable in certain cases and un-ticking check mark to make it not seen might not be sufficient enough. If so and you are wondering how to disable this here is the solution.

Team Calendars , star popping up from people outlook. –Reason: the
AD Attribute called “Manager” is populated see picture
When manager is listed for given user,  outlook is automatically creating calendar in this format  Team: Name of the manager Calendar inside peoples outlook see picture

 image

Fire up reg edit on the problem workstation…..Drill down to fallowing directory

  • [HKEY_CURRENT_USER
  • Software
  • Microsoft
  • Office
  • 14.0
  • Outlook
  • Options
  • WunderBar

Create reg key if one does not exist “Value disablereportinglinegroupcalendar”

  • This policy setting prevents Reporting Line Group Calendar from appearing in the navigation pane.
    If you enable this policy setting, Reporting Line Group Calendar will not appear in the navigation pane.
    If you disable or do not configure this policy setting, My Reporting Line Group
    Calendar will appear in the navigation pane.

image

image

Before

image

After

image

Respectfully,
Oz Casey, Dedeal ( MVP north America)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
http://smtp25.blogspot.com/ (Blog)
https://telnet25.wordpress.com/ (Blog)

The Microsoft Exchange Replication service failed to start the TCP listener Event ID:2121

Filed under: General — telnet25 @ 3:26 pm

If you are getting fallowing errors Event ID:2121 , Source: MSExchangeRepl and your Exchange services are not coming up with fallowing errors…

Log Name: Application

Source: MSExchangeRepl

Date: 11/13/2011 5:50:17 PM

Event ID: 2121

Task Category: Service

Level: Error

Keywords: Classic

User: N/A

Computer: MCCNPWINMBX3.smtp25.org

Description:

The Microsoft Exchange Replication service failed to start the TCP listener. Error: Microsoft.Exchange.Data.Directory.NoSuitableServerFoundException: The Microsoft Exchange Active Directory Topology service on server localhost did not return any suitable domain controllers.

at Microsoft.Exchange.Data.Directory.DSAccessTopologyProvider.GetConfigDCInfo(Boolean throwOnFailure)

at Microsoft.Exchange.Data.Directory.TopologyProvider.PopulateConfigNamingContexts()

at Microsoft.Exchange.Data.Directory.ADSession.GetConfigurationNamingContext()

at Microsoft.Exchange.Data.Directory.Recipient.ADRecipientSession.GetWellKnownExchangeGroupSid(Guid wkguid)

at Microsoft.Exchange.Data.Directory.Recipient.ADRecipientSession.GetExchangeServersUsgSid()

at Microsoft.Exchange.Cluster.Replay.RemoteDataProvider.StartListening()

Event Xml:

image

Possible solution: If topology service is not able to figured out what subnet the Exchange server belong too. Simple way to check and fix this will be adding the subnet for the Mailbox server into ADSITE and services. Perform IPconfig /all on the Exchange server figure out what subnet it is sitting on and add the subnet in ADSITE and services, you will need to reboot or , restart net logon and Exchange Services.

image

Respectfully,
Oz Casey, Dedeal ( MVP north America)
MCITP (EMA), MCITP (SA)
MCSE 2003, M+, S+, MCDST
Security+, Project +, Server +
http://smtp25.blogspot.com/ (Blog)
https://telnet25.wordpress.com/ (Blog)

November 3, 2011

Exchange 2010 Database Size, EDB file Path etc.….

Filed under: General — telnet25 @ 4:11 am

You might wonder what is the size of  your Exchange Server databases , and their path etc. In Exchange 2010 the task is pretty real easy.

Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize,EdbFilePath,LogFolderPath

image

  • Now here how the output would look like

image

  • to export this into CSV file add the fallowing at the end of PS
Export-Csv c:\scripts\DBSize.csv
  • Full Script would be like this
Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize,EdbFilePath,LogFolderPath | Export-Csv c:\scripts\DBSize.csv

image

  • Finally we will plug this into PowerGUI

image

  • Give it a name

image

image

Respectfully,

Oz Casey, Dedeal ( MVP north America)

MCITP (EMA), MCITP (SA)

MCSE 2003, M+, S+, MCDST

Security+, Project +, Server +

http://smtp25.blogspot.com/ (Blog)

https://telnet25.wordpress.com/ (Blog)

Create a free website or blog at WordPress.com.