Unable to login to FTP Windows server plesk

If you are unable to login to FTP in windows server using plesk panel.Use the following steps for troubleshooting.

ftp cpanelplesk.com
Connected to cpanelplesk.com.
220 Microsoft FTP Service
User (cpanelplesk.com:(none)): admin
331 Password required for admin.
Password:
530-User cannot log in, home directory inaccessible.
Win32 error: Access is denied.
Error details: Authorization rules denied the access.
530 End
Login failed.
ftp> quit

For this first make sure that the domain is correctly pointed, If yes,then we need to update FTP in the server. For that use the following steps below:

To reconfigure ftp for single domain run the following commands:

"%plesk_bin%\ftpmng.exe" --remove-vhost --vhost-name=yourdomain.com
"%plesk_bin%\ftpmng.exe" --reconfigure-vhost --vhost-name=yourdomain.com

If this error occurs to every domain, then you can use the commands below to fix it for all domains:

"%plesk_bin%\ftpmng.exe" --remove-all
"%plesk_bin%\ftpmng.exe" --reconfigure-all

Done.