Tuesday 8 December 2015

(Solved) Access Is Denied Message After Sysprep.


Problem:

If you use Sysprep to prepare a Windows VM for imaging you set “User cannot change password” at the administrators password then sysprep will not clear this setting, but will set the “User must change password at next logon” setting. Above metioned two settings are mutually exclusive, butin this case (for sysprep) it seems they can both end up being set.
Which means you get prompted to reset you password at first logon after sysprep completes and then find you are receiving error: “Access Denied” as the response.

Solution:

For being able to logon to your machine following the above issue, you'll need the Offline NT Password tool,to blank out the administrators password and unlock the account. These are options 1 and 4 during the password reset stage. Full instructions are as follows:
  1. Boot the server with the issue with the Offline NT Password and Registry Editor iso file attached to the VM:
    [image%255B2%255D.png]
  2. Select the correct boot option (or just press Enter for the defaults):
    [image%255B5%255D.png]
  3. For Windows 7 and Windows 2008 and later select Option 2 .For Vista and earlier select the default of Option 1.  (to boot into the second partition on the disk). You will need to select a different option if you have more partitions. You need to select the partition that Windows is installed on.
  4. If the disk is marked as Read-Only ensure that the server went through a clean boot and was not shutdown improperly. Once the messages indicate a writable partition
    [image%255B14%255D.png]
  5. Select the presented folder (by pressing Enter again). You can typically just press Enter through most of these  following stages. You will be asked what you want to do – we want to reset passwords:
    [image%255B20%255D.png]
  6. Choose Option 1 to Edit user data and passwords:[image%255B23%255D.png]
  7. Use Enter to choose the Administrator account:[image%255B26%255D.png]
  8. Type 1 to Clear (blank) user password. You should get back the message “Password cleared!”:[image%255B32%255D.png]
  9. Use Enter key again to reselect the Administrator account, for this time select Option 4 to unlock the account (even though this program tells you the account is already unlocked):[image%255B35%255D.png]
  10. when you can see “Unlocked!” you can quit from this program. The process to quit requires you to save your changes. Note: Default settings doesn't save changes, so you cannot now use Enter to select the default option.
  11. Enter ! to quit from the password reset program:[image%255B38%255D.png]
  12. type q to quit from the script and to ask about saving changes:[image%255B41%255D.png]
  13. type y to write back the files that have been changed:[image%255B44%255D.png]
  14. You should be seeing “***** EDIT COMPLETE *****”. Press Enter to finish the program scripts:[image%255B47%255D.png]
  15. At this stage you can remove the CD or remove/un-mount the iso image from your VM and press CTRL+ALT+DEL to restart the server. The server should now boot into Windows and auto-logon as it will be having a blank password.
  16. Change the password of your desiring and uncheck the “User cannot change password” setting.
Have Fun.

you can also check my other link as well:

http://solutionsspk.blogspot.co.uk/2015/12/solved-access-denied-for-local.html

No comments:

Post a Comment