3

Is there a PnP PowerShell equivalent of this CSOM command :-

$webapp=Get-SPWebApplication $WebApplicationUrl ?

Which gets the details of the Web Application at $WebApplicationUrl (On-Premises Only)

2
  • Perhaps if you could tell us why do you want that object or what would you like to do with it, maybe we can help you there.
    – AmitWiki
    Commented Mar 15, 2017 at 9:23
  • I want be able to list the web application with the url $WebApplicationUrl so I can find all of the site collections within that web application and the owner of the web application. Once I have the site collections I can get the features, the workflows and the owners of each site collection. Commented Mar 16, 2017 at 10:38

2 Answers 2

0

Does not look like there are specific Web Application cmdlets. At least nothing is shown on the PnP-PowerShell list of cmdlets.

1
  • I had a feeling somebody was going to say that. I could not find it either. Commented Mar 13, 2017 at 17:04
1

The reason for that is that there is no equivalent to Get-SPWebApplication in CSOM itself because CSOM provides access upto site collection level only.

So, PnP being a wrapper around CSOM wont be able to access the web application object.

web application in CSOM

Get web application in CSOM

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.