Please read before proceeding:
Sysprepping with the Generalize switch and
CopyProfile=TRUE has a small issue or rather a small inconvenience: it leaves the last used user folders (#1 in screenshot below) and recent files (#2) of built-in admin to end user's
Quick Access:
A very simple and fast workaround is to add this batch file to built-in admin's
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup folder in Audit Mode before running Sysprep. Name it as you want to using the
.bat extension, I named it
RunOnce.bat:
Code:
echo Y | del %appdata%\microsoft\windows\recent\automaticdestinations\*
del %0
The batch file explained:
- echo Y | = Pipes (sends) a letter Y to the command given after the Pipe (|) character
- del %appdata%\microsoft\windows\recent\automaticdestinations\* = Resets the Quick Access to defaults. This command expects the user to enter either Y for Yes or N for No. As the Y will be in this case piped, user interaction is not needed but instead the Y will be entered automatically
- del %0 = Deletes the batch file itself after it has been run. Leaving this away, not deleting the batch file, would reset the Quick Access every time the user signs in
File is now saved in built-in admin's
Startup folder, which will be copied among other customizations to
Default User Profile when you sysprep with
CopyProfile set
TRUE using the
/generalize switch.
Now whenever a new user account will be created, be it the initial user created in OOBE or any user created anytime later, the batch will be run once for each user resetting the Quick Access to defaults and then removing itself.
Other than this minor inconvenience I have not found any whatsoever issues in Audit Mode, Sysprep, generalizing and CopyProfile functions.