5 ms·
That example you gave is from 2008. You would use the current PowerShell Cmdlets provided for managing IIS. IIS:\>New-WebBinding -Name "Default Web Site" -IP
by _mgr 11y ago
That example you gave is from 2008. You would use the current PowerShell Cmdlets provided for managing IIS.
IIS:\>New-WebBinding -Name "Default Web Site" -IPAddress "*" -Port 80 -HostHeader TestSite
https://technet.microsoft.com/en-us/library/ee790599.aspx https://technet.microsoft.com/en-us/library/ee790599.aspx
- nailer 11y agoEdit: updated per research. Wouldn't it be, for his example of changing the port: Set-WebBinding -Name 'RadWebServer' -IPAddress "*" -Port 443 -PropertyName Port -Value 4430 I don't have a huge amount of PowerShell experience so maybe that's incorrect or has extra bits.
- _mgr 11y agoYes it would be as the OP's question was about changing the binding. My bad.
- mcguire 11y agoThat's...comforting. By the way, please stop. I'm having SMIT flashbacks. Oh, god, the running man. Don't trip, donttripdonttripdontripdontrip...
- jfb 11y agoDid you have to mention SMIT?
- th0waway 11y agoAnd THAT is the other thing. bash 7 years ago is the same as bash today, no changes based on some corporate overlords marketing idea of the month. Powershell is still in flux, and with MS as the owner, when will it ever be stable?
- bbatha 11y agoYou're comparing the IIS management command lets to bash. PowerShell the language is largely the same, the same as bash. A more apt comparison would be to apachectl and the apache config files, which have changed.