remove Azure Active Directory Sync / DirSync

remove Azure Active Directory Sync / DirSync

Microsoft’s Azure AD Connect is a great tool that allows admins to sync Active Directory credentials from local domain environments with Microsoft’s cloud (Azure/Office 365), eliminating the need for users to maintain separate passwords for each.

While not a common occurrence, there may be reasons that you would need to remove Microsoft’s Azure AD Connect utility from your environment. This can be achieved in a few short steps and involves both removal from the local domain environment as well as deactivating the service in the cloud.

Step 1

Open PowerShell (Run as Administrator).

Step 2

Install Microsoft Online module for Azure Active directory using the following command:

Install-Module -Name MSonline

If prompted to continue, input “Y” and press enter. Any subsequent confirmations can be accepted by inputting “A” for “Yes to All” and pressing Enter.

Step 3

Input login credentials using the following PowerShell command:

$msolcred = get-credential

You will be prompted to authenticate. Use the global administrator account within your Office 365 tenant (ex. and the corresponding password.

Step 4

Initiate Connection to Office 365 using the following PowerShell command:

connect-msolservice -credential $msolcred

Step 5

Keep this PowerShell instance open, we will use it in later steps.

Step 6

Uninstall Microsoft Azure AD Connect

Uninstall Azure AD Connect application (and services) from your local domain environment using Control Panel.

Step 7

Once you have AD Connect uninstalled, you will still need to disable the service through office 365. To do so, use the following PowerShell command.

Set-MsolDirSyncEnabled -EnableDirSync $false

You will be prompted to confirm, press Y to confirm and then press Enter.


Step 8

To verify that directory sync was fully disabled, use the following PowerShell command:


A returned value of False will validate the deactivation.

Need to Reenable AD Connect?

If you ever need to reenable AD Connect, repeat the PowerShell procedures above and use the following command in place of step 7:

Set-MsolDirSyncEnabled -EnableDirSync $true

Please note depending on the size of your AD environment, you may have to wait several hours before Microsoft will allow you to reactivate. You can then reinstall and configure Azure AD Connect in your environment.

Change IP Debian 9

# Log in as root or su to root then
nano /etc/network/interfaces
# Should look like this:
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

And change it to:

# The primary network interface
allow-hotplug eth0
iface eth0 inet static

when done: service networking restart
if the interface fails type: ifup eth0

Lets encrypt Nginx


Let’s Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps. Currently, the entire process of obtaining and installing a certificate is fully automated on both Apache and Nginx.

In this tutorial, you will use Certbot to obtain a free SSL certificate for Nginx on Debian 9 and set up your certificate to renew automatically.


Read More

Remove HP iLO License

In order to use the full features of HP’s Integerated Lights-Out system a license key needs to be added. The process of adding a license is as simple as connecting to the iLO web interface and following the steps in the license section. If for some reason you want to remove the license it’s not quite as simple as clicking a button.

Thankfully it’s not actually that difficult to remove the license, just a pain having to use an extra tool. The steps below show you how to complete the removal in a few minutes.

  1. Download Putty if you don’t already have it.
  2. Open putty and enter the IP of the iLO server, select SSH and open the connection.
  3. Login using the same credentials used for the iLO web interface (username is case sensitive).
  4. type the following command and hit enter. delete /map1 license
  5. The command may take 5-10 seconds to complete so wait until confirmation is shown.

Remove iLO License

Clonezilla to a smaller HDD ssd

As an open source free software, Clonezilla can be used to clone or backup hard drive. Since it works with most of the operating systems largely used in company or home, many people love to use Clonezilla, especially when they want to upgrade hard drive with a new one. In this case, you can use Clonezilla to clone a hard drive to another without reinstalling Windows or installed programs.

However, the destination drive to replace the old one is not generally the same size or larger than the source drive. Since the excellent performance of SSDs and they have become increasingly cheaper recently, many users want to transfer data with Clonezilla from larger drive smaller SSD. If you happen to in this situation, you can make some extra efforts to get this done.

How to clone larger drive to smaller one with Clonezilla?

Officially, Clonezilla requires the destination partition to receive the clone to be equal or larger than the source one. Therefore, the only way to get this done is to shrink the source partition to fit the destination partition.

Clonezilla clone partition to new disk:

1. Open Disk Management in Windows 10/8/7. If you are running Linux system, you can boot your computer from GParted media.

2. Right click the source partition and click “Shrink Volume” and follow the wizard to shrink the partition.

3. When you get that done, reboot to Clonezilla.

4. Select the source disk and destination disk.

5. Choose EXPERT mode and enable the “-icds” option. You need to also  choose the option”Resize partitional table proportionally” in one of the following menus.

Extra Parameters

6. Configure other Clonezilla options if needed and then type in “y” to confirm and start the clone.

In this way, you should be able to complete the cloning process without receiving the error like Clonezilla failed to create a partition table on this disk. However, if you think this is too complicated and cumbersome, you can try another freeware to clone from large disk to small one directly without extra preparation.


So there I was, moving VMs off of my main host (DL380 G7, 2x x5690’s, 192GB RDIMM), getting ready to replace the 8x 300GB RAID10 array I’ve been using for a while now with some 1TB disks and SSDs, awesome, right?

So the host was powered down, ready for an upgrade, and being the logical guy I am I decided to do some software upgrades.

I used the latest SPP and ran that through, for some reason I was using a BIOS from 2010? Once that was done I had updated firmware, so I moved onto ESXi. I’ve been running 6.0.0U2 for the longest time and thought this would be the ideal time to upgrade.

I got the HPE official ISO, ran through the upgrade, waited for it to boot annnddd….


Read More

HP desktop Windows 1803 update wdf violation bsod

Hey guys, to fix the WDF_VIOLATION BSOD, you will need to boot into the recovery enviroment, open CMD. Then you will need to ensure you know which partition your Windows is installed on. Then you will need to rename or delete the “HpqKbFiltr.sys” driver and once you’ve done that you can restart and Windows will boot sucessfully.This took us an entire day to locate and fix but it was well worth it, we really didn’t like the idea of remaging every PC with an image created pre-broken update. Hopefully this fix works for you also.

start a cmd prompt and navigate to the next directory:


del hpqkbfiltr.sys