<< Back to Script Library

Get Cloudpaging Player Version

This script will return the version of the Cloudpaging Player installed on the machine.
Version: 2.0.7
Created: 2022-12-01
Modified: 2023-04-21
Creator: Rory Monaghan
Downloads: 5
Tags: Cloudpager Cloudpaging Containers Numecent
The Script Copy Script Copied to clipboard
#requires -Version 5.0
#requires -Modules Cloudpaging

<#
.SYNOPSIS
 Checks version of Cloudpaging Player installed on a given machine.
.DESCRIPTION
 Checks version of Cloudpaging Player installed on a given machine. It also contains some error handling,
  If the Cloudpaging PowerShell module it will notify that the command does not exist.
.EXAMPLE
 .\CheckCloudpagingPlayerVersion.ps1
.NOTES
 To return the version of the Cloudpaging Player, the Player must be installed on the machine and the PowerShell module and cmdlets must exist.
#>

Import-Module Cloudpaging

$ErrorActionPreference = 'stop'
try {
    Get-CloudpagingClient | Select-Object Version
}
Catch {
    Write-Error -InputObject "There was an error retrieving the Cloudpaging Player version"
}