Can I Get All Service Accounts from Active Directory Domain?

by [Published on 2 Sept. 2015 / Last Updated on 2 Sept. 2015]

Tip explains use of Get-ADServiceAccount PowerShell cmdlet to get a list of service accounts from an Active Directory Domain.

Active Directory PowerShell module provides an easy way to get a list of service accounts from an Active Directory domain. You can use Get-ADServiceAccount PowerShell cmdlet to do so.

  • Get-ADServiceAccount -Filter {HostComputers -eq "CN=MyServer1, DC=Test, DC=Local" }

About Nirmal Sharma

Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services and Windows Networking. He is specialized in Directory Services, Failover cluster, Hyper-V, System Center, Windows Azure, and Exchange Servers and has been involved in Microsoft Technologies since 1994. In his spare time, he offers technical help by writing tips and articles on several web sites. Nirmal can be reached at nirmal_sharma@mvps.org.

See Also


The Author — Nirmal Sharma

Nirmal Sharma avatar

Nirmal Sharma is a MCSEx3, MCITP, and was awarded Microsoft MVP in Directory Services. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles for various online communities. Nirmal can also be found contributing to PowerShell based Dynamic Packs for ADHealthProf.ITDynamicPacks.Net solutions.

Featured Links