0

How to automatically delete user profile connected in a domain (Windows 7) after logging off?

HopelessN00b
  • 53,795
  • 33
  • 135
  • 209

2 Answers2

1

This is easily done by using mandatory accounts. Every time you relog, switch user, or reboot the profile will be loaded back to default since the date you set it to mandatory.

See it like a kiosk/internet cafee account, users can log in, use internet and save documents for printing or save it to flash storage.

Here is how you do it: -Create your user account and manage the settings (start menu, icoons on the desktop etc etc) -When you are done configuring the account, loggoff so that the user account will be saved on the server (profile path ad) -Then rename the NTUSER.DAT to NTUSER.MAN this will change it to a mandatory account, every user switch will set the settings back from step one.

https://technet.microsoft.com/en-us/library/gg241183(v=ws.10).aspx

No third party software, or group policy's needed. (tho you can adjust the user account by using localGPO's, like start page, taskbar icoons, allow them to right click or not etc)

-Dont use guest accounts, since the users cant instal or change any software during their loggin, so you will get a load on your IT department.

Greetz!

0

Put the user in the local windows7 guest group.

Edited: If a user is added to the Guests group (or the Domain Guests group, which belongs to the Guests group), when the user logs on, that user's profile information is only stored temporarily. When that user logs off, the entire profile is deleted. This includes everything stored in the %userprofile% directory: the user's registry hive information, custom desktop icons, and so on. From Profiles for Members of Guests Group Are Deleted

Edited:

Use delprof2 if you can't add the user in the group.

yagmoth555
  • 16,758
  • 4
  • 29
  • 50