I know using the AD module for powershell that we can retrieve domain computers details and export them as csv. My domain is in AWS Directory Service, and I have a computer under this domain. I tried Get-ADComputer
, but it shows this error:
Get-ADComputer : Unable to find a default server with Active Directory Web Services running.
Is there another way that I can retrieve a domain computer's list in AWS Directory Service domain?
Simple AD from AWS Directory Service doesn't support communication via PowerShell. This is because Simple AD is based on Samba4 which, in turn, doesn't support communication via PowerShell directly.
As mentioned in another thread, you can use the AWS APIs to do some basic operation like describing directories you currently have running in AWS from PowerShell cmdlets, but you can't actually query computers in your directory.
You'll have to use different directory administration tools to manage your Simple AD. You'll find more information in the documentation for AWS Directory Service about how to manage your directory with additional tools. http://docs.aws.amazon.com/directoryservice/latest/adminguide/directory_management.html
AWS has their own set of cmdlets for the AWS Directory Service that you may be able to use in concert with the AD module.
Of particular interest is Get-DSDirectory, which returns a DirectoryDecription object with the property
AccessUrl
for the directory.