Issue
Matching accounts in Notes Migrator via PowerShell fails and the system is unable to complete the match process to continue with migrations or to update the Email Repliability.
The powershell console and log (PSLog) contain the below error:
Get-Recipient : The term 'Get-Recipient' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\logs\BTUserMatching.ps1:40 char:7
+ $user=Get-Recipient -Identity "useraddress@tenantname.onmicrosoft.c ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Recipient:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Solution
Verify the Powershell Admin account name (Settings - Required Settings - Additional tab) to ensure it is valid in the target Exchange system (On Prem or Office 365).
Verify that the Powershell Admin account has rights in the target system to run remote powershell (typically the Powershell Admin account would be a global admin account in Exchange On Prem or Office 365).
Verify the password being used for the Powershell Admin account, for this log in to the Exchange Admin portal or Office 365 Admin Portal with the account and password in Internet Explorer.
Verify the Powershell URL being used (Settings - User Provisioning tab). For Office 365 migrations this is typically https://ps.outlook.com/powershell
Verify that there is not a Proxy configured in IE or a firewall that may be blocking Port 80 or Port 443 connectivity to the remote powershell site (URL).
Verify that the Windows UAC is disabled and that currently logged in Windows account has access to write to the logs folder (typically c:\logs).
For Office 365 migrations specifically also check the below:
Microsoft Online Services Sign-In Assistant for Powershell connectivity requirement is installed.
Windows Azure PowerShell Module (Microsoft Azure Active Directory Module for Windows Powershell) for Powershell connectivity requirement is installed.
Verify in Powershell the connection can be made to the remote powershell site by running the below with the configured Powershell Admin account:
Launch PowerShell as an administrator.
At the prompt, type:
Set-ExecutionPolicy Unrestricted
To authenticate using Remote PowerShell:
$Cred = Get-Credential "powershellaccount@customertenant.onmicrosoft.com"
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic –AllowRedirection
Import-PSSession $Session
Import-Module msonline
Connect-MsolService -Credential $Cred
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback 使用条款 隐私 Cookie Preference Center