Change all users to an alternate domain suffix

In Active Directory users and computers, right click Queries> New. Give it a name, click “define query”. Stay on the “Users” tab. Select “Is not” and type an invalid name like testtesttest. Click ok, ok. It should return a result with all users whose name is <<not>> testtesttest. Select all, right click> Properties. Go to Account tab> check “UPN Suffix” and change it to the appropriate suffix. That’s it! There are PowerShell methods to do this too but when handling hundreds of user accounts, you have to be absolutely careful in PowerShell. There are solutions online that work fine that I am not going to post here. This is purely for the GUI. Good luck!

Updating InvoiceNinja on Windows Bitnami Install (Also works with Linux)

This guide will show you how to update your Bitnami NinjaInvoice Stack on Windows to the latest. Note: This did work with no issues going from to 2.9.1 which is the current version as of today. For Linux, review steps 6-12.

  1. Navigate to C:\Bitnami\invoiceninja-\apps\invoiceninja\htdocs
  2. Download the latest copy of InvoiceNinja from https://www.invoiceninja.com/self-host/
  3. Extract the contents of the freshly downloaded zip file
  4. I suggest renaming the HTDOCS folder before doing this… it creates an extra step or two but it might be worth it.
  5. Create a new htdocs folder
  6. Paste all of the contents of the downloaded zip file into the folder (or www\ninja folder for Linux).
  7. Go to your OLD install and copy the .env in the root directory to your new folder. This is the file that contains settings such as database connection settings.
  8. Go to your url with /update at the end. IE: www.mywebsite.com/ninja/update
  9. Wait a while for the upgrade.
  10. It should say successful. In a new tab, attempt to browse to the page! Should be updated and good to go.

Note: Bitnami no longer supports InvoiceNinja. You may have a hard time finding a copy. It’s relatively easy to install on Centos with Apache in my experience. The documentation for install is pretty great too.

Space Use Scanner (Free Utility)

Is your hard drive full and you have no idea why? I use this little utility called Space Use Scanner. You can download it here: www.steffengerlach.de. It shows you a graphical chart of your hard drive. You can actually click any portion of the graph to see more details about what in that folder is using so much space. [This actually points out hiberfil.sys (Hibernation file and system info) and pagefile.sys (virtual memory stored on hard disk) as taking up a lot of space most of the time.]


The screenshot is from: http://www.steffengerlach.de/. I did not make the screenshot above. Please visit the site to download the freeware.

Removing GRUB Bootloader

I installed Linux a while ago and found myself with the GRUB bootloader. This is definitely a pain and means I have to go through GRUB, select the OS I want to run, then go through Windows. For now, I just want Windows. Perhaps I will do the Linux thing through a VM or something similar. Here is a link that will show you how to get back to your original Windows Boot Loader.



Use Robocopy to make a mirror image of a drive. This is essentially a Windows method of backing up files to another location. Works great in a batch file with a scheduled task to maintain backups and sync data across a local computer to a network share (or drive to drive).

robocopy (/mir – MIrror) (local drive) (destination drive) (/r:x – retries) (/w:x – wait period before trying again)

robocopy /mir C:\localfiles \\networkshare\myfiles /r:1 /w:1

NOTE: Quotes are required around source or destination IF it has a space.

Use Task Kill on Remote Computer

Windows comes with a nice command line option that will allow you to close a process. The way I typically do this is as follows:

taskkill /f /im processtokill.exe

That closes the process according to the process name (under process tab in explorer). It force closes an application that is not responding pretty much instantly. How to do this on a remote computer?

taskkill /s computername /f /im processtokill.exe

*You may be required to put in username & password!!!