Forum Discussion
Get SIP Device health status via powershell script
I tried looking online but couldn't really find anything.
Is there anyway with powershell I can the status of a SIP device? Basically I want to be able to check if 1)the phone exists in TAC 2) What is it's current Health Status (online/offline). If there is a powershell command for this what does it take to identify the phone?
I have to build a list of the real time status of provisioned phones after a migration and it's long if I only can check through the UI. Would be easier if I could feed a list of phones to a powershell script that can check and spit out the results.
Any help appreciated!
1 Reply
- LeonPavesicSilver Contributor
Hi ckillen,
there are some resources that might be helpful:
1. Microsoft Teams provides a SIP Tester client which is a sample PowerShell script that you can use to test Direct Routing Session Border Controller (SBC) connections1.
This script tests basic functionality of a customer-paired Session Initiation Protocol (SIP) trunk with Direct Routing1.
PowerShell script to test Direct Routing Session Border Controller connections - Microsoft Teams | Microsoft Learn2. There’s a HybridDevicesHealthChecker PowerShell script available on GitHub that checks the health status of hybrid Azure AD joined devices2. This might not be directly applicable to your situation, but it could potentially be adapted to suit your needs.
GitHub - mzmaili/HybridDevicesHealthChecker: HybridDevicesHealthChecker PowerShell script checks the health status of hybrid Azure AD joined devices. This PowerShell script performs various tests on selected devices and shows the result on the Shell screen, grid view and generates HTML report.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)