• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4430
  • Last Modified:

moved mailbox from 2003 to 2010 cant access OWA on 2010

hi all i used the below code to move a test mailbox from 2003 to 2010

i had already created the test account on server 2008 AD and the mailbox on exchange
so when it copied across it all went ok
but when i went to AD there where two test accounts, i deleted the one i created and kept the one that was copied accross

the pre 2000 name was test83947391 or somethign alike so i changed it to just test so there was only 1 test account now i checked it has outlook app permissions and everything looks right to me

yet when i go to https:\\EX\exchange > login as domain\test i get this error
Access is denied.
The Active Directory resource couldn't be accessed. This may be because the Active Directory object doesn't exist or the object has become corrupted, or because you don't have the correct permissions.

my server 2003 network was named domain.local and my 2008 network is named domain.net if that helps

anyone know how to resolve?
Thanks



$UserCredentials = Get-Credential
e:\move\Prepare-MoveRequest.ps1 -Identity test@domain.local -RemoteForestDomainController server01.domain.local -RemoteForestCredential $UserCredentials -UseLocalObject

$Cred = Get-Credential
New-MoveRequest -Identity "test@domain.local" -RemoteLegacy `
  -TargetDatabase "Mailbox Database 1234567890" `
  -RemoteGlobalCatalog "server01.domain.local" `
  -RemoteCredential $Cred -TargetDeliveryDomain "domain.net"

Open in new window

0
awilderbeast
Asked:
awilderbeast
  • 5
  • 4
1 Solution
 
Hilal1924Commented:
First and Foremost Run this command which will verify is the User exists or not:

Get-Mailbox "Test User" -Server Ex2010 |fl *

Get-User "Test User" -Server "2008AD" |fl *

Test-MailFlow -TargetemailAddress "TestUser@yourDomain.com"
Hilal
0
 
awilderbeastAuthor Commented:
heres the results

did i type them in correctly?
[PS] C:\Windows\system32>Get-Mailbox "test" -server "CH-EX" |fl *
A positional parameter cannot be found that accepts argument 'test'.
    + CategoryInfo          : InvalidArgument: (:) [Get-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-Mailbox

[PS] C:\Windows\system32>Get-User "test" -server "DC1" |fl *
A positional parameter cannot be found that accepts argument '-server'.
    + CategoryInfo          : InvalidArgument: (:) [Get-User], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-User

Open in new window

0
 
Hilal1924Commented:
Do Only this:

Get-User "test" | fl *

Get-Mailbox  test -Server server (Here test is your test user and Server is your servername)

Test-Mailflow Mailbox1 -TargetMailboxServer Mailbox2

(Here Mailbox1 is your test user and Mailbox2 is your mailbox Server)
And verify if they exist.


Make sure that you are running these commands from Exchange Server Management shell.

Hilal
0
Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

 
Hilal1924Commented:
Sorry For Test-Mailflow use this Command:

Test-Mailflow Mailbox1 -TargetEmailAddress test@test.com (Mailbox1 is your server and test@test.com is your test user's email address)
0
 
awilderbeastAuthor Commented:
ok see below for all three
[PS] C:\Windows\system32>get-user "test" |fl *


PSComputerName           : ch-ex.domain.net
RunspaceId               : xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
IsSecurityPrincipal      : True
SamAccountName           : test
Sid                      : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SidHistory               : {}
UserPrincipalName        : test@domain.net
ResetPasswordOnNextLogon : False
CertificateSubject       : {}
RemotePowerShellEnabled  : True
NetID                    :
UserAccountControl       : NormalAccount
OrganizationalUnit       : domain.net/IT Dept
AssistantName            :
City                     : 
Company                  : 
CountryOrRegion          : 
Department               :
DirectReports            : {}
DisplayName              : test
Fax                      :
FirstName                : test
HomePhone                :
Initials                 :
LastName                 :
Manager                  :
MobilePhone              :
Notes                    :
Office                   :
OtherFax                 : {}
OtherHomePhone           : {}
OtherTelephone           : {}
Pager                    :
Phone                    :
PhoneticDisplayName      :
PostalCode               : 
PostOfficeBox            : {}
RecipientType            : UserMailbox
RecipientTypeDetails     : UserMailbox
SimpleDisplayName        :
StateOrProvince          : 
StreetAddress            : 
                           
Title                    :
UMDialPlan               :
UMDtmfMap                : {emailAddress:8378, lastNameFirstName:8378, firstNameLastName:8378}
AllowUMCallsFromNonUsers : SearchEnabled
WebPage                  :
TelephoneAssistant       :
WindowsEmailAddress      : test@mydomain.com
UMCallingLineIds         : {}
IsValid                  : True
ExchangeVersion          : 0.10 (14.0.100.0)
Name                     : test
DistinguishedName        : CN=test,OU=IT Dept,DC=domain,DC=net
Identity                 : domain.net/IT Dept/test
Guid                     : eaea93da-8de0-496b-80eb-d68f8c5e5027
ObjectCategory           : domain.net/Configuration/Schema/Person
ObjectClass              : {top, person, organizationalPerson, user}
WhenChanged              : 08/04/2010 09:51:11
WhenCreated              : 07/04/2010 10:41:35
WhenChangedUTC           : 08/04/2010 08:51:11
WhenCreatedUTC           : 07/04/2010 09:41:35
OrganizationId           :
OriginatingServer        : DC1.domain.net

######################################################################


[PS] C:\Windows\system32>Get-Mailbox test -server CH-EX
A positional parameter cannot be found that accepts argument 'test'.
    + CategoryInfo          : InvalidArgument: (:) [Get-Mailbox], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Get-Mailbox

[PS] C:\Windows\system32>Get-Mailbox test

Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
test                      test                 ch-ex            unlimited

#############################################################################

[PS] C:\Windows\system32>Test-Mailflow CH-EX -TargetEmailAddress test@domain.net


RunspaceId         : 5fbb3580-8827-4281-95c2-595b7f8f78f2
TestMailflowResult : Success
MessageLatencyTime : 00:00:03.6044526
IsRemoteTest       : True
Identity           :
IsValid            : True

Open in new window

0
 
Hilal1924Commented:
Great It means the User does exist and can send/recive email.

Now run this Command:

Test-OwaConnectivity -URL:https://ch-ex/owa -MailboxCredential:(get-credential yourdomain\test)

Replace yourdoamin with your Domain Name.

Hilal
0
 
awilderbeastAuthor Commented:
i havent installed ssl yet so i added the TrustAnySSLCertificate parameter on the end

so it looks like its working according to that...

wait i just went on and tried loggin in again and it has worked this time :S

can you think of any reason why it wasnt workign before?

did running any of these cmmands make it wake up perhaps?

THanks
[PS] C:\Windows\system32>Test-OwaConnectivity -URL:https://ch-ex/owa -MailboxCredential:(get-credential domain\test) -Tr
ustAnySSLCertificate
WARNING: The server returned the language selection page. This is the first logon for the test user.

ClientAccessServer MailboxServer URL                     Scenario Result  Latency Error
                                                                           (ms)
------------------ ------------- ---                     -------- ------  ------- -----
                                 https://ch-ex/owa/      Logon    Success 1154.41


[PS] C:\Windows\system32>

Open in new window

0
 
Hilal1924Commented:
Looks like when you tried OWA earlier it was not able to enumerate the security settings in CAS server and The user got deauthenticated.  When we issued this command via PowerShell it connected to the CAS server directly and hence a new link cache was established the client was authenticated.

Glad that it worked for you.

Hilal
0
 
awilderbeastAuthor Commented:
thanks
0
 
TritiumAECommented:
I also received this error.  Either moving the mailbox from Exchange 2003, or creating a new mailbox on the Exchange 2010 box.

To correct the issue, do the following:

Run in a command prompt:  repladmin /syncall
If there are any errors, you will need to look up these errors, and correct the problems, then rerun the above command.

Once the repladmin competes without any errors, restart the "Microsoft Exchange Active Directory Topology" Service.  
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now