Windows Group Policy's

Group Policy Delete User Profiles Older Than A Specified Number Of Days On System Restart

Windows Group Policy Name :- Group Policy - Delete user profiles older than a specified number of days on system restart

Requirements :-

  • At least Windows Vista

Description :-

This policy setting allows an administrator to automatically delete user profiles on system restart that have not been used within a specified number of days. Note: One day is interpreted as 24 hours after a specific user profile was accessed. If you enable this policy setting, the User Profile Service will automatically delete on the next system restart all user profiles on the computer that have not been used within the specified number of days. If you disable or do not configure this policy setting, User Profile Service will not automatically delete any profiles on the next system restart.

Note :-

Notepad

Main Directory :-

Sub Directory :-

Policy Path :-

Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> User Profiles

Policy Path :-

configure-group policy - Delete user profiles older than a specified number of days on system restart

Policy Path :-

output-group policy - Delete user profiles older than a specified number of days on system restart

Note :-

Notepad

After changing group policy options, you need to update group policy. If you do not update group policy then settings will not effect. To update it just simply type below command and also sample image is shown.

Command :-

gpupdate /force

output-update-group-policy
Notepad

In about command we used "/force" option, this will help up to update policy options forcefully.