I'm not an English teacher... I'm in the tech department. Sorry for any spelling errors. I'm not trying to have an attitude of any sort. I'm simply trying to get this figured out to make my job easier. So far I have to two ideas, which I'm not really happy with either.
Idea #1
@echo off
title HS list- local users
rd /s /q "c:\Documents and Settings\user1"
rd /s /q "c:\Documents and Settings\user2"
rd /s /q "c:\Documents and Settings\user3"
rd /s /q "c:\Documents and Settings\user4"
pause
exit
This would work, but it just isn't practical. Our district is very small but still have around 1,150 students. I can copy paste very quickly and would just have to delete Seniors and add 6Th graders every year. Also We have PCs ranging form Dell GX280's all the way down to Dell GX150's, which perform the long task way to slow because it is checking for every student even though the average PC only has between 2 and 3 hundred profiles.
Idea #2
@echo off
md "C:\Move_Here"
pause
rd /s /q "C:\Move_Here"
pause
exit
This idea is slightly more practical. Basically you run the script it creates the "move_Here" folder. You would then have to manually move all the user folders to it. Moving isn't all that slow compared to copying. Then it removes the "Move_Here" folder. Leaving my couple of folders that I need to keep. The biggest problem with this is having to manually move them witch I'm trying to reduce my interaction time with the script.
I should also add we used to just highlight the profiles we wanted to get rid of, then hit delete. Then we would have to empty the recycle bin which took an additional 10 minutes.
As you can see I have some scripting knowledge, but it's not advanced as I'd like. Also know that if I didn't have admin privileges, and I ran a script of this sort, it wouldn't let me delete them. It would say access denied. Once again, thanks for any help I get.