how to display subsites in powershell

Hi

Using SharePoint 2013 with powershell 3.

I try to use: get-spsite | get-spweb

But this displays both sub-sites and Site collections.

Is there any way to filter only sub sites?

br

bjorn

July 10th, 2013 6:44am

Can you try this?

get-spsite -limit ALL | get-spweb | ?{$_.IsRootWeb -eq $false}

Free Windows Admin Tool Kit Click here and download it now
July 10th, 2013 6:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics