What's the difference between IISAdministration and WebAdministration
Asked Answered
S

1

5

Here's the docs for both modules:

And here's a couple articles detailing the release notes of IISAdministration

It seems that IISAdministration is the newer utility as of IIS 10.0

Questions

  1. Should IISAdministration be preferred over WebAdministration where possible?
  2. What are the major differences between the two?
Sosthenna answered 1/3, 2023 at 14:48 Comment(2)
MS covers this in their What's New for IIS 10: learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-10/… . Basically, IISAdministration is newer and faster, with some other benefits.Wellworn
If you hit any issue with WebAdministration (in fact a lot due to the original design), it is not likely to change any more. Use IISAdministration and that's the future. Note that IISAdministration has been back ported to IIS 8.x, so not exclusive to IIS 10.Apostate
I
6

Maybe this article can clarify your doubts: IIS PowerShell modules and OS versions

IISAdministration has one big advantage; the types returned by the commands are much more useful. While they are still XML wrappers, they are adorned with useful properties and methods that make the objects much more usable without relying on the commands:

If you’re using the old WebAdministration, you pretty much have to do everything with the PowerShell CmdLets or by embracing the XML. There’s no way to navigate from a site returned by Get-Website to its applications, as one simple example. The new module also works much better with PowerShell pipelining.

Intemperance answered 2/3, 2023 at 6:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.