From b770af57d71d316c17ca0f90dc403b29537b904b Mon Sep 17 00:00:00 2001 From: PierreGode <8579922+PierreGode@users.noreply.github.com> Date: Tue, 9 Aug 2022 09:26:45 +0200 Subject: [PATCH] Update MacOS.sh --- MacOS.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MacOS.sh b/MacOS.sh index 6523d3b..c64cd52 100644 --- a/MacOS.sh +++ b/MacOS.sh @@ -10,8 +10,8 @@ DOMAIN=$(test.com) ## Domain admin=$(admin) ## AD admin //Note this user can med active directory admin or a user with permission to join domain. pass=$(password) ## AD admin pass //Note this row is NOT encrypted, coution using this, password might be stored in logs. 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=$(OU=Computers Mac,DC=domain,DC=com) ## desired OU were the computer object is created +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=$(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