Thursday 18 September 2014

Windows 2012 and Windows 8 .Net 3.5 Framework Installation Failure

Resolution Step

The issues with the installation of .NET framework 3.5 can be solved by removing the Windows update: KB2966827 and KB2769166.

Friday 1 November 2013

Delete Shadow Copies

STEPS TO DELETE SHADOW COPIES TO FREE UP THE SPACE


vssadmin delete shadows /for=Drive Letter: /all

/Oldest
/All
/Shadow=ShadowID
/Quiet









Friday 25 October 2013

The user profile service failed to logon. User profile cannot be loaded

Issue can occur due to following reasons

1) Corrupted user profile
2) Corrupted Default user (C:\Users\Default-Hidden Folder)
3) Disk Quota settings

1. Corrupted User Profile
  1. Click Start, type regedit in the Search box, and then press ENTER.
  2. In Registry Editor, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  3. In the navigation pane, locate the folder that begins with S-1-5 (SID key) followed by a long number.
  4. Click each S-1-5 folder, locate the ProfileImagePath entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.
    2705065

    • If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:
      1. Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.
        2493038
      2. Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
        2493039
      3. Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.
        2493040
    • If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
    • If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak, you have to rename the .bak folder. To do this, follow these steps:
      1. Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.
        2493038
      2. Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
        2493039
      3. Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.
        2493040
    • If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
  5. Double-click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.
    2493045
  6. Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.
    2493046
  7. Close Registry Editor.
  8. Restart the computer.
  9. Log on again with your account.
2. Corrupted Default user

The easiest way to fix a corrupt default profile is to delete the content of C:\Users\Default and copy it from a working system. Make sure, though, that the machine you copy from has the same operating system version and language.

Note:
 
If all is well, the directory C:\Users\Default inherits permissions from its parent folder, C:\Users. This results in SYSTEM and Administrators having full control, while Users and Everyone have read permissions.

The permissions for SYSTEM and Administrators are not relevant, but if for some reason the user logging on does not have read permissions on C:\Users\Default the error message User Profile Service Failed the Logon will be displayed and logging on is not possible.
When this happens the user profile service logs an event with ID 1509 and source User Profile General in the application event log:

Logon is not possible, either, if the default profile’s NTUSER.DAT file is nonexistent or corrupt.
If NTUSER.DAT does not exist the user profile service logs an event with ID 1500 and source User Profile Service in the application event log:

If, on the other hand, NTUSER.DAT is corrupt the user profile service logs an event with ID 1508 and source User Profile Service in the application event log:

3) Disk Quota settings

1) Log on to your system with an administrator account, for example, owner or administrator.
2) Click Start, and then click My Computer.
3) Right-click on the system drive (usually drive C), and then click Properties.
4) Click the Quota tab.
5) Either increase the amount of disk space available to users by changing the Limit disk space to option or disable the Disk Quotas feature by clicking to clear the Enable Quota management check box.


Note: When a new user is created and tries to login for the first time, user profile folder will not be created due to quota settings. Disable Deny disk space to users exceeding the quota limit option and try to load the profile.