After running Sysprep (Microsoft System Preparation tool), some applications may issue:

You do not have sufficient rights to perform this task. Please make sure that you have Local Administrator rights on this computer before attempting this task again.

The Sysprep tool adds a comma after the Explorer.exe registry entry that defines the shell.

NOTE: If Windows 2000 Service Pack 1 or later had been installed prior to running Sysprep, this error will not occur.

To resolve this issue:

1. Use Regedt32 to navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon.

2. Double-click the Shell value name and remove the comma from the end of the string. If the string is C:\Winnt\Explorer.exe,, change it to C:\Winnt\Explorer.exe

NOTE: If you do not want the image to be updated with a service pack, you can edit the Sysprep.inf file to include a Cmdlines.txt entry to remove the comma from the registry. See Q248257.