• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Cannot rename domains

MicD531

New Pleskian
I'm trying to rename a domain in my panel and keep getting the following error:
Code:
Error: Execute websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com" failed with error code 1: External component has thrown an exception. In IIS7NativeProvider module Exception type: System.Runtime.InteropServices.SEHException at _CxxThrowException(Void* , _s__ThrowInfo* ) at IIS7ApplicationPools.copy(IIS7ApplicationPools* , auto_ptr<IApplicationPool>* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* srcName, basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* dstName)

Running
Code:
websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com"
in the Windows command line gives the following error:
Code:
Cannot find domain by name 'domaina.com'

Haven't found many leads on the web as to what this might be.
 
Last edited:
What about

subscription.exe --update example.com -new_name sample.com
 
You can try to change the domain name in plesk panel. In website and domains section click on hosting settings and change the domain name.
 
Back
Top