• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to rebuild subdomain in IIS ?

igoldman

Regular Pleskian
Hello ,

I know that if I would like to rebuild domain in IIS through Plesk Then I need to run the following command :

cd %plesk_bin%
websrvmng.exe --remove-vhost --vhost-name=domainname
websrvmng.exe --reconfigure-vhost --vhost-name=domainname

but if I would like to rebuild subdomain , then what do I need to run ?

for example if I have the following subdomain : ilan.goldman.com
then which command I need to run for rebuilding it in IIS ?
 
You should execute the following command to rebuild subdomain in IIS:
cmd>websrvmng --update-subdomain --vhost-name=<domain> --subdomain=<subdomain>
and
cmd> websrvmng --remove-subdomains --vhost-name=<domain> [--subdomains=<sub1[;sub2;...]>]

Also you can execute "websrvmng --help" command to get more information about available commands.
 
but which command need to be first ?

are you sure that those commands rebuild the subdomain in IIS and not just delete it from IIS ?
 
1.
a) cd %plesk_bin%

b) C:\Program Files\SWsoft\Plesk\admin\bin>websrvmng.exe --remove-subdomains --vhost-name=test.somedomain.com --subdomains=subdomain-name
c) C:\Program Files\SWsoft\Plesk\admin\bin>websrvmng.exe --update-subdomain --vhost-name=test.somedomain.com --subdomain=subdomain-name
2.
Yes it will rebuild subdomain (However - you can backup all domain - before you run command)

John S.G.
 
Back
Top