Automatic profile removal in Windows 7
Hello, We have recently rolled out several new Windows 7 labs in our school district. Normally in XP we had a VBS script that removed profiles from the system, since we have several hundred students logging into these labs everyday, in order to keep the systems clean. The problem is that in Vista and now in Windows 7 this script will not work because of the advanced security in Vista/7 as compared to XP. This script just removes the folders under documents and settings during logon via the system account but if you try this in Vista/7, the next time the student happens to log into that computer it hangs because it can't locate the previous profile folders used and tries to use the default profile instead. As you can imagine this is unacceptable with the ammount of students we have logging in. I know there is a group policy that removes old profiles at a set ammount of days but the problem is an admin still needs to login for this to kick off. Does anyone know a way to automate profile removal in Windows 7 or if I can create a script that will automatically login an admin account at a specified time? Thanks! Tim
August 13th, 2010 4:18pm

http://www.faronics.com/en/Products/DeepFreeze/DeepFreezeEducation.aspx I've seen it used quite successfully in situations such as your own. It resets the entire system to a default image at every boot, deleting all files except for thawed drives. (documents etc) Prevents virii from taking hold of a system (a simple reboot cleans it out) and a code allows you to thaw the main drive whenever needed to make system changes and then save them again.
Free Windows Admin Tool Kit Click here and download it now
August 14th, 2010 4:55am

Hi, Thanks for posting in Technet. In Windows 7, to automatically remove user profiles, you may configure related policy. 1. Go to Start, type group policy in the Start Search box and then press ENTER. 2. Expand the following policy: Computer Configuration/Administrative Templates/System/User Profiles/Delete user profiles older than a specified number of days on system restart 3. Select Enable and the choose the day you would like to delete the profile. 4. Click Apply and then click OK. Also please ensure that the hotfix mentioned in the following article is installed. The "Modified time" file attribute of a registry hive file is updated when an application loads and then unloads the registry hive file without making any changes on a computer that is running Windows Server 2008 R2 or Windows 7 If you still want to delete profiles via script, I suggest you post in the following forum. The Official Scripting Guys Forum Arthur Xie TechNet Subscriber Support in forum If you have any feedback on our support, please contact tngfb@microsoft.com.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
August 16th, 2010 10:25am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics