And

The -and operator will return true if the values on the left-hand and right-hand side are both true.

For example, each of the following returns true:

$true -and $true
1 -lt 2 -and "string" -like 's*'
1 -eq 1 -and 2 -eq 2 -and 3 -eq 3
(Test-Path C:Windows) -and (Test-Path 'C:Program Files')
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.83.150