Unattended Installation of AD FS 2.0 Server
Unattended Installation of AD FS 2.0 Proxy
Unattended Initial Configuration of AD FS 2.0 Server
Unattended Initial Configuration of AD FS 2.0 Proxy
Installation of IIS 7.0 or IIS 7.5 (unattended)
Import certificate with private key into the local computer store (unattended)
Bind your SSL certificate to the Default Web Site (unattended with powershell) You'll have to either prompt user for $certname and $certpass or hard code them in the script #install powershell servermanagercmd.exe -install PowerShell #add cert certutil -f -importpfx -p $certpass $certname #assign .pfx to iis New-WebBinding -Name "Default Web Site" -IP "*" -Port 443 -Protocol https
#Get thumbprint for specific cert
$a=Get-ChildItem cert:\LocalMachine\MY | Where-Object {$_.Subject -match "CN=[$certname]*"} get-item cert:\LocalMachine\My\$a.thumbprint | New-Item 0.0.0.0!443
Set oIIS = GetObject("winmgmts:root\WebAdministration") '''''''''''''''''''''''''''''''''''''''''''''' CREATE SSL BINDING'''''''''''''''''''''''''''''''''''''''''''''oIIS.Get("SSLBinding").Create _ "*", 443, "4dc67e0ca1d9ac7dd4efb3daaeb15d708c9184f8", "MY"
'''''''''''''''''''''''''''''''''''''''''''''' ADD SSL BINDING TO SITE'''''''''''''''''''''''''''''''''''''''''''''Set oBinding = oIIS.Get("BindingElement").SpawnInstance_oBinding.BindingInformation = "*:443:"oBinding.Protocol = "https" Set oSite = oIIS.Get("Site.Name='Default Web Site'")arrBindings = oSite.Bindings ReDim Preserve arrBindings(UBound(arrBindings) + 1)Set arrBindings(UBound(arrBindings)) = oBindingoSite.Bindings = arrBindings Set oPath = oSite.Put_
*Optional - Require SSL on the Default Web Site (unattended)