While attempting to re-configure a domain or sub-domain in IIS using the websrvmng.exe plesk tool, following errors occurred.
For a domain:
The system cannot find the file specified. (COM Error 80070002)
For a sub domain:
The system cannot find the file specified. (COM Error 80070002) at configSubdomain(sub.domain.com)
Some of the default folders were missing in the (sub) domain root folder.
The missing folders need to be restoried using the Plesk re-configurator. This feature checks files permissions + restores missing folders + creates missing system users for the (sub) domain. It can be executed via command line as follows:
Or using the Plesk Panel.
Plesk >> Domains >> domain.com. Check the problematic domain and click ‘Check permissions’.
This should eliminate the source and the command should run properly. For a sub-domain, the parent domain needs to be checked.