Troubleshooting Tips
Prerequisites
Management operations
Report generation and tenant configuration
Prerequisites
At least Microsoft .NET version 4.8 and PowerShell version 5.1 must be installed.
Microsoft .NET version 4.8 comes preinstalled with the Windows 10 May 2019 Update (Version 1903) or Windows Server 2022. If you have installed the product in a system running below these versions, make sure that you have Microsoft .NET version 4.8 and PowerShell version 5.1 installed.
Installing Microsoft .NET version 4.8 and PowerShell version 5.1
Microsoft .NET Framework
- To check if Microsoft .NET Framework is installed, open Command Prompt from Run. Enter the following command:
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version
- Check the displayed version. If the version is below 4.8, install Microsoft .NET Framework version 4.8 from here.
PowerShell
- To check if PowerShell is installed, type PowerShell from Run. If PowerShell is installed, check for its version number by running the following command in PowerShell:
$PSVersionTable
- If the version is below 5.1 or if PowerShell is not installed, install PowerShell version 5.1 from here.
MSOnline PowerShell module must be installed.
If the MSOnline PowerShell module is not installed, you will not be able to run certain actions like the MFA settings management action and editing properties of objects using management templates.
Steps to download and install the Windows Azure Active Directory Module:
- To check if this module is installed, open PowerShell and enter the following cmdlet:
Get-Module -ListAvailable -Name MSOnline.
This will list the module if it is installed.
- If the version of the module installed is other than 1. 1. 183. 81, uninstall the MSOnline module by opening PowerShell as an administrator and entering the following cmdlet:
Uninstall-Module MSOnline
- To install the module, open PowerShell as an administrator and enter the following cmdlet:
Install-Module -Name MSOnline -RequiredVersion 1.1.183.81 -Force
Azure module must be installed to perform this action. Please restart the product.
Azure Active Directory module must be installed to generate reports and do management actions on Azure AD.
- Azure AD will be automatically installed when O365 Manager Plus is configured.
- To check if this module is installed, open PowerShell and enter get-module -Name AzureAD. This will list the module if it is installed.
- Even though the module is not installed, please restart the product.
Unable to connect to Microsoft 365. Please check your internet connection.
- The product requires an active internet connection to connect to Microsoft 365 and perform the desired operations. Please ensure that your internet connection is active and stable.
- To allow the product to interact with Microsoft 365, add the ports and URLs mentioned in this article to your firewall allow connection to the internet. Failure to do so will result in certain features not working as intended.
Untrusted certificate provider
This error occurs when certificate based authentication is used in firewall, and the product's JRE does not trust the certificate. To fix this, add the certificates to the JRE's trusted certificate store using these steps,
- Navigate to <product_installation_directory>/jre/bin.
- Open command prompt as an administrator.
- Execute this command:
keytool.exe -import -trustcacerts -alias "certAlias" -file "certPath" -keystore
..\lib\security\cacerts
In the command,
- certAlias - A name of your choice
- certPath - Path of the certificate.
- You will be prompted for a password. The default password is changeit. Provide the password and hit Enter.
- Restart the Product.
Management operations
Insufficient privilege to perform the operation
When REST API is enabled in the product, directory roles are required for the Azure application to perform privileged operations like reset password, block/unblock users, delete user, restore user, and hard delete user. For this purpose,
- Help desk administrator role can be assigned to update changes for non-administrators and other help desk administrators.
- Privileged authentication administrator or Global administrator role can be assigned to update changes for all users - administrators and non-administrators.
Contact your administrator for assistance.
Microsoft 365 user creation - Rest API Error - 403 Forbidden
This error usually occurs due to a lack of permissions for the user creation graph API. Refer to this link to learn about the required permissions.
Note: All the permissions should be granted admin consent. The steps are given below:
- Log in to the Azure AD portal using the credentials of the account for which the REST API is to be enabled.
- Navigate to Azure Active Directory > App registrations, and select the desired application name from the list shown.
- Select API permissions from the left pane and click the Grant admin consent for <your_company_name> option listed under the Grant consent section. Grant the necessary permissions as required.
Report generation and tenant configuration
To test the connectivity to Microsoft 365
- To test the connectivity of your Office 365 environment using PowerShell, follow the steps listed here.
Open Session Failure/Connection Error
This error occurs when a PSSession could be opened successfully. To fix this, execute the Office365Troubleshoot.ps1 script file by following these steps.
Permission Denied
Follow these steps to fix this.
Operation Stopped
Some possible reasons and the steps to fix them.
- MSOnline module might have some compatibility issues.
- To check your module version run this script:
(Get-Item C:\Windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.Online.Administration.Automation.PSModule.dll).VersionInfo.FileVersion
- If the version is higher than the suggested version, uninstall the module and install the compatible module using the below command
- Open PowerShell as Administrator.
- Install the MSOnline module using this command:
- Install-Module -Name MSOnline -Force
- If the version matches, try reinstalling the module.
- Microsoft Online Services Sign-in Assistant may not be ready yet. To restart the service:
- Type services.msc in Run and hit enter.
- Find Microsoft Online Services Sign-in Assistant, right click and select restart.
- This error may arise due to credentials without sufficient permissions when the product is installed as a service. To resolve this, try using Domain User account as a Service Logon account. To do this:
- Type services.msc in Run and hit enter.
- Right click ManageEngine ADManager Plus and select Properties.
- Select Log On tab.
- Select This Account and type the valid credentials.
- Click OK.
- If the problem still persists, run the Office365Troubleshoot.ps1 script file a
Steps to create a dedicated service account
- Log in to the Microsoft 365 portal.
- Navigate to Users → Active Users → Add a User.
- Create a new user by filling the mandatory fields display name and user name.
- In the password section, select Let me create the password and enter a password for the user account.
- Uncheck the Make this user change their password when they first sign in.
- In the product licenses section, select Create user without product license.
- Click Save.
- Use this account to configure your Microsoft 365 tenant in ADManager Plus.
If the problem persists, contact support@admanagerplus.com.