LANDesk script to remove Mac OS X accounts

Version 1

    How to remove Mac OS X accounts useing LANDesk to schedule this task through a script.

     

     

    Create a script file with following commands:

     

    [MACHINES_MAC]
    
    
    REMEXEC0=nicl . -delete /users/username
    REMEXEC1=nicl . -delete /groups/admin users username
    REMEXEC2=nicl . -delete /groups/username
    REMEXEC3=rm -r /Users/username
    

     

    *Case sensitivity is is needed for the REMEXEC (needs to be all CAPS) commands and the paths used.

    Save the file as an .ini file to the LANDeskManagementSuiteScripts directory

     

    </div>