Question
How to recreate system users for Plesk for Windows?
Answer
Note: It is recommended to use steps provided in How to restore Plesk installation on a new Windows server after disaster
For Plesk Onyx 17.8 and newer
-
Connect to the server via RDP
-
Restore Plesk Administrator and service accounts:
C:> plesk sbin usermng –install-plesk-admin
plesk sbin usermng –install-psaadm
plesk sbin usermng –install-service-accounts -
Restore Plesk user groups:
C:> plesk sbin usermng –install-panel-users-group
-
Restore system users for all subscriptions:
C:> plesk bin repair –repair-all-webspaces-system-users
-
Sync passwords with the system users:
C:> plesk bin repair –synchronize-impersonation-storage
-
Create File Sharing users:
C:> plesk sbin websrvmng –create-fs-users
-
Restore anonymous accounts:
C:> plesk sbin websrvmng –configure-anonymous-access
-
Reconfigure Plesk IIS sites:
C:> plesk sbin websrvmng –configure-plesk-website
-
Repair IIS bindings:
C:> plesk repair –web -y
-
Sync Application Pools passwords
C:> plesk sbin websrvmng –update-accounts-password
-
Repair site preview:
C:> plesk bin repair –reconfigure-site-preview
-
Repair FTP sites:
C:> plesk bin repair –reconfigure-ftp-sites
-
Fix Windows Registry permissions
C:> plesk sbin ApplySecurity –apply-to-plesk-registry
plesk sbin ApplySecurity –apply -
Restart Plesk services:
C:> plesk sbin plesksrv -restart
-
Recreate MailEnable users IME_ADMIN and IME_USER:
-
Start the MailEnable Installer:
C:> “%plesk_dir%Mail ServersMail EnableBinMEInstaller.exe”
OR
C:> “C:Program Files (x86)Mail EnableBinMEInstaller.exe”
-
Select the second entry (Web application reconfigure)
-
Enter the new password for system users and click on Ok
-
Select (MailEnable WebMail) MailEnable Webmail IIS binding for webmail and click Next
-
Uncheck Configure web admin as an IIS Virtual Directory and click on Next
-
For Plesk Onyx 17.5 and earlier
-
Connect to the server via RDP.
-
Open Local Users and Groups snap-in by executing the following command in command prompt:
C:> lusrmgr.msc
In case the server is a domain controller, Active Directory Users and Computers should be opened instead:
C:> dsa.msc
-
Re-create Plesk Administrator user. It must be a member of Administrators group.
Starting from Plesk Onyx, it can be done with the command below:
C:> plesk sbin usermng.exe –install-plesk-admin
-
Re-create Parallels Panel users group.
-
Run Plesk Reconfigurator > Repair Plesk installation tool and check options Plesk Server Accounts, Plesk Services.
-
In Local Users and Groups (or Active Directory Users and Computers) snap-in create IUSRPLESK_sqladmin user and repair MSSQL Webadmin:
C:> “%plesk_cli%/repair” –reconfigure-mssql-webadmin-site
C:> “%plesk_cli%/repair” –update-mssql-users-permissions -
Re-create Plesk system users as follows:
C:> “%plesk_cli%/repair” –repair-all-webspaces-system-users
C:> “%plesk_cli%/repair” –regenerate-web-server-users-password
C:> “%plesk_bin%dbclient.exe” –direct-sql –sql=”SELECT displayName FROM domains” > domains.txt
C:> for /f “skip=1” %i in (domains.txt) do “%plesk_dir%binrepair.exe” –reconfigure-web-site -web-site-name %i
C:> “%plesk_dir%binrepair.exe” –synchronize-protected-directories-storage
C:> “%plesk_dir%binrepair.exe” –repair-all-webspaces-security
C:> “%plesk_dir%binrepair.exe” –synchronize-impersonation-storage
C:> “%plesk_dir%binrepair.exe” –synchronize-protected-directories-storage
C:> for /f “skip=1” %i in (domains.txt) do “%plesk_dir%binrepair.exe” –repair-webspace-security -webspace-name %i -
Re-create FTP…