Hello all,
I was trying to migrate users from Hosted Exchange 2010 platform unto Hosted Exchange 2013 platform, I am currently at the stage where I need to Query Customer Organization by running a customer script from Microsoft . i.e "QueryCustomerOrg.ps1". I followed the instruction for modifying the script but upon running it, I kept getting errors as shown below:
Searching for Users in Customer OU: LDAP://OU=bjay,OU=Microsoft Exchange Hosted Organizations,DC=labon,DC=com.ng Exception calling "FindAll" with "0" argument(s): "A referral was returned from the server. " At C:\Scripts\QueryCustomerOrg.ps1:104 char:36 + $searchResults = $searcher.FindAll <<<< () # Set to FindOne or FindAll + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException ******************************* Searching for Groups in Customer OU: LDAP://OU=bjay,OU=Microsoft Exchange Hosted Organizations,DC=labon,DC=com.ng Exception calling "FindAll" with "0" argument(s): "A referral was returned from the server. " At C:\Scripts\QueryCustomerOrg.ps1:104 char:36 + $searchResults = $searcher.FindAll <<<< () # Set to FindOne or FindAll + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException ******************************* Searching for Contacts in Customer OU: LDAP://OU=bjay,OU=Microsoft Exchange Hosted Organizations,DC=labon,DC=com.ng Exception calling "FindAll" with "0" argument(s): "A referral was returned from the server. " At C:\Scripts\QueryCustomerOrg.ps1:104 char:36 + $searchResults = $searcher.FindAll <<<< () # Set to FindOne or FindAll + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException ******************************* ############################################################# Found 1 SMTP domains Found 0 Users, of which 0 are mailbox-enabled (not including System mailboxes) Found 0 Groups, of which 0 are mail-enabled (not including System groups) Found 0 Contacts, of which 0 are mail-enabled ############################################################# ============================================================= Saved results to XML output file C:\Scripts\bjay.xml ============================================================= |
Here is the "QueryCustomerOrg.ps1" script :
#--------------------------------------------------------------------------------# FILE: QueryCustomerOrg.ps1
#
# PROJECT: Exchange 2010 /Hosting mode to Exchange 2010 SP2 Migration
#
# PURPOSE: Sample script that queries Exchange and Active Directory in the
# Exchange 2010 /Hosting mode forest for a customer's User, Group,
# Contact, and SMTP domain information, then creates an XML output
# file containing the query results.
#
#
# THIS CODE AND INFORMATION IS PROVIDED TO YOU FOR YOUR REFERENTIAL PURPOSES
# ONLY, AND IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EITHER
# EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
# OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE, AND MAY NOT
# BE REDISTRIBUTED IN ANY MANNER.
#
# Copyright (C) 2012 Microsoft Corporation. All rights reserved.
#--------------------------------------------------------------------------------
### Modify these variables with values appropriate to your environment ###
$PreferredDC = "dc1.labon.com.ng"
$DomainID = "labon"
$DomainSuffix = "com.ng"
$HostingOU = "Microsoft Exchange Hosted Organizations"
$BaseSearchPath = "OU=$HostingOU,DC=$DomainID,DC=$DomainSuffix"
################### You should not need to edit any variables below this line ###################
I need help on how to resolve this issue.