You can also use PowerShell for license management. That way it’s possible, for example, to integrate the activation of new users into automated processes.
- Log in to the license server with a user account that has administrator permissions and is a member of the local ThinPrint Configuration Admins group.
- Run PowerShell for the first time as administrator.
- Set the policies to import and use the PowerShell modules that were created when installing License Server.
To do so, enter the following command during the first use:
- Confirm the adjustment of the Policy with Y for yes (arrow).
Import PowerShell module
Each time you open a PowerShell session or run a script, you have to import the PowerShell modules. For this, enter the following command on the license server and confirm with Enter.
Remote access to TPPowerShell
- On the license server, run the following generic PowerShell cmdlet (depending on the age of the Windows version):
- On the remote computer, run the following cmdlet:
Enter-PSSession -ComputerName <license-server-address> -Credential <credentials>
Enter-PSSession -ComputerName tp-lics-06.ourdomain.local -Credential (Get-Credential -Message "Please enter your credentials." -UserName "ourdomain\Administrator")
- If not already running on the license server, then run remotely:
Overview of PowerShell commands
To get a list of all available commands (cmdlets), enter the following:
Get-Command -Module TPPowerShell
Then the available PowerShell commands will be displayed.
The following commands (cmdlets) are available:
• establishes the required connection to the license server
• user name and password required
|closes an existing connection to the license server
|returns the number of used, free, and blocked licenses, as well as whether the number of users is limited or unlimited
|switches between the license activation modes automatically and manually
|displays the list of imported ThinPrint user accounts with their display names
|synchronizes the ThinPrint users with the Active Directory (corresponds to the Synchronize function)
|returns the settings of certain ThinPrint users
|sets individual settings for a particular ThinPrint user
|imports users from Active Directory and activates them for ThinPrint
|disables / enables ThinPrint users
|deletes ThinPrint users and releases their licenses
Help for PowerShell commands
You can display help texts for all PowerShell cmdlets.
- Enter the designated command according to the following pattern:
- To get further information you can add one of the following parameters: