JSI Tip 0851. Terminal Server logon script.

If you want a special logon script that only runs when a Terminal Server client connects to a Terminal Server (or via the console), create your JSIts.CMD logon script in the %SystemRoot%\System32 folder. Then use Regedt32.exe to browse to:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Double-click Appsetup in the right hande pane and place a , JSIts.CMD after the last entry.

If the value of Appsetup was

Usrlogon.cmd, Rmvlinks.exe

it should now be

Usrlogon.cmd, Rmvlinks.exe, JSIts.CMD

Every time a user logs onto the Terminal Server, JSIts.CMD will run.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish