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

PowerShell – Detect an SSD Disk Using a Script

Here is a basic script that will output a simple onscreen message showing the type, bus and SSD status of a given drive letter. ;...