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

Copper 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

@John Cilluffo 


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

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