Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Compare 2 arrays of strings

$
0
0

Hello,

Since I'm new to PowerShell, I've been over this for over a day on this and still can't find a solution.

What I need is a method of comparing $list_bundle to $list_app and if they have the same strings in them, to return $true.

$list_bundle = @("Office13", "Office10", "Exchange", "R_Desktop")

$list_app = @("Office13", "Office10", "Exchange", "R_Desktop")

Can you help me please?

 

Best regards,

Dimo


Viewing all articles
Browse latest Browse all 6937

Trending Articles