Skip to content

Comandos úteis para o Plesk windows

Plesk Binaries

Located in the %plesk_bin% directory

1) websrvmng.exe

To install hosting for a domain

websrvmng.exe --install-vhost --vhost-name=<domain name>

To remove hosting for a domain

websrvmng.exe --remove-vhost --vhost-name=<domain name>

To reconfigure hosting for a domain

websrvmng.exe --reconfigure-vhost --vhost-name=<domain name>

To reconfigure a subdomain

websrvmng.exe  --update-subdomain --vhost-name=<domain name> --subdomain=<subdomain>

Passwords for system user and IIS user can be unsynchronized or synchronised using

websrvmng.exe  --update-anon-password --domain-name=<domain name>

To reconfigure webmail

websrvmng.exe  --reconfigure-webmail
defpackagemng.exe" --fix --type=webmail

2) mchk.exe

To Reset server-wide and domain’s mail settings forcefully

mchk.exe --all --fix-all

To Check and restore mail settings for a domain defined

mchk.exe --domain --domain-name=sampledomain.com

To Check and restore only server-wide mail settings

mchk.exe --global-settings

3) protdir.exe

protdir.exe --create Protected_Dir -domain domain1.com -add_user MyGuest -passwd "MyPass"

To set a password for the user of a web-protected directory:

protdir.exe --update Protected_Sample -domain somewhere.com -update_user johndoe -passwd Password1

To remove protected directory user:

protdir.exe --update Protected_Dir -remove_user johndoe

4) Subdomain.exe

subdomain.exe --create subdomain2 -domain domain1.com -hard_quota 50 -ssi true

To remove subdomain1.somewhere.com from somewhere.com domain:

subdomain.exe --remove subdomain1 -domain somewhere.com

To change the existing subdomain name subdomain1.somewhere.com to the new one – subdomain1_new.somewhere.com

subdomain.exe --update subdomain1 -domain somewhere.com -new_name subdomain1_new

To enable FrontPage support for subdomain1.somewhere.com:

subdomain.exe --update subdomain1 -domain somewhere.com -fp true

To retrieve information on subdomain1.somewhere.com:

subdomain.exe --info subdomain1 -domain somewhere.com

5) domain.exe

domain.exe --create domain1.com -clogin John_Doe -dom_user false -www true -hosting true -ip 143.230.22.14 -cgi true -notify false

To retrieve sampledomain.com domain information:

domain.exe --info sampledomain.com

To rename sampledomain.com domain to sampledomain1.com domain:

domain.exe --update sampledomain.com -new_name sampledomain1.com

To enable domain user account with password “somepass” for sampledomain.com domain:

domain.exe --update sampledomain.com -dom_user true -du_passwd somepass

To set name for domain user of a sampledomain.com domain to “John”:

domain.exe --update sampledomain.com -du_pname "John"

To enable hosting for sampledomain.com domain:

domain.exe --update sampledomain.com -hosting true

6) plesksrvmng.exe

To reset the password for admin control panel

plesksrvmng.exe

To get the existing password for the admin control panel

plesksrvmng.exe -get

7) statistics.exe

Updates the statistics for all domains on the server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.