How can I use IIS administration commandlets on Windows Server 2012 R2?
Solution 1:
As jScott correctly remarked in the comments, Get-IISSite ist not included in Windows-Server 2012 R2, but only in later Windows Server versions and in Windows 10 or higher. Import-Module WebAdministration; (Get-Module WebAdministration).ExportedCommands
is very similar and works under Windows Server 2012 R2 though.