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...

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...