Removing User Profiles in Windows 7
Hello everyone,
I was wondering how everyone has been dealing with the removal of user profiles on Windows 7. We have some machines on campus that have 100+ user folders from domain-users logging in. How does everyone handle removing these? We tried setting the GPO to remove accounts that are older than X amount of days however, that didn't work as I believe our anti-virus (Sophos) accesses the user folders keeping them from having a date that's older than so many days.
1 Comment
[ - ] Hide Comment
Answer this question
or Comment on this question for clarity
Answers
With larger drives we haven't had too many problems like this lately but from time to time do still use delprof in our labs on Win7. The documentation states it isn't compatible but in my experience it works.
https://www.microsoft.com/en-us/download/details.aspx?id=5405
https://www.microsoft.com/en-us/download/details.aspx?id=5405
Please log in to comment
-
We actually changed from a startup script to deploying via group policy preferences this year. It has been working much better. No more command window pop ups on login, waiting on driver installs, etc.If you deploy via the user configuration you can set the default as well.
-
We use delprof2 also. I have scripts setup in KACE to run it nightly on our lab machines to delete profiles that haven't been used in over 7 or 30 days, depending on the lab.
-
-
I created a script with the following settings:
Type: Offline KScript
Dependencies: Upload delprof2.exe
Task 1:
Verify that the directory c:\users exists
I also have a verification that the computer name does not end in -inst as we do not want to delete profiles from instructor computers (faculty don't like that).
On Success:
Launch a program
Directory: $(KACE_DEPENDENCY_DIR)
File: DelProf2.exe
Wait for completion: checked
Parameters: /u /q /d:7 /ed:adminaccount /i
This deletes profiles that have not been used for seven days and excludes our local admin account from being deleted.
This script is scheduled to run every day at 3:10am and we assign the labels for the classrooms that we want the profiles to be cleaned. I have another script which is identical but deletes profiles that haven't been used for 30 days (/d:30).
-
-
Comments