Userenv Error 1500/1505/1508 – Profile Unable to Login

Windows cannot log you on because your profile cannot be loaded. Check that you are connected to the network, or that your network is functioning correctly. If this problem persists, contact your network administrator.

This annoying error message plagued me for quite a long time until I eventually found the solution. The problem appears to be with the pagefile not being able to perform user profile allocation properly.

After a fair bit of searching and tinkering, I eventually hit upon the following solution:

  • First set the pagefile to by managed by the system.
  • Load regedit, and find: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
  • Create a new DWORD called PoolUsageMaximum. Set this to 60 (Decimal).
  • Create/Modify PagedPoolSize (DWORD) to ffffffff (Hex).
  • Reboot.

What this does is simply force the Memory Manager in windows to attempt to trim the pagefile when it is 60% full, rather than its default 80%. This therefore starts the pagefile trim earlier, hopefully enabling the computer to cope with surges in memory demand more efficiently.

Rooting Your Desire (and installing a custom rom)

This is a guide for the GSM Desire only.

Follow this entirely at your own risk. It is possible, however unlikely that trying to root your phone can brick it.

Things to download:

  • Download Unrevoked 3.21 (current version) from here.
  • Download HTC Sync from here, install it, then uninstall it. This sounds odd, but it will remove the HTC software (a necessary step), whilst leaving the ADB Drivers on your computer.
  • Download a recovery image, I’m using clockwork which you can get here, but you can use others such as AmonRa.
  • Download a custom rom, and a radio rom. I am using Defrost and the latest radio, available here. Note: This step is not actually necessary, you can run a rooted phone with the original rom.
  • This is the actual rooting part. Run Unrevoked (3.21). Select the recovery image you downloaded above.
  • Plug your Desire in to your PC, sit back, follow the on screen instructions, and then wait a few minutes.
  • Note: It is a good idea at this point to perform a Nandroid backup, available from the Clockwork Recovery Mod Menu.
  • When Unrevoked has finished, reboot into your phone. Load Rom Manager, flash Clockwork to the latest version, and take a backup.
  • Partition your SD card (menu option in Rom Manager). I went for a 512mb ext2 partition, a 64mb swap, and the rest as fat32. Copy your custom rom and Radio image to your SD card.
  • From within Rom Manager, select Install Rom from SD Card and select your custom rom. Let it work its magic. You can then install the radio image from within the Clockwork Recovery menu.
  • Bear in mind if you are going from a Sense based rom to a non-Sense based rom, you will need to select Wipe Data/Settings from within Clockwork in order to be able to flash the custom rom. This should be the only time you need to do it.
  • When the phone reboots, you will be presented with an animated ‘X’, which is really rather pleasant. This is the DeFrost boot screen, and will last for a while. Don’t panic, let it run its course, and it will boot eventually.

Installing the Windows HBoot Drivers

These drivers are necessary for rooting your phone. You can download them from here.

  • Extract the drivers somewhere memorable.
  • Turn off the phone, and load the boot menu by pressing and holding power and volume down.
  • Connect the phone to your Windows machine with a USB cable and wait for the phone to say HBOOT USB PLUG on screen.
  • Open device manager, and you should see Android 1.0 Device listed under Other Devices.
  • Right click on Android 1.0 and click Update Driver Software. From the next screen, select Browse my computer for driver software, browse to where you extracted the drivers, and select the Android USB Driver folder, click Next, then OK.
  • You should then get an Install Successful message, hit Close.
  • Android Bootloader Interface should now be listed under Android Device. All done.
  • Starcraft II

    Blizzard are master story tellers, and despite their controversial, money based decision to release SCII in chapters, they have scored another hit.

    A truly compelling and moving storyline, the single player campaign is beautifully told against the usual complex background. A moving finish, and the usual open door ending to entice players in for the other chapters.

    Personally, I can’t wait.

    Endurance

    ‘Somewhere during the night you will hear a voice say, “Why am I doing this? I am never doing this again!” Look forward to this voice. Welcome it. Laugh at it. Embrace it. Look forward to hearing it again next year. Just know that it will come and that you will ride past it and be stronger when it fades into the shadows.’

    Cambridge Town Bumps

    It’s that time of year again, CRA town bumps are upon us. Once again I’m rowing in the beer boat.

    Tuesday – 1st Night
    City VIII overbumped Champs VII.

    Wednesday – 2nd Night
    City VIII row over.

    Thursday – 3rd Night.
    City VIII bumped Champs VI.

    Friday – 4th Night
    City VIII bumped X-press IV.

    Overall a good week, we didn’t get blades but we went up 5 which is pretty good.

    The Forestman Triathlon

    It has been decided. A few friends and I are going to race the New Forest.

    The Forestman is an iron distance triathlon, comprising of a 3.8km swim, a 180km bike, and a 42.2km run. For those of us that prefer good of fashioned distances: 2.4 miles in the lake, 112.5 miles in the saddle, finished off with a marathon.

    Entries aren’t open yet, but we’re resolved to look out for opening day and getting our names on quickly. Should be an interesting year.