Users profile is getting populated in windows 7 network PCs with Local profile

Hi

We use windows 2012DCs and recently we migrated from XP to Windows7
When we had XP, We are using local profiles in our network,

We are still using local profile system for all the students after we migrated to windows 7. When the users log into a PC, a freshly Profile is created under their name.

When we were having XP we had a GPO which was applied under all the ICT OUs. When this shutdown scripts was running from this policy it was deleting all the profiles and the C drive was maintained from running out of space and also a fresh profile is was created without any errors , when students log in after the PC was restarted.

Now after we migrated to windows 7, the profile doesn’t get deleted  for some reasons and I can see the profiles are getting populated on the C:\users\

If I delete a  profile the profile in Win7 and when the  users log in again, they will get a message on the  system tray  “Windows cannot find the local profile and is logging you on with a temporary profile” and normally I do some registry tweaks to make it work.

http://support.microsoft.com/kb/947215

Is there a way of setting this up in a different way.Our users Hard disk are 60GB and can run out of space very soon please suggest.

Thanks  and any help much appreciated.
lianne143Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joshua GrantomSenior Systems AdministratorCommented:
If you add Domain Users (or if you want to create another security group in AD) to the local Guest group it will delete their profiles on logoff correctly. You could apply this with a group policy and push it out to all the computers you want.

Control Panel > User Accounts > Manage User Accounts > Add YOURDOMAIN\Domain Users to Guests

DUtoGuests.PNG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lianne143Author Commented:
In windows 7 If their profiles are deleted  and if the same user logs into the same PC next day , will he not get the following message.

“Windows cannot find the local profile and is logging you on with a temporary profile”
I dont want this message to pop up .
0
Joshua GrantomSenior Systems AdministratorCommented:
Not if they are part of the guests, this happens because deleting the folder isn't enough. You also have to remove the Profile from the UserList in the registry. Using the guest group will properly delete the profile.
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

lianne143Author Commented:
Hi Joshua

I will try this asap and will post you the results.

thanks
0
Joshua GrantomSenior Systems AdministratorCommented:
no problem, let me know if it doesn't work. I'm sure there is a way.
0
lianne143Author Commented:
Hi

I tried adding a couple of users to the local Guest group and still the profiles are not getting deleted.

Please see the attached VBS Delete profile Script which i apply to the GPO (Computer configuration-policies- windows settings-Scripts-shutdown) and please go through the script if i am making any mistake.

Will it be possible to create the script so that we need not add the users to Local guest group.
I have more that 600 users  and adding them to local guest group on each PC will be complicated.
Thanks
DeleteProfile.txt
0
Joshua GrantomSenior Systems AdministratorCommented:
You can just add Domain Users to the guest group, or whatever  you have as the main group for students
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.