• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Mobile account home folder change Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mobile account home folder change Script


  • Subject: Mobile account home folder change Script
  • From: Adam Alotaibi <email@hidden>
  • Date: Wed, 6 Jan 2010 14:12:57 -0800
  • Acceptlanguage: en-US
  • Thread-topic: Mobile account home folder change Script

I need to make a script to automate the following. Also is there a way to pull the info for the user logging on and input this in the script? Thanks for the help!

 

 

 

1. On your Mac OS X computer, log in as a local administrator. Open System Preferences and click on the accounts preference pane.

 

2. Click the lock in the lower left corner to authenticate as a local admin.

 

3. Choose mobile account that you wish to migrate.

 

4. Click the Remove (-) button in the lower-left corner.

 

5. When prompted, leave the default selected, “Don’t change the home folder,” then click OK.

 

6. If the short name of the user differs from the short name of the Active Directory user, change the name of the home folder. The following command changes the name of the home folder from the local user short name “test (Deleted)” to the Active Directory user name “test”:

 

IT$ sudo mv “/Users/test  (Deleted)” /Users/test

 

7. Change the ownership of the files in the preserved home folder so that the Active Directory user is the new owner. Open Terminal and issue the chown (change ownership) command, which takes the form of

 

IT$ sudo chown -R test:“new domain\domain users” /Users/test

 

8. Log out as the local administrator account, and then log in as the Active Directory account.

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Scripting Additions
  • Next by Date: painless migration to snow leopard:-)
  • Previous by thread: Re: Scripting Additions
  • Next by thread: painless migration to snow leopard:-)
  • Index(es):
    • Date
    • Thread