Restrict who can use an Encrypted File
- Last UpdatedNov 13, 2025
- 1 minute read
If you wish to not only encrypt a pml file, but also to restrict the sites at which it can be run, you can include extra tests within the pml before encrypting it. For example, the q banner company command returns a company dependent string from the license file, and you can test that within your encrypted pml file. In this case the test is that the string includes "AVEVA".
var !company banner company
if not !company.matchwild('*AVEVA*') then
return error 99 'This file is not authorised for $!company'
endif