Question

When I do following i get sid. How do i get the account name (domain\svc-search) etc.

foreach($ma in get-spmanagedaccount)
{
    write-host $ma
}
Était-ce utile?

La solution

Try below code

foreach($ma in get-spmanagedaccount)
{ 
 write-host $ma.DisplayName
 write-host $ma.UserName
}

Autres conseils

This will do it:

foreach($ma in Get-SPManagedAccount){$ma.UserName}
Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top