When using the Invoke PowerShell activity in Studio, why can't we import the AD module into PowerShell?
Issue Description:
When using Invoke PowerShell activity in Studio to import AD module in PowerShell, it fails with the following Error message
'Invoke Power Shell: The following error occurred while loading the extended type data file'
When this occurs in a Windows server machine, there is a possibility that the AD module is not installed on the Server.
Resolution: Follow the below steps to install it,
- Open Server Manager rom Windows Start Menu. Click on "Manage" in the top menu, and then "Add roles and features"
- In the prompt window follow the path to > Role Administration Tools > AD DS and AD LDS > Active Directory module for Windows PowerShell and make sure it is enabled, install it if it is not yet.
- When the installation is successful, retry the PowerShell script.