My web developer is trying to run a powershell script that uses the New-IISSiteBinding cmdlet. He is running it on a Windows 2016 web server running PS version 5.1.14 with IISAdministration module version 1.0.0.0 which does NOT have teh New-IISiteBinding cmdlet available. This seems to availalbe on Windows 19 PS version 5.1.17 with IISAdminsitration module version 1.1.0.0.
Is it possible to upgrade the IISAdministration module on Windows 2016 to 1.1.0.0?
I try to and run update-module IISADministration but receive the following error
S C:\Users\administrator.TECHPRO> Update-Module IISAdministration
pdate-Module : Module 'IISAdministration' was not installed by using Install-Module, so it cannot be updated.
t line:1 char:1
Update-Module IISAdministration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (IISAdministration:String) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : ModuleNotInstalledUsingInstallModuleCmdlet,Update-Module
However, when I run get-module, the module is in fact there. Can I accomplish what I am trying to do with Windows 2016?
PS C:\Users\administrator.TECHPRO> get-module
ModuleType Version Name ExportedCommands
Manifest 3.1.0.0 Microsoft.PowerShell.Management {Add-Computer, Add-Content, Checkpoint-Computer, Clear-Con…
Manifest 3.1.0.0 Microsoft.PowerShell.Utility {Add-Member, Add-Type, Clear-Variable, Compare-Object…}
Binary 1.0.0.1 PackageManagement {Find-Package, Find-PackageProvider, Get-Package, Get-Pack…
Script 1.0.0.1 PowerShellGet {Find-Command, Find-DscResource, Find-Module, Find-RoleCap…
Script 1.2 PSReadline {Get-PSReadlineKeyHandler, Get-PSReadlineOption, Remove-PS…