From 5ca383ecaccca2eaf25420d9b075afb3d1da4aa9 Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Thu, 16 Apr 2020 12:06:57 +0200 Subject: [PATCH] Update MacOS.sh --- MacOS.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MacOS.sh b/MacOS.sh index ebdfa05..1c9a99e 100644 --- a/MacOS.sh +++ b/MacOS.sh @@ -11,7 +11,7 @@ admin=$(admin) ## AD admin pass=$(password) ## AD admin pass adgroup=$(whatevergroup) ## this is to give admin privileges to a group in the active directory ex: MacAdmins ADcomputer=$(MACagent01 ) ## desired computer object name ( this will only be the name of the computer object in Active Directory, hostname is still the same as default) -OU=$() ## desired OU were the computer object is created +OU=$(OU=Computers Mac,DC=domain,DC=com) ## desired OU were the computer object is created sudo dsconfigad -add $DOMAIN -mobile enable -mobileconfirm disable -localhome enable -protocol smb -shell '/bin/bash' -username $admin -password $pass -groups $adgroup -computer $ADcomputer -ou $OU sudo dsconfig -show