mirror of
https://github.com/PierreGode/Linux-Active-Directory-join-script.git
synced 2025-12-21 08:50:12 +01:00
Update MacOS.sh
This commit is contained in:
parent
abda3455db
commit
2240eccf89
2
MacOS.sh
2
MacOS.sh
@ -10,7 +10,7 @@ DOMAIN=$(test.com) ## Domain
|
||||
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=$() ## 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
|
||||
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user