Finding Managed Service Accounts per Computer
This topic explains how to use the Active Directory module for Windows PowerShell to find managed service accounts that are installed on each computer.
Example
The following example demonstrates how to find the managed service accounts that are installed on the computer SQL-Server-1:
Get-ADServiceAccount –Filter {HostComputers –eq “SQL-Server-1” }
Get-ADServiceAccount –Filter {HostComputers –eq “SQL-Server-1” }
Additional information
In addition to the standard Lightweight Directory Access Protocol (LDAP) attributes, you can retrieve the following extended properties of the Get-ADServiceAccount cmdlet by using the -Properties parameter:
- HostComputers
No comments:
Post a Comment