Monday, November 23, 2020

Remove a disconnected Mailbox from Exchange 2010

This is a quick how to which will enable you to remove any disconnected mailboxes from exchange 2010, since the purge mailbox feature is no longer available. (Source: spiceworks).

Monday, November 9, 2020

Query Active Directory from Excel

This is and old post from Remko Weijnen with some comde to get information from Active Directory.

I had to lookup some users in Active Directory today which I received by mail. Offcourse I got full users name while I needed either samAccountName or full adsPath. Usually I write a small VBS script to do the lookup and paste this in Excel for further processing. But today I decided that an Excel function to do the lookup would be nice. So I wrote it.

The function is called GetAdsProp and allows you to search on a specific AD field in the whole AD tree and return the value of another field.

Friday, January 3, 2020

How to remove the recovery partition

These are the steps to remove the recovery partition in windows, thanks to https://superuser.com/questions/1073883/cant-remove-recovery-partition

  1. Go to start and type cmd (this is called command prompt)
  2. In command prompt type diskpart and hit enter
  3. Type list disk and hit enter
  4. From the list of disks find the one you want to work with (I believe in your case there is only one so it should be easy)
  5. Once you find the drive you are looking for type select disk 'numberofdrive'
  6. Now type list partition and find the partition you want to work with
  7. Once you have identified the partition in question type select partition 'numberofpartition'
  8. Now type delete partition (WARNING ONCE YOU DO THIS THERE IS NO GOING BACK) and hit enter , if it says "cannot delete a protected partition..." use delete partition override (Note you will also have to repeat these steps with the partition in front of the recovery partition if you plan on extending the system volume)
  9. Once it is finish type exit and hit enter