Thursday, December 11, 2008

Twas the Night Before a Corrupted Windows Profile

Score: Windows Profile: 2, Gordon: 3.

Twas the night before a corrupted Windows profile and all through the workplace,
Elves come to your computer, random things to erase.
I arose from my bed and arrived there the next day,
And stuck my laptop on the docking station (in the usual way).

When what to my wondering eyes should appear,
AC power was on, yet no other features were here.
I tried to undock it. I thought that was the trick.
But nothing seemed to happen after the mouse click.

I thought to myself, "this thing just needs a good reboot".
"Windows is shutting down" disappeared, but the mouse screen stayed. Oh shoot.
"If you won't shut down, then we'll have to do this the hard way."
I held down the button till the screen went away.

I started it back up, and everything was just fine.
It found the AC power and all the other hardware of mine.
Now I could work. I was cruising in style.
Except now, "Windows cannot locate your roaming profile."

So it logged me in under that evil TEMP account
(the one that always erases whenever you log out).
Redoing my settings I can handle just fine,
But now I'm eternally stuck to use TEMP every time.

It said something about a file name being too long.
Well, last time I logged in, no such thing had gone wrong.
I logged out and in, then rebooted once more...
Nothing changed --I even tried System Restore.

Of course the "Undo Last Restore" failed. Microsoft is that elf.
I just laughed when I saw it, in spite of myself.
I moved lots of long-named files out of My Documents to the C: drive,
I logged out and back in, and then my profile was alive!

It took a while to log in, so I ran a Disk Cleanup and Defrag.
It seems to be better. There's not so much lag.
But I heard the elf exclaim ere he drove out of sight,
"255-character-long profile filenames to all, or you're picking a fight!"

Thank you.

Although WinXP supports much longer filenames, the profile manager has trouble with filenames over 255 characters long. I also noticed that it doesn't like non-ASCII filenames. For example, I had a file named "かんしゃさい.doc". I had also tried copying the corrupted profile to a new local account, and this file along with the long-named ones refused to be copied. After renaming the non-ASCII one and moving the long-named ones (I didn't want to rename) out of My Documents\Visual Studio 2005\Projects\ into a new folder C:\Projects, everything worked just fine.

There are other good resources out there for this problem, too. I recommend:
http://forums.microsoft.com/WindowsToolsandUtilities/ShowPost.aspx?PostID=3947666&SiteID=69

No comments: