Is there a way to detect if the session is via RDP and Skip the login script?
I know we can detect the "Terminal Server" session and skip the script by using below code.

IF @PRODUCTSUITE = 16
EXIT
endif