+ Post New Thread
Results 1 to 3 of 3
Windows Thread, Unshare/delete multiple home folders in Technical; Hi, I currently have a large number of users to be deleted, all with home folders on various servers. The ...
  1. #1

    Join Date
    Sep 2010
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Unshare/delete multiple home folders

    Hi,

    I currently have a large number of users to be deleted, all with home folders on various servers. The issue is, when the ID's are deleted from AD, the home folders have to be unshared and removed manually.

    At the moment, the only solution is to do a dump of the home drive locations (using the Hyena application), connect to each server through "Computer Management", unshare the home drive, and manually delete the folder.

    Is there any tool that can do this, or any other way to automate this process?

    Cheers.

  2. #2
    Azhibberd's Avatar
    Join Date
    May 2008
    Location
    Newbury,Berkshire
    Posts
    169
    Thank Post
    20
    Thanked 21 Times in 20 Posts
    Rep Power
    16
    Well you can remove the share remotely using "net share sharename \\computername" so if you have a list of usernames to delete you could use excel with the command to unshare it and then delete it

  3. #3

    Join Date
    Oct 2008
    Posts
    67
    Thank Post
    1
    Thanked 9 Times in 6 Posts
    Rep Power
    14
    Nice little script...

    REM Script to de-share all sub-folders within a folder
    REM Use when deleting a student year group

    REM Set folder before use!!

    FOR /D %%I IN (F:\USERDATA\STUDATA\HDRIVES\2009\*) DO NET SHARE %%~nI$ /DELETE

    REM Follow up with RMDIR /S F:\USERDATA\STUDATA\HDRIVES\2009

SHARE:
+ Post New Thread

Similar Threads

  1. How do you UnShare individual student home folders?
    By ninjabeaver in forum How do you do....it?
    Replies: 1
    Last Post: 18th August 2010, 10:28 PM
  2. Replies: 0
    Last Post: 29th August 2009, 12:39 PM
  3. Mass Delete Users Home Folders
    By Techie101 in forum Windows Server 2000/2003
    Replies: 4
    Last Post: 13th July 2009, 03:26 PM
  4. Replies: 5
    Last Post: 9th March 2008, 12:15 AM
  5. Replies: 15
    Last Post: 19th September 2007, 10:46 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •