We had given a user a brand new computer because a BSOD we could not solve, and the transition to the new PC had not been smooth. For one, the user was a manager and had more applications than the average user. Also, the tech dealing with the new PC was quite fresh, and, as we found out later, the tech did not have sufficient permissions to image new PCs.
I started by helping the tech reinstall the Software Center client, and install other applications. All seemed well until the user mentioned that he/she was missing his/her mapped drives.
We tried doing a GP update. Nothing.
I took a look in Event Viewer, and I saw a warning saying, “Folder redirection policy application has been delayed until the next logon because the group policy logon optimization is in effect.”
That explained where the mapped drives went, but why?
I took a look further back in event viewer, and I saw a bunch of errors that looked similar to the one below:
This led me to take a look at the printers. I connected to the print server, and I tried to connect to one of the printers. I got an error like the one shown below:
These errors are usually related to printer drivers issues. My supervisor sent me this link with the following instructions:
1. Open Registry (click Start > type regedit in the search box > press Enter) on a machine with the same driver installed which works fine, and then expand the key: HKLM\System\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\
2. Expand the subkey corresponding to the printer driver you are dealing.
3. Click the subkey, and expand InfPath in the right pane, and then note the path.
4. Browse to the directory according to the above path.
5. Go to the C:\Windows\System32\DriverStore\FileRepository of the machine you want to install a printer, and check if the folder is present. If it is here and it is empty, you will have to modify security on the folder, first taking over ownership, and then granting yourself full control.
6. Copy the contents of this folder from a good machine to the machine presenting the 0x00000057.
7. Try connecting to the print queue on the print server. The driver should now download and install properly.
I followed the instructions, messed up permissions for the file repository (I accidentally deleted the permissions for the Everyone security entity), and then fixed what I had messed up. After all this, the user had all his apps and drives and was up and running.
My theory as to why all this happened is as follows: This user had many printers mapped to his profile. When all of them failed to map because of the faulty driver, the folder redirection policy was delayed, causing the user to lose his mapped drives.
Needless to say, a lot of writing went into explaining this one to my manager and posterity.