Notices

Overclockers Forums > Software > Microsoft Operating Systems
Microsoft Operating Systems Microsoft Operating Systems and Applications
Forum Jump

Net User... delete the home folder?

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 12-03-09, 12:22 PM Thread Starter   #1
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
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"
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 12-03-09, 12:29 PM   #2
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
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
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 12-03-09, 12:32 PM Thread Starter   #3
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
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"
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Microsoft Operating Systems
Microsoft Operating Systems Microsoft Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 01:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?