If you encounter Windows update error codes, you can check the System log in the Event Viewer, typically under the event source “WindowsUpdateClient” (though it doesn’t provide much info as always 😂). Another place to look is in the “C:\Windows\Logs\WindowsUpdate.log” file for Server 2012R2 / Windows 8.1 and below. For the later Windows version, you will need to use Event Tracing for Windows (ETW) to generate diagnostic logs.
Continue reading “Most Common WSUS Errors Codes”How to Install Python on Windows WSL
In this post, I’ve outlined the steps for installing specific versions of Python on WSL in an easy-to-follow manner.
Continue reading “How to Install Python on Windows WSL”Esxi Kickstart file in the network location problem during Scripted installation with CDROM
If the ks.cfg file is skipped although it’s placed in a correct network location for the semi-automated installation (booted from CDROM), you may need to check these steps in case you missed them.
Continue reading “Esxi Kickstart file in the network location problem during Scripted installation with CDROM”Simple Powershell Template Text Generator
Recently, I came across the need to generate multiple kickstart files. The usual approach involves using Jinja2 and Python. However, since I won’t be using logical expressions within the template and so a simple replacement of text will suffice for this, so I decided to create my own in powershell.
Continue reading “Simple Powershell Template Text Generator”Scan IP addresses through Esxi VMkernal Interfaces
Unlike the ESXi management interface, VMK interfaces used for vMotion can typically only be pinged within the same subnet, as they are not assigned a gateway IP address. Below is a shell script you can utilize directly on the ESXi host without the need for third-party IP ping tools.
Continue reading “Scan IP addresses through Esxi VMkernal Interfaces”My notes on Notepad++ Regular Expressions
It’s my notes on some regular expressions in Notepad++. I will add more as I go through.
Continue reading “My notes on Notepad++ Regular Expressions”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