Skip to main content

Summary

This remote monitor checks for the Allow New Connections status of the Remote Desktop Host servers. If the status is False, then it is supposed to create the ticket.

Details

Suggested "Limit to": Group bound with a search of servers having role Windows RDS Session Host Suggested Alert Style: Once Suggested Alert Template: Default - Create Automate Ticket

Insert the details of the monitor in the below table.

Check ActionServer AddressCheck TypeCheck ValueCompatorIntervalResult
System127.0.0.1Run FileSee BelowContains600Allow new connections is NOT set to FALSE

Check Value

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "$rdshSettings = Get-CimInstance -Namespace 'root\CIMv2\TerminalServices' -Class Win32_TerminalServiceSetting -ComputerName \"$env:computername\";$allowNewConnections = $rdshSettings.AllowTSConnections;$allowNewConnections;if ($allowNewConnections -eq $false) {Write-Output \"Allow new connections is set to FALSE on $env:computername\"} else {Write-Output \"Allow new connections is NOT set to FALSE on $env:computername\"}"

Dependencies

Windows RDS Gateway

Target

Servers - Should be run on Windows Server which has the Windows RDS Session Host role.

Ticketing

Subject

Allow New Connections is set to FALSE on RDS Server "%computername%" of Client: %clientname%

Body

%NAME% %STATUS% on %CLIENTNAME%%COMPUTERNAME% at %LOCATIONNAME% for %FIELDNAME% result %RESULT%.

Implementation

Implementation Document