Scripts to rename a PlugnCast domain

SUMMARY

The script allows to rename a PlugnCast domain with the PowerShell Windows tool

2019-09-04 renameDomain.ps1 V1.10.10 Download

BUG FIX, NEW FEATURES, MINOR UPDATES
  • Initial version
COMPATIBILITY
  • PlugnCast 3.10.51 (or above)
  • MS-Windows Server 2008, MS-Windows Server 2012, MS-Windows 10
    • Powershell scripts execution need to be authorized on the MS-Windows

INFORMATION


STEP 1 : CONFIGURE ALL YOUR DEVICES WITH THE NEW FRONTAL URL

Given that the frontal server URL owns the old domain name, the devices must change first their configuration.

If you have only few devices:

If you have a consequent amount of devices, change the server device configuration by executing a configuration script, which has to be named: configuration.js.

// ---- Configuring pull Webdav: uncomment the 4 lines below
disablePlugnCastG2();
setPlugnCastG3("http://<server_id_addr>:<port>/.frontals/.webdav/domain2/", 1, "login2", "password2");
setStatusServer("http://<server_id_addr>:<port>/.frontals/.webdav/domain2/.device-status/", 1, "login2", "password2");
setAddonServer("http://<server_id_addr>:<port>/.frontals/.webdav/domain2/.setup/", 1, "login2", "password2");

STEP 2: BACKUP

STEP 3: DOMAIN RENAMING (renameDomain.ps1)

.\renameDomain.ps1 'C:\Users\Public\Documents\Innes Plugncast Server' 'domain1' 'domain2'

The domain renaming is completed. Restart the PlugnCast Server with the icon PlugnCast Start.

STEP 4: VARIABLE AFFECTATION, PLAYOUT AFFECTATION, DEVICE REGISTERING

After the domain renaming:

Connect to the PlugnCast Web UI:

AUTHORIZE THE EXECUTION OF POWERSHELL SCRIPTS WHICH ARE NOT SIGNED

By default, your OS may not authorize to execute this Powershell script, because it is not signed. In this case, a Powershell error is returned:

PS > C:\temp\<script>.ps1
Impossible de load the file C:\temp\<script>.ps1.
C:\temp\<script>.ps1. is not digitally signed. You cannot execute the script on the current system. For further information on the script execution and the execution strategy definition, refer to the chapter about_Execution_Policies to the URL:
- https://go.microsoft.com/fwlink/?LinkID=135170.
    + CategoryInfo          : Security error: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnauthorizedAccess

To work around, contact your system administrator to help you to authorize such not signed Powershell scripts.