Adding Network Service account (hostname$) to a security group via powershell

Highlighted
New Contributor

Hi Team,

 

Would anyone know how you can add hostname$ via powershell to a security group?

 

Greatly appreciate the help

 

Thank you

1 Reply
Highlighted

@John Cilluffo 

 

If you looking to add in Active Directory security group, you can use the below command.

ADD-ADGroupMember "SecurityGroup" –members "hostname$"