Monthly Archives: September 2011

Remove-RoutingGroupConnector – The operation couldn’t be performed because ‘rg-exchange’ matches multiple entries.

I have this problems that i could delete a routinggroup between an old Exchange 2003 and a new Exchange 2010.
When i type Get-RoutingGroupConnector

Name SourceRoutingGroup TargetRoutingGroup
—- —————— ——————
RG-Exchange Exchange Routing Group (DWBGZMFD01QNBJR) First Routing Group
RG-Exchange First Routing Group Exchange Routing Group (DWBGZMFD01QNBJR)

So i have 2 Routinggroup Connector with the same name. So when i type
Remove-RoutingGroupConnector -id “RG-Exchange”

I got
The operation couldn’t be performed because ‘rg-exchange’ matches multiple entries.
+ CategoryInfo : NotSpecified: (0:Int32) [Remove-RoutingGroupConnector], ManagementObjectAmbiguousExcepti
on
+ FullyQualifiedErrorId : 6C29C43B,Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveRoutingGroupConnec
tor

So all i did was typing this instead:
get-routinggroupconnector -id “RG-Exchange” | remove-routinggroupconnector

Then it will ask you if you want to delete all routingsgroup with the name “RG-Exchange”

Ahsay restore Microsoft SQL (MSSQL) server database

If you want to restore a Microsoft SQL database, from a fuld backup, and put some transaction log file into it.  (This backup has backup by ahsay)

This is the why to do it:

  1. Start Microsoft SQL Server Management Studio
  2. Right click on Databases, and select restore database

  3. Type a database “To database”, and select from device , and press the butten with the 3 dots (…)

  4. Select file, and then click Add

  5. Select the database file you want to restore, and click ok

  6. Then select options, and click “Leave the database non-operational, and do not roll back uncommitted transactions. (Restore with NORECOVERY), then click OK
  7. Start a new query, and type this (Change it to yours database and files).
  8. RESTORE LOG RestoreTest
    FROM DISK = ‘F:\RestoreTest\2011-09-13(09-00-00)_LOG_RestoreTest_2011.bak’
    WITH NORECOVERYRESTORE LOG Farma_test
    FROM DISK = ‘F:\RestoreTest\2011-09-13(10-00-00)_LOG_RestoreTest_2011.bak’
    WITH NORECOVERY

    RESTORE LOG Farma_test
    FROM DISK = ‘F:\RestoreTest\2011-09-13(11-00-00)_LOG_RestoreTest_2011.bak’
    WITH NORECOVERY

    RESTORE LOG Farma_test
    FROM DISK = ‘F:\RestoreTest\2011-09-13(12-00-00)_RestoreTest_2011.bak’
    WITH NORECOVERY

  9. When you have takende the sekund last backup file, just type this:
  10. RESTORE LOG Farma_test
    FROM DISK = ‘F:\RestoreTest\2011-09-13(13-00-00)_RestoreTest_2011.bak’
    WITH RECOVERY

Microsoft Exchange 2010 – Ahsay restore to recovery mailbox database / storage group.

Ahsay have no support for native restore to Exchange recovery group, but here is a workaround of that problems.

First create a recovery storagegroup
New-MailboxDatabase -Recovery -Name RDB1 -Server exch2010 -EdbFilePath “F:\Backup\Restore\Data\rdb1.edb” -LogFolderPath “F:\Backup\Restore\Log”
Where RDB1 is the name of the Recovery database and Exch2010 is the name of the servere where recovery database should be located.

Restore the Exchange 2010 database to a alternative location in ahsay. With both logfiles and the database files, restore it to “F:\Backup\Restore\Data\Mailbox Database.edb” or where you location is.

Then run repair of the restored database.
Eseutil /p “F:\Backup\Restore\Data\Mailbox Database.edb”

Then mount the database
Mount-Database -Identity ‘Mailbox Database’

Example restore a mailbox to a Restore mailbox in the real database.
Restore-Mailbox -Identity ‘mailbox_to_restore_content_to’ -RecoveryDatabase RDB1 -RecoveryMailbox ‘Mailbox_Restore’ -TargetFolder Recovery

This will create a folder name Recovery under mailbox_to_restore_content_to, with the content of Mailbox_Restore

[PS] C:\Recovery20110909>Restore-Mailbox -Identity jvrestore -RecoveryDatabase RDB1 -RecoveryMailbox ‘Jesper Vernegaard’
-TargetFolder Recovery

Disable password complexity password policy

Logon to you Domain Controller, and start Group Policy Manager.

Right click on you “Default Domain Policy” and press edit

Go to Computer Configuration -Policies -> Windows Settings -> Security Settings -> Account Policy -> Password Policy

And set all settings to 0 (zero) or disable.

 

Do not set it to Not defined, that will set is as default behavior = Password complexity enabled.