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 – Delete a Folder or File from the Command Line

In this Ask the Admin, I’ll show you how to use Windows PowerShell to delete one or multiple folders from the command line. PowerShell to Delete a Single...

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