Powershell Commands - Legacy vs Windows

I have a Powershell script running an extract using the Get-ADUser -Filter * -Properties etc etc which runs fine under Legacy

However, when I try and run this same script under Windows I get the error - Invoke Power Shell: The ‘Get-ADUser’ command was found in the module ‘ActiveDirectory’, but the module could not be loaded. For more information, run ‘Import-Module ActiveDirectory’.

The command also runs in Powershell ISE without any issues

Any help appreciated

Hi @gary.cobden

Try this

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.