“Nothing in this world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination alone are omnipotent”

Calvin Coolidge

Calvin Coolidge was an American politician and the 30th President of the United States. Read more on Wikipedia

Server 2008 R2 BSOD after Bare Metal Restore

After completing the BMR process don’t restart.
Select Command Prompt.
Highlight HKEY_LOCAL_MACHINE, File>Load Hive>[restored volume]:\Windows\System32\Config\SYSTEM>Open>Key Name = Restored_HKLM>OK.
Expand Restored_HKLM\ControlSet001\services and ensure the following are set:
If restored to a (VMWare) VM then ensure intelide>Start = 0 and LSI_SAS>Start = 0; msahci>Start = 3 and pciide>Start = 3
NB: I have only tested this with VMWare VMs (Player/Workstation and vSphere) but will likely translate across to Microsoft (e.g. HyperV) VMs. The LSI_SAS value is definitely required, I couldn’t boot in a VM until this was chaned to 0.
Or if restoring to a physical machine with native HDD controller then ensure msahci>Start = 0 and pciide>Start = 0; intelide>Start = 3 and LSI_SAS>Start = 3
Highlight Restored_HKLM and then File>Unload Hive.
Close windows and restart.

You should now have a successfully booting restored Server 2008 R2! :¬)

(Remember if it’s a new add-in RAID card and you supply the drivers it will successfully inject them into the restored OS – see previous posts in this thread)

NB: Don’t worry if you have restarted without making the changes and it Blue Screens, come back through these options and if set correctly it will boot normally – nothing is damaged by the Stop Error, and the ide settings can be turned on and off with no permanent effect on the OS. I.e. change and restart until you hit the right combination required – I’ve tested this copious times and when changed back to the correct settings the OS boots again without issue.

If in doubt, turn on all possible required services e.g. set both intelide = 0/pciide = 0 and msahci = 0, or set all of these to 0 and it will still boot with the correct driver/s:
aliide, amdide, atapi, cmdide, iastorv, intelide, msahci, pciide, viaide and LSI_SAS.
I don’t recommend this due to the overheads it could introduce, but it will work and will get the machine up as quickly as possible if confidence in the exact combination required is in doubt.

Settings for typical destination machines – skip if desired:


VMWare VM:
aliide 3
amdide 3
atapi 0
cmdide 3
iastorv 3
intelide 0
msahci 3
pciide 3
viaide 3

Dell PE2970 physical machine with RAID card:
aliide 3
amdide 3
atapi 0
cmdide 3
iastorv 3
intelide 3
msahci 0
pciide 3
viaide 3

Dell PET100 physical machine on native SATA adapter:
aliide 3
amdide 3
atapi 0
cmdide 3
iastorv 3
intelide 3
msahci 0
pciide 0
viaide 3

Win 7 64x custom built physical machine on native SATA adapter:
aliide 3
amdide 3
atapi 0
cmdide 3
iastorv 3
intelide 3
msahci 0
pciide 0
viaide 3


0 = ?
1 = ?
2 = Automatic
with DelayedAutostart = 1 = Automatic (Delayed Start)
3 = Manual
4 = Disabled


Migrate Windows DHCP server

A few weeks ago at work, I was tasked with the project of decommissioning one of our older Windows Server 2008 machines and upgrading it to Windows 2012. I was initially a little worried, seeing as this server ran a lot of key roles, such as DHCP, DNS, was a Domain Controller, and also acted as a print server as well as a few other services. As I was migrating the DHCP role, I wondered if there was a simple way of exporting all of the settings, such as DHCP scope and reserved IP addresses. Turns out there was, and it went off without a hitch!

Here’s how I did it:

Log on to the old/existing DHCP server.

Click Start, click Run, type cmd in the Open box, right-click, and then “Run as Administrator”.

On the Action menu, click Backup.

Type netsh dhcp server export C:\Users\\Desktop\dhcp.txt all, and then press ENTER.

Install the DHCP role on the new (2012) DHCP server using Server Manager.

Copy the exported DHCP text file to the desktop of the new DHCP server.

Verify that the DHCP service is installed and started on the new DHCP server.

Click Start, click Run, type cmd in the Open box, right-click, and then “Run as Administrator”.

Type netsh dhcp server import C:\Users\\Desktop\dhcp.txt all, and then press ENTER

Open DHCP console on the new server.

In the console tree, right-click DHCP.

Select “Authorize”.
If your old DHCP server is in the same network/subnet as the new DHCP server, you’ll notice that the old DHCP server has been de-authorized automatically. This is to prevent two DHCP servers from handing out conflicting addresses.

Check to make sure that your new DHCP has all of the same settings, options, scopes, and reservations set as the current one. If done correctly, everything should have been brought over. I was pretty impressed as to how well this worked and just how seamless it truly was.

Set AD Attributes

You can also view and set these values with PowerShell, provided you have the ActiveDirectory module installed.


Get-ADUser <username> -Properties extensionattribute1

Set-ADUser <username> -Add @{“extensionattribute1″=”Your Value Here”}

Set-ADUser <username> -Clear extensionattribute1

Mikrotik VPN place rule before dummy rule

/ip firewall filter add chain=forward dst-address=”remoterange” src-address=”localrange” place-before=0

/ip firewall filter add chain=forward dst-address=”localrange” src-address=”remoterange” place-before=0

Stubborn Belly Fat

Let’s Get Rid of Belly Fat, Shall We?

Stubborn Belly Fat? Drink a protein shake (100-130 calories and 20-25g protein) 10 minutes before every meal. It curbs your hunger so you won’t eat as much and gives you a metabolic advantage from the higher protein intake.

Stubborn Belly Fat? Do a short, quick, powerful metabolic density workout 4 days/week, at least. If I feel like challenging myself I’ll do 7x/week for a full month. Each workout should be short (15 minutes or less) and can be tacked on to the end of your normal strength workouts.

Stubborn Belly Fat? Caffeine is a potent thermogenic and naturally increases your metabolic rate. So, coffee!

Stubborn Belly Fat? Meditate 60 seconds/day. That’s it. Just 60 seconds. It doesn’t magically burn fat but it does, I think, reduce stress and help you be more mindful. And, truth is, most people rarely take a full 60 seconds to actively focus on themselves and their mindset every day. Try it — I think it’ll help.

Adding a USB backup drive to SBS backup

Add a new disk to the backup schedule by running the wbadmin command from an elevated command prompt.

Run the following command from an elevated command prompt to determine the Disk Identifier of the new disk:
wbadmin get disks
Based on the output, locate the disk that will be added to the scheduled backup. Make a note of the Disk Identifier. The output will resemble the following:

Disk name: xxxxxxxxxxx
Disk number: x
Disk identifier: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
Total space: xxx.xx GB
Used space : xxx.xx GB

Run the following command to add the new disk to the Scheduled backup. Use the Disk Identifier from the previous step as the “AddTarget” parameter.

WBADMIN ENABLE BACKUP -addtarget:{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

When you receive the following prompt, type Y for Yes.
“Do you want to enable scheduled backups with the above settings?”

Change Centos IP address

In common situation, "system ip address" is the ETH0 address.
So edit /etc/sysconfig/network-scripts/ifcfg-eth0 with your favourite text editor and run service network restart

 don't forget to change default gw also,  it's located in /etc/sysconfig/network.

Routerboard SNTP Client

How to set the NTP client on a Mikrotik router using the Terminal

/system ntp client set enabled=yes primary-ntp=###.###.###.### secondary-ntp=###.###.###.###

Change the ### for IP address’s

Once done use the below to check if the settings has been applied

/system ntp client print

Below are two IP addresess for NTP servers that I use, they might not work for you though, and

Once don’t forget to set your time zone information, under System > Clock

What version of Centos is my server running?

This post shows how to find out what version of Centos you are running from the command line.

tail /etc/redhat-release

This will output the version in a simple format: Centos release 5.10 (Final)