Using ARD to change user accounts

Hi,
I would like to find out whether are there any way if i could use the unix command or script files to change the username and password? Would appreciate if you anyone could assist me? Are there any recommended textbook for apple scripting or apple remote desktop software?
Thank you!
Cheers,
Steph

Hi,
I have created a script to change other functions of remote macs. So this version is an adaptation of my script to your needs. Note that I am changing the admin password. For other user just change the admin name and password accordingly.
Let me know if you need further assistance.
Start of Applescript------
property my_ip : ""
property my_password : "the admin password"
property new_password : "the new admin password"
tell application "Remote Desktop"
-- this is a fixed group of macs that should be added or deleted as needed in ARD
set the_list to computers in computer list "to change"
repeat with i from 1 to number of items in the_list
set this_item to item i of the_list
-- if mac offline skip it
if the status message of this_item is "Available" then
set my_ip to Internet address of this_item
-- log as admin into remote mac
set my_log to "ssh admin@" & my_ip
tell application "Terminal"
activate
-- log as admin
do script my_log
-- there is in some cases the security issue.
-- RSA key fingerprint is ... Are you sure you want to continue connecting (yes/no)?
delay 3
do script "yes" in window 1
delay 3
-- enter the password
do script my_password in window 1
-- do whatever in the remote mac, in this case change admin password
do script "passwd" in window 1
-- Ternimal asks fro existing password
do script my_password in window 1
delay 2
-- Enter new password twice
do script new_password in window 1
delay 2
do script new_password in window 1
delay 5
-- close connection to remote mac
do script "exit" in window 1
end tell
end if
end repeat
end tell
----------end -------
Regards
Mauricio

Similar Messages

  • Using ARD to change user settings

    I was wondering if it was possible to use ARD to change the desktop background for all users? This kinda turns into two questions for me since I know nothing about Macs. First, is there an "all users" settings type thing at all, if so where? Second, is there some sort of config file that would store the location of the desktop background so I could eventually copy a new background to a location and change that file to point to the new file, thus upgrading the desktop background?

    Hi,
    I have created a script to change other functions of remote macs. So this version is an adaptation of my script to your needs. Note that I am changing the admin password. For other user just change the admin name and password accordingly.
    Let me know if you need further assistance.
    Start of Applescript------
    property my_ip : ""
    property my_password : "the admin password"
    property new_password : "the new admin password"
    tell application "Remote Desktop"
    -- this is a fixed group of macs that should be added or deleted as needed in ARD
    set the_list to computers in computer list "to change"
    repeat with i from 1 to number of items in the_list
    set this_item to item i of the_list
    -- if mac offline skip it
    if the status message of this_item is "Available" then
    set my_ip to Internet address of this_item
    -- log as admin into remote mac
    set my_log to "ssh admin@" & my_ip
    tell application "Terminal"
    activate
    -- log as admin
    do script my_log
    -- there is in some cases the security issue.
    -- RSA key fingerprint is ... Are you sure you want to continue connecting (yes/no)?
    delay 3
    do script "yes" in window 1
    delay 3
    -- enter the password
    do script my_password in window 1
    -- do whatever in the remote mac, in this case change admin password
    do script "passwd" in window 1
    -- Ternimal asks fro existing password
    do script my_password in window 1
    delay 2
    -- Enter new password twice
    do script new_password in window 1
    delay 2
    do script new_password in window 1
    delay 5
    -- close connection to remote mac
    do script "exit" in window 1
    end tell
    end if
    end repeat
    end tell
    ----------end -------
    Regards
    Mauricio

  • Changed user account name and moved to OSX Yosemite. Apps still work, but cannot download new apps or updates.

    I recently moved to a new MacBook Air with a physically larger hard drive. I had a coworker move over all of my software and data, and everything seems to be playing nicely. All of the current apps I have in place like Photoshop and Illustrator are working just fine.
    Unfortunately when I try to download other apps in Creative Cloud it just shows Download Error. I tried reinstalling Creative Cloud, which did nothing.
    I should note that when I moved to the larger machine I changed user account names. Whenever I try to use FileSync, it says it is looking for a folder in the old user account folder. This occurs even after trying to change where that folder is in the Preferences.
    Additionally I have updated from Mavericks to Yosemite. I do not know what effect that had.
    Any insight how to restore my ability to get downloads and updates? Or perhaps how to fix my FileSync?

    I think I have it resolved by uninstalling everything and running the cleaner per these instructions: Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Keeping iTunes playing when changing user account

    Hi,
    I would like to setup a "music" account on our family iMac to select music from within iTunes and send it to our sound system. I'm tired of always having to reshelf CDs!
    But for this to work, we need to be able to switch to our own account when we want to use the iMac while iTunes continue playing to the sound system. I did not find any option that may allow me to do this and right now it stops playing as soon as we switch to another account using "fast user switching".
    We have Snow Leopard and iTunes 10.0.1.
    My other option is to buy a second hand iPod to do this, but I hesitate buying one just for this when my iMac seems perfectly able to handle the task.
    Thanks in advance,
    Denis

    Thank you very much Tom.
    It seems AirTunes has been renamed AirPlay. It is not stated that it will keep playing even when I change user account, so I am glad you were able to provide this bit of information. Your suggestion to get an Airport Express appears to be the most realistic and cheap option. As for the AppleTV, it would have been more versatile (music to my sound system, video content to my TV via HDMI), except that my sound system is very old (but still works well) and has no optical audio in, which is the only audio output option for an AppleTV, if I understand well.
    It would have been nice though to have the audio out of the mac connected into my sound system and just tell iTunes to keep playing music in the background even when changing user.
    Denis

  • ***How to use Java to change user password in *mdw file?

    Hi,
    Is it possible to use java to change user's password in the MS Access workgroup file(*mdw)? I have been searching for this topic for a long time, but no discoveries yet. Anyone has any idea?
    Sincerely,
    nonameisname

    There is probably a windows API call that does it.
    Once you find it, you wrap it in C code and then use JNI to call it from Java.

  • I have bought used I phone 4s. I cloud fails to accept my apple ID, which is accepted by I tunes. In fact it says that I have used maximum number of user accounts. Kindly help me in this matter.

    I have bought used I phone 4s. I cloud fails to accept my apple ID, which is accepted by apple store and I tuned.
    It says that I have already used maximum number of user accounts. Kindly help to resolve this problem.

    Hello Renvin29,
    It sounds like you need to disable your iPhone remotely. I'm sorry to hear about your phone! The only way to do this with is Apple services is if you had Find my iPhone enabled. You have 2 options:
    You can use this article to put the phone into Lost Mode and preserve your data on it, but prevent access to it:
    iCloud: Use Lost Mode
    http://support.apple.com/kb/PH2700
    Or you can just erase it remotely outright:
    iCloud: Erase your device
    http://support.apple.com/kb/PH2701
    You should also take a look at this article for additional info on what to do about this situation:
    If your iPhone, iPad, or iPod touch is lost or stolen
    http://support.apple.com/kb/HT5668
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • Cannot add/ change user account - error with Microsoft-Windows-User Profiles Service

    Hello
    A few days ago my computer went wierd.
    I cannot update windows because I get no results when I use "Windows Search"
    My metro UI doesnt work properly. I cannot use it. 
    Somebody said that it could be that my User Account could be corrupted.
    I tried to create I new one, but I could do the first steps, because the computer doesnt respond when I click "Change my account" in controlpanel.
    I get errorlogs like this:
    Loggnamn:      Application
    Källa:         Microsoft-Windows-User Profiles Service
    Datum:         2015-04-29 12:03:16
    Händelse-ID:   1542
    Aktivitetskategori:Ingen
    Nivå:          Fel
    Nyckelord:     
    Användare:     SYSTEM
    Dator:         Baddarn
    Beskrivning:
    Det går inte att läsa in registerfilen för klasser.
     INFORMATION - The system cannot find the file specified.
    Händelsens XML-data:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
        <EventID>1542</EventID>
        <Version>0</Version>
        <Level>2</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2015-04-29T10:03:16.571099200Z" />
        <EventRecordID>91382</EventRecordID>
        <Correlation />
        <Execution ProcessID="1128" ThreadID="2524" />
        <Channel>Application</Channel>
        <Computer>Baddarn</Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <EventData>
        <Data Name="Error">The system cannot find the file specified.
    </Data>
      </EventData>
    </Event>
    What can I do?

    Hi Intesabra,
    Have you made any modifications to the machine before the issue?
    First of all ,I would suggest you to update the machine manually.
    Control Panel\All Control Panel Items\Windows Update\Check for updates.
    I also suggest you to perform a full scan with the antivirus software to eliminate the virus issue considering this issue is a little wierd. We can do this in safe mode to improve the scanning quality.
    Run "services.msc" to check the status of "User Profiles Service" and ensure it is running.
    Run "dism /online /cleanup-image /restorehealth" or "sfc /scannow" to check the health of the whole system files.
    Considering this issue occurred recently, we can perform a system restore to recover the machine to a previous point.
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Changed User Account to Administra​tor ... now it's Password Locked

    I changed my account type from regular to administrator using the administrative DOS command:
    NET USER myuserid ADMINISTRATOR/ACTIVE:YES
    The prompt returned saying the command was successfully executed.   I noticed that my account was still listed as regular, so I restarted the system.  Now I am locked out!  Apparently it has a default password.
    I did not use a password with this (myuserid) account, so I cannot understand why it requires one now.     Does anyone have any idea what password it is looking for?  Please, how do I fix this?
    [Personal Information Removed]
    This question was solved.
    View Solution.

    Hi,
    Without using any password recovery software, did you try following the "How To Reset a Windows 8 Password" procedure listed in the article posted above. It is through Access Advanced Startup Options - Command Prompt.
    If that didn't work, may be someone else may help you. I don't know any other options other than what I suggested unfortunately.
    Regards
    Visruth
    ++Please click KUDOS / White thumb to say thanks
    ++Please click ACCEPT AS SOLUTION to help others, find this solution faster
    **I'm a Volunteer, I do not work for HP**

  • View/Change User Accounts From Across The Network - Do not have Server

    Is there a program or utility that can be run in Mac OS X Tiger or Leopard to manage user accounts on other Macs that are located across the network? Is there anything that will do this that is free, or not too much money?
    Our setup: multiple Macs on a network that is primarily a Windows AD Domain. For various reasons, we do not have the Macs setup as members of AD. We also do not have a Mac OS X Server. I am wondering if there is something that is built-in, free, or on the cheaper-end, to manage user accounts and their permissions from across the network on the Macs?
    Thank you for your help!
    Dan

    If the systems are not bound to a parent domain, then local account policy will need to be set individually. There is a way to get Workgroup Manager working on OS X client, but I do not know of a way for it to see remote NetInfo/DS Local data stores. It will only see the local store. NetInfo in the 10.2 days could pull this off. But Apple removed those features in favor of LDAP and eventually DS Local.
    You will probably need to use a combination of tools. Start with defining base settings in the User Template to ensure that all new home folders are created equal. Then use ARD or ssh to define user policy with pwpolicy and other tools like niutil (Tiger) or dscl. Test with mcxquery. If you get Server Admin Tools, you can use Workgroup Manager to craft the needed xml for mcx values, then inject into the user account.
    But this is only going to get you local policy. If users are connecting to file shares and mail, they are using their network credentials so those policies need to be managed at the domain level.
    I would encourage binding the machines to the domain. While this can, and has (sadly), been done, being part of the domain is so much easier. If you need a system for storing the LDAP schema, get a Mini and do it on the cheap. Otherwise, consider AD schema modification and then practice your xml skills.
    Hope this helps

  • Change user account in snow leopard server??

    Trying to change a user account picture in snow leopard server. Have couple computers that are on snow leopard and it uses the the network server that has all the login in. I can't change the user icon within system prefernces. Please help me!

    There are server user accounts and computer user accounts. System Preferences is for creating and managing computer user accounts. Server Preferences and Workgroup Manager are for creating and managing server user accounts. If you created the account in System Preferences, you won't be able to manage it with Server Preferences or Workgroup Manager.

  • ITunes in iPhone - change user - account

    Hi. I have in me iPhone direct me old account in iTunes. I am not undrestand, why, because this old I am not use now . This is direct in iPhone-iTunes , and I dont know , from where .......but I have new account in ITS now and I am would like buy direct for iPhone music and video be this me new account. What can I change user in iPhone for using be me new account?

    when you are in itunes, it should be in the top right hand corner, if you are not logged in there will be a login button if you are it shows your email address. click on that and it will take you to the account manager. make sure you press the Done button when you are done updating the information.
    refer to the screen shot:
    http://img208.imageshack.us/img208/7830/itunesak2.jpg

  • I changed user account and now Time Machine won't back up.

    A few months ago I had a problem with my user account. I can't remember the details but i think it would no longer accept my password. After doing some hunting around for answers i made a new user account with administrative priviledges and transferred all the files over to that account. I also changed the permissions on those files to allow me to access them as a new user identity. For the most part that seems to have worked for me, although possibly i have not done the right thing.
    Anyway, i have just realised recently that although the little circular arrow that indicated that Time machine is backing up my files, it hasn't actually made a backup since the end of august, which was possibly when i did this funny thing with my user account.
    I am assuming that Time Machine has just got very confused about the disappearance of my files from the previous user account and change of permissions etc.
    What can i do? I read on 'pondini.org' that i could reset my time machine by deleting the preferences file from my system library and then rehooking up my external hard drive as the desired backup volume. It would then, i assume make a full backup to begin with?
    Any advice gratefully received. I am a graphic designer and i do need to have my files backed up!
    thanks
    Lesley
    ps i had some extra  RAM installed a little while before the user account problem and only mentioning it here in case that is an issue with Time Machine as well.

    Hi Lesely, sadly the great pondini has passed away.
    Have you looked through Pondini's extensive TM help site?
    http://Pondini.org/TM/FAQ.html
    http://pondini.org/TM/Troubleshooting.html
    Can't imagine something not being covered there.

  • How to change user account's Short Name

    Hopefully this is a fairly simple question.
    When I installed OX 10.3 I mispelled my short name, and now I'm can't find how to change it.
    Reffering specifically to: System Preference>Accounts>Short Name
    It's not super important, but would be handier to have it displaying correct for networking.
    If anyone can let me know how to change the short name, and any issues that may result from changing it, it would be great.
    Thanks for any input

    Hi baobhanjex!
    Here is a direct link that usually works, to the utility ChangeShortName by Dan Frakes.
    Read all of the instructions carefully, and proceed cautiously, as an improper change can result in unwanted results.
    Such as;
    Return to Default Desktop, Apparent "Loss" of Home Directory
    Mac OS X 10.3 Help: My home folder and desktop are different than before
    Also, here is a KB Article on How to change user short name or home directory name.
    ali b

  • Why can't i use mail in other user accounts? (the mail icon is a ? mark)

    My user account is the main administrator account, .... but i have other family members that are at that age that they want to use their own account with their own mail account. However, .... under those other accounts, .... the mail icon in the dock is a question mark.
    I believe i checked the appropriate check boxes under administrator to allow other apps to be used by other accounts but i am not 100% of this... please help...thanks

    Did you move the location of the Mail app? 
    Within the other accounts navigate to Macintosh HD > Applications > Mail. Double click. Then select the dock, choose the hawk's wings icon and right click and choose "Keep in Dock".
    mrtotes

  • Change user account picture

    I have just purchased a Toshiba P755 and have tried to change the user account picture. This has turned out to be a major problem. I have created an additional administrator account to fix the problem, but even this did not work. I have Windows 7 Home Premium 64 bit.
    The problem is, when I select a new user account picture and select the change  picture option, I get an error message: "This action cannot be performed due to an account restriction. Please contact your administrator."
    Unfortunately, I am the administrator.
    Does anyone know how to fix this problem?
    Solved!
    Go to Solution.

    I have never been able to change the picture.  ...  I was able to change it in Safe Mode.
    Maybe something you added before you first tried.
    Can you do it after booting clean?
       1. Open the System Configuration utility (msconfig.exe).
       2. On the General tab, click Selective startup and clear the Load startup items check box.
       3. On the Services tab, click the Hide all Microsoft services check box and click Disable all.
       4. OK out and restart the computer.
    -Jerry

Maybe you are looking for

  • Change history of User for Business Partner Number attaching and removing

    Hi Experts Is there any t-code in SRM which will show change history of User for Business Partner Number attaching and removing. Thanks-- Guru Prasad Dwivedi

  • GOP / UEFI Vbios requests for MSI R9 270 Gaming 2G

    Hello!!! S/N:602-V305-010B1402012448 Current VBios:_https://mega.co.nz/#!DMBUURwQ!IhA5wTvUfQTW7tqckfAFO6uiPTNxmbaiHORnHi9 FilM Thx!

  • App Store Categories error

    Whenever i go to app store and go into categories all the options have the skype icon and say app store. I have done a reset and a full restore neither of which fixed it. I phoned apple support and they had no idea how to fix it, they told me the bes

  • Form submitted via Email

    Hi, I am using a MS SQL database and ASP. I have a client that wants to send out an email to potential auction donors and have the form to donate an auction item right in the email (so not a link, but the actual form) and then they want the donors to

  • JTree - sorting without collapsing

    i have a JTree which represents data stored in my data layer. if this data changes, i do not only have to update the view part in the tree but also resort it to certain criteria. as far as well, this works fair enough, my problem is, that with every