if %systemroot% = C:\WTSRV then it is a terminal server is another way