IT:AppCmd

Process

Syntax:

appcmd.exe set config -section:system.applicationHost/sites /+"[name='Default Web Site'].bindings.[protocol='https',bindingInformation='*:443:']" /commit:apphost

Examples:

Add SSL Binding in IIS 
appcmd set site "Default Web Site" /+bindings.[protocol='https',bindingInformation='*:443:']

Remove SSL Binding in IIS 
appcmd set site "Default Web Site" /-bindings.[protocol='https',bindingInformation='*:443:']

IMPORTANT: Note that this adds SSL to the website, but you have to then use netsh to bind the cert.

Resources