<< Back to Script Library

Check Cloudpaging Player Status

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

<#
.SYNOPSIS
 Checks the real-time status of the Cloudpaging Player.
.DESCRIPTION
 Returns the real-time status of the Cloudpaging Player.
  If the Cloudpaging PowerShell module it will notify that the command does not exist.
.EXAMPLE
 .\CheckCloudpagingPlayerStatus.ps1
.NOTES
 To return the status 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 Status
}
Catch {
    Write-Error "There was an error retrieving the Cloudpaging Player Status"
}