Setup your own Monitoring – Disk Space Utilization Monitoring tool for free

It is always recommended to keep tracking of the disk space utilization for you servers. This will help us to get the idea of our future requirement. There are multiple tools available for track this but you have to pay for most of them. Recently I also had similar kind of requirement and I was asked to provide the free solution for this.

There are some free tools available but all of them having some short of limitation, and also for security reason, it is not recommended to install any free tools on the server. So, I had to look for some alternatives, and I thought why we don’t use the PowerShell to get the disk space utilization details daily and kept it in MS Access database using Microsoft Access Database Engine 2010, which is available for free.


How to Setup:

First you have to download and install MS Access Database Engine. Once the installation complete, you have to create a blank database with a table name DiskUtilization which will have following field.


If you do not have MS Access installed, then you could also download and use the following blank database for Disk Utilization.

  DiskUtilization (560.0 KiB, 88 hits)

Continue reading

Migrating a VMWARE VM to AWS using AWS PowerShell

In this topic we will describes the necessary steps to migrate a VMWare VM to the Amazon Web Services (AWS) using PowerShell. You could also migrate VM using AWS command line tools, but I found using PowerShell is much easier than command line tools.


Preparing VMware Guest:

There are few things need to be fix before you start migrating VM to AWS.

  • Remove all snapshots from snapshot manager.
  • Partition must be IDE – All the partition must be IDE, if anyone of them is SCSI, you have to convert it to IDE.
  • Primary system drive of the VM must be C:\ drive, if not you have to change it. (
  • Uninstall VMware Tools.
  • You must enable Remote Desktop and also make sure it is not getting blocked by firewall.
  • Reset local administrator password. It is always recommended to create one additional local admin user account.

Continue reading

How to reset windows password (offline) on AWS Windows Instance

In simple word changing/resetting windows password is a very simple task using any third party free or paid tools as long as you able to access server console. Even on virtual platform like Hyper-V VMWare you have access to server console, but when it comes to AWS, there is no way to access console of a virtual instances. So, those tools will not work, as those required user input / virtual CD or USB boot, which is not available in AWS.

I have found a solution to reset the password of any AWS windows instance. If you know the local user id, then it will be very easy to reset the password of that account.

You have to perform the following steps.

  • First you have to stop the instance.
  • Then you have to identify the root volume (/dev/sda1) of that instance. You could get this information using one simple function I wrote (GetInstanceVolumeDetails InstanceID).
  • Once you identified the root volume, Took a snapshot backup of root volume.
  • Now you have to dismount this volume and remount it on any other working instance as additional volume.

  • This volume mounted as G: drive on working instance. Now you have to create one service using srvany.exe ( to rest the password of Administrator account during system startup. To configure this you have to load up the system registry hive of faulty instance from G:\Windows\System32\Config\SYSTEM as _SYS under HKEY_LOCAL_MACHINE and imported following registry

  • Now placed srvany.exe under G:\ drive.

Continue reading