Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The term 'Get-ADRootDSE' is not recognized as the name of a cmdlet #112

Open
mrdevops100 opened this issue Apr 17, 2024 · 2 comments

Comments

@mrdevops100
Copy link

Hi Team,

When I m using any of the examples I get the following error.

I also installed the ActiveDirectory module on AD but still no luck.

The term 'Get-ADRootDSE' 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.

@mrdevops100
Copy link
Author

Name: microsoft.ad.group module

@jborean93
Copy link
Collaborator

When you say you've installed the ActiveDirectory module on AD do you mean the domain controller. Is this the same host as what you are targeting in Ansible or a different host? Just to be clear the ActiveDirectory module requirement is one for the Windows host Ansible is talking to not the domain controller.

Can you do the following as a test to see if it can import the module on the same target host.

- ansible.windows.win_shell: Import-Module ActiveDirectory -ErrorAction Stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants