Wednesday, 16 March 2011

How to Disable and Hide the Windows 2008 Logoff Screen

Windows Server 2008 shows a full screen logoff message window. This is a message screen not required in a published application Citrix Environment.

To disable the Logoff Message perform the actions in this Citrix Atricle.

http://support.citrix.com/article/CTX122145

Example Script to perform this action on logoff
Dim objShell
Dim strSessionName, strExePath
Set objShell = WScript.CreateObject("WScript.Shell")
strSessionName = objShell.ExpandEnvironmentStrings("%sessionname%")
strExePath = objShell.ExpandEnvironmentStrings("%windir%") & "\system32\tsdiscon.exe"

objShell.Run strExePath & " " & strSessionName, 0

No comments:

Post a Comment