Ybbest
Ybbest

Reputation: 1550

PowerShell question

Hey I got the following ps for retrieving the site template from SharePoint,but I do not quite undersantd what does the second half of the script( | ? {$_.IsHidden -eq $false }) does? Can someone explain this to me please as I am fairly new to PS.

Get-SPWebTemplate | ? {$_.IsHidden -eq $false }

Upvotes: 0

Views: 133

Answers (1)

rerun
rerun

Reputation: 25505

The ? operator is an alias for where-object so the script is asking

Does the property isHidden from the object passed to me from get-spWebtemplate cmdlet property = false if so pass it on in the pipe line

Upvotes: 1

Related Questions