PowerShell - Display all Access Keys with details

Access Key, Legacy Authentication Username, Registration Key

Written by Ines

Last published at: January 27th, 2023

Script Example



Script

Import-Module ThinscaleManagement

$uri = "uri"  #your server uri here

#do not make changes below this section

Get-Credential | Connect-TSTMGMTServer -Uri $uri

$devices = Get-TSTMGMTAccessKeys | Select KeyName, IsLegacyAuthEnabled, LegacyAuthUsername, RegistrationKey

$devices | format-table