How to Resolve Event ID 1505 and Event ID 1508 Source Userenv

Event ID 1505
Event Type: Error
Date: date
Time: time
Event ID: 1505
Source: Userenv
User: Example\Username
Computer: ServerName
Description: Windows cannot load the user's profile but has logged you on with the default profile for the system.
DETAIL - Insufficient system resources exist to complete the requested service.

Event ID 1508
Event Type: Error
Date: date
Time: time
Event ID: 1508
Source: Userenv
User: NT AUTHORITY\SYSTEM
Computer: ServerName
Description: Windows was unable to load the registry. This is often caused by insufficient memory or insufficient security rights.
DETAIL - Insufficient system resources exist to complete the requested service. for C:\Documents and Settings\Username\ntuser.dat
-----------------------------------------------

Resolution:

Start
Run
regedit
OK

Navigate to subkey:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
On the Edit menu, point to New, and then click DWORD Value.
In the New Value #1 box, type PoolUsageMaximum, and then press ENTER.
Right-click PoolUsageMaximum, and then click Modify.
In the Value data box, type 60, and then click OK.

If the PagedPoolSize registry entry does not exist:
On the Edit menu, point to New, and then click DWORD Value.
In the New Value #1 box, type PagedPoolSize, and then press ENTER.
Right-click PagedPoolSize, and then click Modify.
In the Value data box, type ffffffff, and then click OK.

Else
Right-click PagedPoolSize, and then click Modify.
In the Value data box, type ffffffff, and then click OK.

Exit Registry Editor
restart the computer.

Source: http://support.microsoft.com/kb/935649