Windows: making a system backup with vshadow+robocopy tools

Solution 1:

I ran into this problem years ago. This was just the registry settings of the current account which induced problems.

You can create another admin account prior to backing up, and then use it to log in once the backup is made. This solved my problem. I even found the regular admin account worked once I had first logged in with the secondary account (but not before). I don't understand how this is possible.

Solution 2:

Since you are able to get to the login screen but the shell doesn't actually come up, I would suspect that something in the user profiles is not being copied properly.

You can try deleting (or not copying) the profile directory that you are trying to log into before starting the copied system. Winlogon should create a fresh profile from the default, assuming that copied OK.

There may be a problem with symlinks, which profiles use heavily. Try robocopy with the /SL flag to copy the link instead of following it to the contents.

There may be a problem with copying the mandatory integrity labels. You didn't mention what account the copy is occurring under; even a member of the Administrators group can't set an integrity level higher than High, but many OS files are System level (which is higher than High). Try running robocopy as NT AUTHORITY\SYSTEM.

Try using the /B flag with robocopy; it uses backup mode, which will copy other metadata like extended attributes and alternate data streams.

Your backup copy may not be very space efficient since versions from at least Vista use hardlinks heavily in the Windows directory for duplicated files (like in SxS) but AFAIK robocopy isn't aware of these and will make a separate copy of each reference to the files.

Are there any errors in your robocopy log?

EDIT: I guess I should have read the description more carefully. Half the things I mentioned don't apply to WS2003, only Vista and later. I've successfully copied whole, running WS2003 systems with a volume shadow copy and robocopy in the past and didn't have login problems. The only difference I can think of offhand is that I used the /B flag to enable backup mode during the copy.