Powershell Script for Day-to-Day Active Directory Operations

Hi fellow scripters, I’m pretty sure this handy script will help system admins to make a day-to-day AD operation super easy. You can quickly jump into the screenshots to get an overview idea. Note that Powershell module for AD is required for this script.

Things to note:

By running this script, all users/groups in the text file or all child users/groups under the defined OU will be affected. So, make sure you are completely aware of the explanation of parameters you want to do with the script. The suggestion is to test on your non-production systems first.

Continue reading “Powershell Script for Day-to-Day Active Directory Operations”

Set Any Attribute of AD users by using PowerShell Script

Updated Post: Now, instead of the SamAccountName you need to use Identity in the csv header to identify users (which is the existing SamAccountName of users).

Eg: if you want to modify the user who has the SamAccountName user01 to user001, then you need to put user01 under the Identity column and user001 under SamAccountName column in the csv file.

Continue reading “Set Any Attribute of AD users by using PowerShell Script”

How to Renew Root Certificate of Microsoft CA with a longer validity period

You might have defined the root certificate validity period of Microsoft internal CA as 5 years at initial installation, and what if you want to change the validity period to a longer duration like 10 or 20 years later ? For this, we will need to create a CaPolicy.inf file under windows installation directory (typically C:\Windows) and put some settings and start the renewal process.

Continue reading “How to Renew Root Certificate of Microsoft CA with a longer validity period”

The Internet Explorer Registry Tweaks: How to set Page Margin, Fonts, Paper Sizes and Default Page

The Internet explorer is a bit outdated life-long browser for now. And in this post, I’d like to show some registry tweaks that you can make a bulk computers deployment of page size and font related settings. Below are the topics I cover in this blog.

  • Page Margin & Fonts
  • Custom Paper Sizes
  • Default Page Size

Continue reading “The Internet Explorer Registry Tweaks: How to set Page Margin, Fonts, Paper Sizes and Default Page”

Migrate eBlogger to WordPress : How to add a Java Script Redirect

I migrated my blog from eBlogger to WordPress (a new domain name with new hosting) on Aug, 2021 using the All-in-One WP Migration plugin. It’s a pretty easy process by following the guide and video shown in the plugin page. But, I have to do 2 things manually after migration:

  • Replace all the images on my blog by uploading to the site gallery because it’s still using the old path which is hosted in eBlogger, which is quite a tiresome task ;D
  • Add a java script code to my eBlogger, so the clients visiting the old site (whatever the URL they called) are redirected to new domain.

Continue reading “Migrate eBlogger to WordPress : How to add a Java Script Redirect”

Network Connection Notify Tool is Released

It will check the connection continuously at specified intervals and notify users with voice or desktop notification if the connection change is detected. If you don’t know how to set the Tiebreaker or Interval, you can just use Check Type template dropdown. Alternatively, you can use this as a network port probing tool to continuously monitor the listening port.

If you want to start quickly, get a packaged 64-bit version from GitHub. The voice type, speed, volume, notification message can be customized, with the logging option available.

Continue reading “Network Connection Notify Tool is Released”

Send keystrokes of the clipboard contents with AutoHotkey

I have seen many times where I cannot paste the text in the remote login session due to the policy of clipboard restriction. And, here is the little Auto Hotkey script that can automatically type whatever the clipboard has. Save the following line of code in notepad with .ahk extension and run the script in the background. Make sure AutoHotkey program is installed in your computer first. Or you can compile the script into executable file to use in other computers where AutoHotkey is not installed. See Fig-1.

Continue reading “Send keystrokes of the clipboard contents with AutoHotkey”

PyQt5: Get Windows Service with Start/Stop Compliant Status

I do some learning in python GUI programming in PyQt5 a few weeks ago to do some useful utility tools. And, here is my very first application to check windows services compliant check based on service status and startup type. I have compile as single windows executable with pyinstaller with the following command.

Continue reading “PyQt5: Get Windows Service with Start/Stop Compliant Status”

Check or Verify Esxi Credentials on Multiple Esxi Hosts

There are times that you will need to check if esxi credentials are correct & consistent across the multiple hosts, and this PowerCLI script will save your time a lot. It uses TCP port 443 so it takes a bit longer than using ssh, but the good thing is you do not need to open port 22 from your client. The process is quite simple Continue reading “Check or Verify Esxi Credentials on Multiple Esxi Hosts”

PowerCLI to set Evacuated Esxi Hosts into Maintenance Mode

It’s the little script that will set all esxi hosts into maintenance mode when no VMs are left running, particularly useful when you’re doing the bulk VMs migration or shutdown for Esxi maintenance. Continue reading “PowerCLI to set Evacuated Esxi Hosts into Maintenance Mode”