Run a powershell sc…
 
Notifications
Clear all

Run a powershell script when a new domain is added.

1 Posts
1 Users
0 Reactions
4,461 Views
Posts: 0
Topic starter
Joined: 1 second ago

Id like to be able to run a powershell script to add a binding to my IIS autodiscover redirect site when a new domain is added within CloudPanel. Id use a command such as:?NewWebBinding Name “HTTP Redirects” IPAddress “192.168.209.153” Port 80 HostHeader?“autodiscover.newclientsdomain.co.nz”

naturally id replace the hostheader with a variable from cloudpanel that contains the clients domain with “autodiscover.” appended.

Is there a way to do this?

Share: