Cannot Activate Windows

Moving an AWS AMI from one region to another causes Windows Validation to fail (180 days between checks). To tell Windows OS what validation server to use, run this powershell …

Initialize Disk Volume

Drive is attached but not usable in Computer Manager. – Launch command line – Run C:\> diskpart 12345list disk select disk 1 online disk attribute disk clear readonly quit

Recover Windows License Activation Key

Create a vbs file and run it: 1234567891011121314151617181920212223242526Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Function ConvertToKey(Key) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 …

Oracle Managed Driver

1). Launch Visual Studio and install OMD – Click Tools > NuGet Package Manager > Package Manager Console – Type: Install-Package Oracle.ManagedDataAccess – Locate the dll Oracle.ManagedDataAccess.dll and copy it …

Restart Cortana via Script

1taskkill.exe /S PCNAME /IM SearchUI.exe Schedule in task scheduler, tell to run only if logged into PC and set to run at highest privilege level.

Most Useful Git Commands

Set your details git config –global user.name “John Doe” git config –global user.email “john@example.com” Use –global to set the configuration for all projects. If git config is used without –global …

Parsing VSS History Files

Parse those nasty VSS history files. Put them in a format more suitable for Gource. 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace ConsoleApplication2 { …