I hope I can explain myself well :)
I'm trying to create a script that will allow me to create AD computer name in a specific OU, and then add a Security group to this computer, under the "security" tab, so only few people would be able to add this computer into the domain. The problem is I only manage to add the computer to a group, and not to give the group premisions over it.
Where it says "insert path here" I put the AD path, but I can't write it here, because it's classified
Import-Module ActiveDirectory New-ADComputer -Name "test1" -SamAccountName "test1" -Path "insert path here" Add-Acl -Name "test1998" -Path "insert path here"