Purpose
The purpose of this article is to provide information about moving a PowerShell Universal license from one server to another.
Process
In order to move a license from one server to another, you will need to first have your licensed server up and running.
Next, install PowerShell Universal on a second server.
At this time, you can install the license file onto second server. To locate your license file, you can do one of the following.
- Retrieve your license file from licenses.ps1 within the PowerShell Universal repository directory (this may not exist on newer versions)
- Retrieve your license file from the
Database. It will be present in the Licenses table, and you will need to copy the LicenseText contents and store them in a file.
Once you have a file with your license contents, you can install it into the new server. This will not affect the old server as we provide a buffer of time to allow for migrations of licenses.
Once the new server is licensed, navigate to the old server and delete the license from the License page within the admin console.
SQL Persistence
If both servers are using the same database, there is no need to migrate the license. Version 4 and later of PowerShell Universal will store the license file directly in the database. Connecting the new server and stopping the old server are all that is required in order for the new server to begin using the license.