Skip to content

Invoke-MSTCsInternalPSTelemetry

Teams: Invoke internal PowerShell telemetry

#Requires -Version 5.1

[CmdletBinding()]
Param()

Process {
    try {
        $result = Invoke-CsInternalPSTelemetry -ErrorAction Stop

        if ($null -eq $result) {
            Write-Output "No telemetry data returned"
            return
        }
        [PSCustomObject]@{
            Timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
            Result    = $result
        }
    }
    catch { throw }
}

This script has no configurable parameters.

An interactive directory of PowerShell scripts.