Thursday, 9 June 2016

LDAP server installation and configuration step by step – RHEL7

openLDAP server installation and configuration step by step – RHEL7

Sunday, 5 June 2016

Manually Repair Windows 7 Boot Loader Problems

Boot From the Windows Install Disc

The first thing you’ll need to do is boot off the install disc, and then click through until you see the “Repair your computer” link in the lower left-hand corner.
image
You’ll need to choose the correct installation of Windows and then click the Next button.
image
And then you’ll get to the System Recovery Options screen, where you can get to the Command Prompt.
image

Repairing the Master Boot Record

If you want to restore the master boot record, you can simply type in the following command:
bootrec /fixmbr
You can also write a new boot sector onto the system partition with this command (which is often more useful):
bootrec /fixboot
And of course, if you just use bootrec /? you’ll be able to see all the options.
image

Replacing the Windows XP Bootloader with Windows 7

If you’ve managed to install XP on the same PC that you already had Windows 7 on, you’ll noticed that you can’t boot into Windows 7 anymore. You can use this command to fix that and restore the Windows 7 bootloader:
bootsect /nt60 all
Depending on the partition that you’ve installed, you might need to substitute the drive letter instead of “all”.
image
Note: if you want to restore Windows XP back to the menu, you can open up a command prompt in Windows 7 and run this command:
bcdedit /create {ntldr} -d “Windows XP”
image

Using the Automated Startup Repair

Of course, all this command-line stuff is probably not necessary in most cases. You can usually just use the Startup Repair option from the Recovery menu…
image
It’ll check for problems and probably fix them. If not, then you can always use the command prompt.
image

Wednesday, 30 March 2016

How to Reset Your Forgotten Domain Admin Password on Server 2008 R2

How to Reset Your Forgotten Domain Admin Password on Server 2008 R2

image
Forgetting your password is always a pain, but luckily there’s an easy way to reset your Domain Administrator password. All you need is a copy of the Windows Server 2008 R2 installation disk and one simple command line trick.

Replacing Utilman.exe

Boot off the Windows disk and select the “Repair your computer” option from the lower left-hand corner.
image
Follow through until you get to the option to open the Command Prompt, which you’ll want to select.
image
First you’ll want to type in the following command to backup the utilman.exe file:
MOVE C:\Windows\System32\Utilman.exe C:\Windows\System32\Utilman.exe.bak
image
Now you will need to copy cmd.exe and rename it Utilman.exe:
COPY C:\Windows\System32\cmd.exe C:\Windows\System32\Utilman.exe
image
Now you can go ahead and reboot your machine. When its done booting up again and you are at the Logon screen click on the Ease of access icon.
image
I bet you weren’t expecting that open a command prompt  Smile To change the password type:
net user administrator *
Once you press enter you will asked to set a new password and then confirm it, when entering your new password don’t worry if you can’t see them as you type, they are invisible, they are however being remembered.
image
Once you’re logged in again don’t forget to delete Utilman.exe and then rename Utilman.exe.bak back to plain old Utilman.exe.