Results 1 to 3 of 3
  1. #1
    Overclockix Snake Charming Senior
    Alt OS Content Editor
    Stratus_ss's Avatar
    Join Date
    Jan 2006
    Location
    Ontario Canada
    Posts
    3,868

    Net User... delete the home folder?

    so I have a batch script that deletes all the relevent users off a large amount of computers, the problem is that the home folder is not removed.

    This would not be a problem if windows just over-wrote the current folders but it doesnt. It leaves a big steaming pile behind.

    I used the rmdir command with the /s /q switches to delete them in the batch file, the problem is that every once in a while the bat file doesnt delete a user for some silly reason. So once in a while we end up with a machine that has

    bob
    jim
    sam
    sam.d102.home

    or some such silly thing, even with the rmdir command.

    I have been googling to find out if net user will remove the associated home dir but I haven't come up with anything.

    Anyone know a switch for netuser that will get rid of junk folders?
    The next time I run my script the problem just compounds (mostly because I am hard coding the script... i.e.
    Code:
    rmdir c:\doc\sam /s /q
    )
    so if the folder is same.d102.home I end up with 2 sam.d1xx.home folders instead of getting rid of everything
    HEAT
    Those wishing to contribute to the AltOS section front page please PM me.

    Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

    Chris Fisher "Windows is like Administration with training wheels"

  2. #2
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Posts
    2,065
    Wrong sub forum ...


    TRAITOR!


    And I'm a Linux noob so I don't know the answer to your inquiry.
    HEAT
    Motherboard --------- BIOSTAR TPower I45
    CPU ------------------- Intel E8600 @ 4GHz
    Memory -------------- 4GB Corsair Dominator DDR2 1066
    Cooling --------------- Thermalright Ultra 120 Extreme
    HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
    Graphics Card ------- MSI HD4870 OC Edition
    Soundcard ----------- Creative X-Fi Xtremegamer
    Case ------------------ Antec Nine Hundered
    Power Supply -------- OCZ ModXStream Pro 600W
    OS -------------------- Win 7 Pro x64, Mint Debian x64

  3. #3
    Overclockix Snake Charming Senior
    Alt OS Content Editor
    Stratus_ss's Avatar
    Join Date
    Jan 2006
    Location
    Ontario Canada
    Posts
    3,868
    its for work not for personal life
    HEAT
    Those wishing to contribute to the AltOS section front page please PM me.

    Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

    Chris Fisher "Windows is like Administration with training wheels"

Posting Permissions

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