Update MacOS.sh

This commit is contained in:
PierreGode 2020-04-16 12:06:57 +02:00 committed by GitHub
parent 2240eccf89
commit 5ca383ecac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ admin=$(admin) ## AD admin
pass=$(password) ## AD admin pass pass=$(password) ## AD admin pass
adgroup=$(whatevergroup) ## this is to give admin privileges to a group in the active directory ex: MacAdmins 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) 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 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 sudo dsconfig -show