Forum Discussion
AD Connect threw an exception Powershell 7
- Aug 20, 2024
Hi, Leon.
I'd expect - given its age - that the AAD Connect modules were not authored with PowerShell in mind (as distinct from Windows PowerShell, which is what they would have been targeting).
There's many first-party modules which fit this profile.
Try running your Import-Module like this instead.
Import-Module -UseWindowsPowerShell -Name ADSync;
This will allow it to leverage the .NET Framework rather than only what's available in .NET Core.
Cheers,
Lain
Hi, Leon.
I'd expect - given its age - that the AAD Connect modules were not authored with PowerShell in mind (as distinct from Windows PowerShell, which is what they would have been targeting).
There's many first-party modules which fit this profile.
Try running your Import-Module like this instead.
Import-Module -UseWindowsPowerShell -Name ADSync;
This will allow it to leverage the .NET Framework rather than only what's available in .NET Core.
Cheers,
Lain
- LeonWGAug 20, 2024Copper Contributorruns perfect thanks for the quick response