Вопрос

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
}
Это было полезно?

Решение

Try below code

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

Другие советы

This will do it:

foreach($ma in Get-SPManagedAccount){$ma.UserName}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top