Forum Discussion
John Cilluffo
Oct 22, 2019Copper Contributor
Adding Network Service account (hostname$) to a security group via powershell
 Hi Team,     Would anyone know how you can add hostname$ via powershell to a security group?     Greatly appreciate the help     Thank you 
Kevin_Morgan
Oct 26, 2019Iron Contributor
If you looking to add in Active Directory security group, you can use the below command.
ADD-ADGroupMember "SecurityGroup" –members "hostname$"