Announcement

Collapse
No announcement yet.

Deleting users and their home drives

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    Re: Deleting users and their home drives

    The best thing to do is add this to your batch file:

    REM echo 1=%1
    REM echo 2=%2
    REM echo 3=%3
    REM echo 4=%4
    REM echo 5=%5
    REM echo 6=%6
    REM echo 7=%7
    REM echo 8=%8
    REM echo 9=%9
    pause

    Then delete a test user, and the above will echo the values to the screen so you can see what they equate to.

    Here is a sample that you can experiment with that uses the rmtshare.exe utility:

    @echo on
    if %1 == ADD goto ADD
    if %1 == MODIFY goto MODIFY
    if %1 == DEL goto DEL
    goto END

    EL
    rmtshare \\%5\%6 /DELETE
    rd \\%5\E$\users\%3
    goto END

    :ADD
    goto END

    :MODIFY
    goto END

    :END

    Leave a comment:


  • Wayneh
    replied
    Re: Deleting users and their home drives

    Hi,

    I to am trying to delete mumtiple home dirs but the correct syntax is eluding me for the post batch procedure any help would be much appreciated. The home dir are on the path \\servername\sharename$\username.

    thanks

    wayne

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Re: Deleting users and their home drives

    Not bad, thanks guys.

    They want to delete like 2000 users, so we're having a dig on the batch thing.

    Cheers!

    Leave a comment:


  • kstanush
    replied
    Re: Deleting users and their home drives

    To get Hyena to automatically display the home directory management dialog when deleting users, go into Tools->Settings->User and enable the option "Show User Profile Manager when deleting users".

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Re: Deleting users and their home drives

    You can do this individually by right-clicking and choosing Account Functions->Profile/Home Directory Admin. For multiple users you'll need to create a post user batch procedure to do this. There are some examples of this in the help file and on this board. Let us know if you have trouble figuring out how to set that up.

    Leave a comment:


  • Guest's Avatar
    Guest started a topic Deleting users and their home drives

    Deleting users and their home drives

    Did a search and didnt find any results, sorry if this has been posted before.

    We are currently going through thousands of users and deleting accounts etc.

    Does Hyena have a feature to delete the home drive too when deleting accounts? Just tested in 6.0 "D" and it didnt prompt me and the home drive was still there.

    I think this would be a usefull feature, and possibly not too difficult to implement (considering Hyena will rename the Home drive if you rename the user).

    Thanks.
Working...
X