From 00020bf368a220b182c029faf308e8a42ee19f34 Mon Sep 17 00:00:00 2001 From: PierreGode Date: Tue, 25 Sep 2018 13:48:31 +0200 Subject: [PATCH] Update and rename MacOS to MacOS.sh --- MacOS => MacOS.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename MacOS => MacOS.sh (50%) diff --git a/MacOS b/MacOS.sh similarity index 50% rename from MacOS rename to MacOS.sh index 24e925d..d9cc39d 100644 --- a/MacOS +++ b/MacOS.sh @@ -1,14 +1,14 @@ -#this is a vary simple scipt to automate MacOS AD join +#this is a very simple scipt to automate MacOS AD join #Note that Apple is going away from AD #Recomended solution is Nomad https://nomad.menu/products/#nomad -# to automate ADjoin check the variables below and find a solution to get "next computerobject" +# to automate ADjoin check the variables below and find a solution to get "next computer object" -DOMAIN=$(test.com) ## Domain -admin=$(admin) ## AD admin -pass=$(password) ## AD admin pass +DOMAIN=$(test.com) ## Domain +admin=$(admin) ## AD admin +pass=$(password) ## AD admin pass adgroup=$(whatevergroup) ## this is to give admin privileges to a group -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) -OU=$() ## desired OU were the computer object is created +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) +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