Although ‘code is poetry’ idiom is well known, for my usual readers this is a post that fits under the software category!
Otherwise for people who’ve been knocked about using ‘PkgMgr’ with an error of this sort: ‘Note: PkgMgr.exe has been deprecated. Please update your scripts to use DISM.exe to install, uninstall, configure and update features of and packages for Windows’, well below is an example of how to do it using PowerShell (on Windows 10 specifically):
Help on this command was not available and ready, as we’ve come to expect from our beloved web, so after a bit of divide and conquer (and experimentation) I found the above to work. It enables the IIS and ASP features, along with .Net extensibility (3.5 and 4.5) as well as web Application Initialization (to keep your apps ready an willing).
Please share this command if you find it useful..