Does no one do web searches anymore???
Set-WebBinding
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello All,
I want to create a script in SCCM console where in it will deploy to a collection with below script conditions.
Can someone please help me with a power shell script where I want to add the machines IP address to it's IIS bindings.
Regards,
Swamy.
A machine usually has more than one IP address, maybe both IPv4 and IPv6, and possibly more than one NIC. You can use Get-NetIpAddress to get those addresses and you can be specific about which NICs you want to use. But how you name those interfaces and what their indexes are you'll have to determine. I imagine they'll differ from machine to machine unless all your machines are configured identically with the NICs in the same slots.
As for a script, what have you tried so far? Post it here if you need help with it or have a question about it.
IP address of the machine should be added to IIS bindings on the same machine.
You don't need to do that unless you have multiple IP addresses. The default binding is "*" which equates to any IP on the machine.
If you have multiple IP's and multiple sites, then you would need a DSC type script to define a specific application/site/IP on a given machine.