4

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?

Anthony Neace
  • 1,011
  • 10
  • 18
serverstackqns
  • 722
  • 2
  • 16
  • 39

2 Answers2

5

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

user291544
  • 66
  • 1
  • Ok.. That makes sense. But does that mean there's no way to query directory service to list or show the domain joined computers (using any scripting language).? – serverstackqns Jun 01 '15 at 09:27
  • If you have a server that has the AD tools installed and joined to the domain then you can get the list of computers in your domain from powershell using : "dsquery computer" – Rajesh Feb 02 '17 at 16:56
0

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.

Anthony Neace
  • 1,011
  • 10
  • 18