Set-UDLicenseis used to install a Universal Dashboard license. The
-Licenseparameter expects the contents of a license file. To install a license, you the following command line.
Set-UDLicense -License (Get-Content .\license.txt -Raw)
If you set the
%UDLICENSE%environment variable, UD will load the license from it. This is good for cloud-based deployments.
$Env:UDLICENSE = (Get-Content .\license.txt -Raw)
One of the places that UD will attempt to load a license is from the ApplicationData folder. This folder is different depending on the operating system you are running. You will have to create the following folder and file structure. The contents of
license.licshould be the license contents you received after purchase.
Another place that UD looks for a license during startup is within the binary folder for UD. If you are running Windows PowerShell, this will be the
/UniveraslDashboard/net472folder. If you are running PowerShell Core, this will be the
/UniversalDashboard/netstandard2.0folder. The file should be named
license.licand include the contents of the license you received after purchase.