I normally use this code to prevent script execution on a server. Now Terminal Service sessions do not run the logon script for any user.

Is there a way to get this to work as it did in version 4.23? Thanks for any assistance.

 Code:
if @userid=administrator
   $os=osid()
   if $os[2]<>'Workstation'
      ? "Administrator logging onto server, no script execution..."
      sleep 2
      exit 0
   endif
endif