Posts

Showing posts from June, 2014

Powershell script to read and validate Windows DNS servers

If you've ever had to administer a Windows DNS server you likely know that there are limited tools for cleanup.  I wrote this script to read the entire list of entries from a specific domain in DNS and then ping each address to see if it was live or not.  That way I can easily go back and investigate the ones are show up as dead.  It writes it all to an Excel spreadsheet. Watch for word-wrapping... #====================================================================================== #          File Name : DNS-Validator.ps1 #    Original Author : Kenneth C. Mazie (kcmjr AT kcmjr.com) #                    : #        Description : Used to read entries from Windows DNS and ping check each. #                 ...

Powershell script that will set GVLK keys

Have you ever needed to programmatically set the KMS keys on a bunch of systems?  This PowerShell script allows you to do that. Feed the script with the name of the KMS server, or you can hard-code it if you prefer.   The script detects the OS version and sets the appropriate GVLK (generic) KMS key.  It then sets the  location of the KMS server itself and attempts to activate the system.  Lastly it pops up the result.  Everything is done by leveraging the existing SLMGR VB script on every Windows system. Place the script on a common server and call it from the system to be activated.  That can be from a one-time run key, manually, or from a remote PowerShell session. I also included the full list of GVLK keys and Windows OS version numbers at the end for reference.  Remember that by themselves these keys will not activate systems, you need to use them in conjunction with a fully licensed KMS server. #================================...