[THIN] Re: OT: adding disclaimer to logon screen

  • From: "Rick Mack" <Rick.Mack@xxxxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>
  • Date: Wed, 15 Feb 2006 07:06:47 +1000

Hi Joanne,
 
You can script populating the legaltext value so that the text is formatted 
(numbered paragraphs, returns and formatting). 
 
The kix script we use on smaller sites is:
 

; legaltext.kix - modify legal notice on login for all listed servers

 

$file="legalnotice.txt"

$regloc="\HKEY_LOCAL_MACHINE\Software\Microsoft\Windows 
NT\CurrentVersion\Winlogon"

$delimiter=","

 

$servers="comma, delimted, server, list" 

 

; first generate the $legaltext string from the legalnotice.txt file

$legaltext=""

 

if open(3,$file) = 0 

    $string=readline(3)

    $legaltext=$string+chr(13)+chr(10)

    while @error=0

        $string=readline(3)

        $legaltext=$legaltext+$string+chr(13)+chr(10)

    loop

    else

        BEEP

        ? "$file not found"

endif

        

; now patch the servers  

$serverlist=split($servers,$delimiter)

 

for each $server in $serverlist

    gosub patch_server

next

 

goto end

 

 :patch_server 

$srvregloc="\\$server"+$regloc

 

; and write the value to the registry

 writevalue($srvregloc,"LegalNoticeText",$legaltext,"REG_Sz") 

 

return 

 

:end   

close(3)

 
 
This lets you format up the legal notice the way you want it to look in 
notepad, and then push it out to your servers. It does the legal text only, but 
could easily be modified to do the lega caption aas well, which means you 
wouldn't need to use group policy at all.
 
There's also an extra legal notice option available that's fairly poorly 
documented. This shows up as text inserted into the username/password screen, 
and is defined under HKLM\Software\Microsoft\Windows 
NT\CurrentVersion\Winlogon\LogonPrompt. The following unmanaged policy template 
will handle it:
 
 

CLASS MACHINE

 

CATEGORY "Terminal Server Settings"

 

CATEGORY "Additional Legal Notices"

 

    POLICY "Set additional Logon screen information"

    KEYNAME Software\Microsoft\Windows NT\CurrentVersion\Winlogon

        PART "Logon Prompt" EDITTEXT REQUIRED  

    VALUENAME "LogonPrompt"

    END PART

    END POLICY ; Logon prompt

 

END CATEGORY ; Legal Notices

 
 
regards,
 
Rick
 
Ulrich Mack 
Volante Systems 


________________________________

From: thin-bounce@xxxxxxxxxxxxx on behalf of Joanne Determann
Sent: Wed 15/02/2006 3:15
To: thin@xxxxxxxxxxxxx
Subject: [THIN] OT: adding disclaimer to logon screen



Kind People ,

What is the best way to add a statement about our computer use policy to the 
Windows logon screen? 

AD, windows 2003 server. Thanks, JD

 

 

#####################################################################################

This e-mail, including all attachments, may be confidential or privileged. 
Confidentiality or privilege is not waived or lost because this e-mail has been 
sent to you in error. If you are not the intended recipient any use, disclosure 
or copying of this e-mail is prohibited. If you have received it in error 
please notify the sender immediately by reply e-mail and destroy all copies of 
this e-mail and any attachments. All liability for direct and indirect loss 
arising from this e-mail and any attachments is hereby disclaimed to the extent 
permitted by law.

#####################################################################################


#####################################################################################
This e-mail, including all attachments, may be confidential or privileged.  
Confidentiality or privilege is not waived or lost because this e-mail has been 
sent to you in error.  If you are not the intended recipient any use, 
disclosure or copying of this e-mail is prohibited.  If you have received it in 
error please notify the sender immediately by reply e-mail and destroy all 
copies of this e-mail and any attachments.  All liability for direct and 
indirect loss arising from this e-mail and any attachments is hereby disclaimed 
to the extent permitted by law.
#####################################################################################

Other related posts: