Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Monday, November 29, 2021

Active Directory : The Security Database on the Server does not have a Computer Account for this Workstation Trust Relationship

Issue : 

The Security Database on the Server does not have a Computer Account for this Workstation Trust Relationship

Solutions:

  1. Login to local Administrator (make sure you set a local administrator password on machine and or set an user account password which is a member of local administrators group). Then unjoin the PC from the domain
  2. Reboot the PC.
  3. On the domain controller, go to Active Directory Users and Computers and delete the computer account.
  4. This may take up to a few minutes for the changes to replicate between all of the Active Directory domain controllers. So wait for few minutes.
  5. Rejoin the PC to the domain. 

Tuesday, March 10, 2020

Microsoft : \WINDOWS\SYSTEM32\CONFIG\SYSTEM is missing or corrupt

Restore the registry manually

1.Insert the Windows XP setup CD and restart the computer
2.Press any key to boot from the CD
3.Press R to access Repair Console
4.Enter the Administrator password. When the Command Prompt appears, type the following commands, one at a time and press Enter after each command, replacing C: with the Windows’ drive letter:

Backup current file to temp folder:
md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak
Delete corrupt file:
delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default 
Copy file from repair to system32\config:
copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default
5.Exit
6.Enter
7.Restart computer

source : https://neosmart.net/wiki/windows-system32-config-system-missing-corrupt/


Friday, October 18, 2019

Windows : Reset Administrator Password Windows 2012 R2 on Nutanix

Solution:

1. Load the Nutanix driver into VM (source : https://next.nutanix.com/prism-infrastructure-management-26/booting-vm-to-cd-no-drives-present-31800)
  • Mount Windows setup ISO as the first CD/DVD.
  • Mount NutanixVirtIO as the second CD/DVD.
  • Once it loads into the Windows Server 2012 setup, select the language/keyboard and press Next.
  • It will give you the option to repair or install. Press on "Install". (Once again, it doesn't make sense right now, but continue with these steps. We actually won't be installing Windows, but need to navigate that way for a specific step)
  • It'll say "Setup is starting" and then give you the option to select the OS. Select the OS that is currently installed already that you want to repair and press "Next".
  • Accept the terms and conditions and press next.
  • Now this is the step that is important. You can see right now that the hard drives are not being recognized. We will use this step to load the drivers, for us to be able to go into the repair mode.
  • Click on Load Driver and you will get a popup. 
  • Navigate to the Windows Server 2012 R2 folder in NutanixVirtIO drive, and then select AMD64 subfolder if original OS is 64 bit, or x86 if 32bit OS (this step is written off the top of my head).
  • It will now give you few drivers. You can select the SCSI driver and press Next. (If you also want network drivers, you can press "Load Driver" again, and follow the steps, but select the Network Driver) and press the "Next". The popup will close and now you should see the drives are being recognized.
  • At this point, you will hit the "X" button on top right and it will ask you to cancel the installation. You allow it.
  • It will now take you back to the main page where it will ask you if you want to install Windows or repair. You will click on "Repair Your Computer".
  • You can now open up Command Prompt, and it will recognize the drives. 
2. Step to reset the password (source: http://www.kieranlane.com/2013/09/18/resetting-administrator-password-windows-2012/)
  • Select “Repair your computer”
  • Under Choose and option, click on “Troubleshoot”.
  • Under Advanced options, click “Command Prompt”.
  • At the command prompt, run the following commands:
    d: (check the drive mount the current installed windows)
    cd windows\system32
    ren Utilman.exe Utilman.exe.old
    copy cmd.exe Utilman.exe
  • Close the command prompt and then click “Continue”.
  • The server should now boot and present the logon screen. Here click Windows Key + U.
  • At the prompt you can now change the password, by typing the following command:
    net user administrator Password123
    This will set the password for the Administrator user to be Password123 (case sensitive).
  • Closing the command prompt, you should now be able to log back onto the server using the password you have provided in the last step.

Wednesday, June 12, 2019

Wednesday, October 3, 2018

Microsoft : Windows 2012 R2 GUI Missing after remove .Net Frame 4.5

Issue : GUI Missing after reboot



Solve:
1.  Run the below commands in the Server Core’s command prompt window to help you recover:
DISM.exe /online /enable-feature /all /featurename:NetFx4
DISM.exe /online /enable-feature /all /featurename:MicrosoftWindowsPowerShell
2.  The above commands will re-install .Net 4.0 and PowerShell on the server. Once PowerShell is installed, you can add the Graphical Shell (Windows Explorer) using the following command:
Install-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra
3.  Once the GUI Shell is installed, you will need to restart the server with the following command:
Restart-Computer
 Source:

Wednesday, December 28, 2016

Virtualbox : Resizing Disk

Solutions:

To resizing the disk format .vdi to 100G

#VBoxManage modifyhd "cloned.vdi" --resize 100000

For disk using format .vmdk must convert to .vdi format 1st before do resizing process.

#VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
#VBoxManage modifyhd "cloned.vdi" --resize 51200 
#VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk

source :

Friday, January 31, 2014