- Plesk for Windows
How may the IPs be changed for the certain subscriptions?
Collect the list of subscriptions you are about to change IP addresses in text file
C:\domains.txt. Write each subscription name in new line.
To get a list of all subscription run the following command in Command Line:
C:\> "%plesk_bin%\dbclient.exe" --direct-sql --sql="select name from domains where webspace_id=0" > C:\domains.txt
Make sure, that the file C:\domains.txt contain only domain names and no additional symbols.
- Open Command Line and run the following script:
C:\> for /F "tokens=1" %d in ('type C:\\domains.txt') do "%plesk_cli%\subscription.exe" -u %d -ip <NEW_IP>