VBScript – Get the Current Script Directory in VBScript

VBScript is fairly straightforward the full path of the running script is available in WScript.ScriptFullName and then you can use the FileSystemObject class to get the...

Get the Current Script Directory in PowerShell, VBScript and Batch

Overview This post shows how to quickly get the current script directory using PowerShell, VBScript and Batch – the most commonly used scripting languages for...

PowerShell – Comparing Two Arrays

Find difference in two array $Array1=@("John","Mark") $Array2=@("Mike","Paul","Bill","John","Mark") $ArrayDiff=$Array2 | Where {$Array1 -NotContains $_} Find common in two array $Array1=@("John","Mark") $Array2=@("Mike","Paul","Bill","John","Mark") $ArrayDiff=$Array2 | Where {$Array1 -Contains $_}

PowerShell – Change Error Text And Warning Text Colors

How could such a nice tool have such a terrible choice of colors for errors and warnings? I am talking about the ISE and...

How To Install CentOS 7

In this tutorial I'll be walking you through simple and easy steps to get started with CentOS 7 as a VM on VirtualBox. I'm using a CentOS...

Update HKCU Registry from the System Account using PowerShell

If you want to Update HKCU Registry from the System Account for the current logged on user HKEY_USERS hive. Use the below code. I...

How to remove forgotten PIN in Windows 10 with password

If you forgot your PIN code but still remember your password, it can be an easy task to remove the forgotten PIN. 1: Sign in to...

Reset Windows 2012 Local Administrator Password

When forgot your Windows 8 password having no reset disk but you have an available Windows 8 setup disk (installation disk), that's great. Jut...

Reset Windows 8 Local Administrator Password

When forgot your Windows 8 password having no reset disk but you have an available Windows 8 setup disk (installation disk), that's great. Jut...

Reset Windows Server 2008 R2 Local Administrator Password

When forgot your Windows Server 2008 R2 password having no reset disk but you have an available indows Server 2008 R2 setup disk (installation...