Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pre-logon message via registry 1

Status
Not open for further replies.

aich69

Technical User
Apr 23, 2004
588
GB
Not sure this in the right forum but can't find one for reg editing (feel free to abuse for posting in wrong forum, just make sure you tell me which one it should have gone in [smile]

We have a pre-logon message that has to be ok'd before a user can proceed to logon. Recently the message has been changed and is now 4 paragraphs long.

I can't for the life of me work out how to get line breaks between the paragraphs. Although they show in the code (for obvious reasons) the text shows as one big block on screen. Any ideas anyone? Below is the code of the reg file.

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies
\system]
"dontdisplaylastusername"=dword:00000000
"legalnoticecaption"="IMPORTANT - COMPUTER MISUSE ACT 1990"
"legalnoticetext"="This computer is owned by Whoever LTD and intended for use 
only by authorized individuals. Unauthorized access to, or misuse of this computer,  the 
information it holds and any interconnected ITC resources is prohibited and constitutes 
an offence under the Computer Misuse Act 1990.

By logging in to and using this computer, you acknowledge that you are a Whoever
LTD employee or authorized sub-contractor with an assigned Whoever user account 
and that you are aware of and consent to the following terms and conditions of use. 

Any or all activity may be monitored and recorded by Whoever LTD and such 
records may be used to investigate any suspected misuse or other violations of Whoever LTD Acceptable Use of ITC Policy, and may be disclosed to third parties, 
including law enforcement agencies. 

All Whoever ITC resources are provided for corporate use and you should have no 
expectation of privacy of personal information in your use of this system. 

Unless specifically marked otherwise, information held on this computer is for for 
internal company use only and must not be disclosed to unauthorized recipients.  Any 
violation of the above, may result in disciplinary and/or legal action."
"shutdownwithoutlogon"=dword:00000001
"undockwithoutlogon"=dword:00000001
"disablecad"=dword:00000000

I used to have a handle on life... but it broke. Cpt. Red Bull
 
Have a star for CRACKING IT and posting the solution...


Ben

"If it works don't fix it! If it doesn't use a sledgehammer..."
 
cheers BigBadBen.... hopefully someone will make use.

I never see the point in posting and not giving a solution if you find one... we're here to help [smile]

[childish][flip]I got a sta-ar! I got a sta-ar![flip][/childish]

I used to have a handle on life... but it broke. Cpt. Red Bull
 
So did you convert the entire body of your text to Hex or just the carriage returns?

Good job sticking with it!
 
Yep, the entire body of the text was converted to hex and was a hex entry in the reg file... see below. So if you can 'read' hex, you'll know where I work [smile]. A right royal pain in the proverbial but I really hate to be beaten...especially by M$

Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"LegalNoticeCaption"="IMPORTANT - COMPUTER MISUSE ACT 1990"
"LegalNoticeText"=hex(7):54,00,68,00,69,00,73,00,20,00,63,00,6f,00,6d,00,70,00,\
  75,00,74,00,65,00,72,00,20,00,69,00,73,00,20,00,6f,00,77,00,6e,00,65,00,64,\
  00,20,00,62,00,79,00,20,00,54,00,2d,00,53,00,59,00,53,00,54,00,45,00,4d,00,\
  53,00,20,00,4c,00,54,00,44,00,20,00,61,00,6e,00,64,00,20,00,69,00,6e,00,74,\
  00,65,00,6e,00,64,00,65,00,64,00,20,00,66,00,6f,00,72,00,20,00,75,00,73,00,\
  65,00,20,00,6f,00,6e,00,6c,00,79,00,20,00,62,00,79,00,20,00,61,00,75,00,74,\
  00,68,00,6f,00,72,00,69,00,73,00,65,00,64,00,20,00,69,00,6e,00,64,00,69,00,\
  76,00,69,00,64,00,75,00,61,00,6c,00,73,00,2e,00,20,00,55,00,6e,00,61,00,75,\
  00,74,00,68,00,6f,00,72,00,69,00,73,00,65,00,64,00,20,00,61,00,63,00,63,00,\
  65,00,73,00,73,00,20,00,74,00,6f,00,2c,00,20,00,6f,00,72,00,20,00,6d,00,69,\
  00,73,00,75,00,73,00,65,00,20,00,6f,00,66,00,20,00,74,00,68,00,69,00,73,00,\
  20,00,63,00,6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,2c,00,20,00,74,00,68,\
  00,65,00,20,00,69,00,6e,00,66,00,6f,00,72,00,6d,00,61,00,74,00,69,00,6f,00,\
  6e,00,20,00,69,00,74,00,20,00,68,00,6f,00,6c,00,64,00,73,00,20,00,61,00,6e,\
  00,64,00,20,00,61,00,6e,00,79,00,20,00,69,00,6e,00,74,00,65,00,72,00,63,00,\
  6f,00,6e,00,6e,00,65,00,63,00,74,00,65,00,64,00,20,00,49,00,54,00,43,00,20,\
  00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,20,00,69,00,73,00,\
  20,00,70,00,72,00,6f,00,68,00,69,00,62,00,69,00,74,00,65,00,64,00,20,00,61,\
  00,6e,00,64,00,20,00,63,00,6f,00,6e,00,73,00,74,00,69,00,74,00,75,00,74,00,\
  65,00,73,00,20,00,61,00,6e,00,20,00,6f,00,66,00,66,00,65,00,6e,00,63,00,65,\
  00,20,00,75,00,6e,00,64,00,65,00,72,00,20,00,74,00,68,00,65,00,20,00,43,00,\
  6f,00,6d,00,70,00,75,00,74,00,65,00,72,00,20,00,4d,00,69,00,73,00,75,00,73,\
  00,65,00,20,00,41,00,63,00,74,00,20,00,31,00,39,00,39,00,30,00,2e,00,0d,00,\
  0a,00,0d,00,0a,00,42,00,79,00,20,00,6c,00,6f,00,67,00,67,00,69,00,6e,00,67,\
  00,20,00,69,00,6e,00,20,00,74,00,6f,00,20,00,61,00,6e,00,64,00,20,00,75,00,\
  73,00,69,00,6e,00,67,00,20,00,74,00,68,00,69,00,73,00,20,00,63,00,6f,00,6d,\
  00,70,00,75,00,74,00,65,00,72,00,2c,00,20,00,79,00,6f,00,75,00,20,00,61,00,\
  63,00,6b,00,6e,00,6f,00,77,00,6c,00,65,00,64,00,67,00,65,00,20,00,74,00,68,\
  00,61,00,74,00,20,00,79,00,6f,00,75,00,20,00,61,00,72,00,65,00,20,00,61,00,\
  0d,00,0a,00,54,00,2d,00,53,00,59,00,53,00,54,00,45,00,4d,00,53,00,20,00,4c,\
  00,54,00,44,00,20,00,65,00,6d,00,70,00,6c,00,6f,00,79,00,65,00,65,00,20,00,\
  6f,00,72,00,20,00,61,00,75,00,74,00,68,00,6f,00,72,00,69,00,73,00,65,00,64,\
  00,20,00,73,00,75,00,62,00,2d,00,63,00,6f,00,6e,00,74,00,72,00,61,00,63,00,\
  74,00,6f,00,72,00,20,00,77,00,69,00,74,00,68,00,20,00,61,00,6e,00,20,00,61,\
  00,73,00,73,00,69,00,67,00,6e,00,65,00,64,00,0d,00,0a,00,54,00,2d,00,53,00,\
  59,00,53,00,54,00,45,00,4d,00,53,00,20,00,75,00,73,00,65,00,72,00,20,00,61,\
  00,63,00,63,00,6f,00,75,00,6e,00,74,00,20,00,61,00,6e,00,64,00,20,00,74,00,\
  68,00,61,00,74,00,20,00,79,00,6f,00,75,00,20,00,61,00,72,00,65,00,20,00,61,\
  00,77,00,61,00,72,00,65,00,20,00,6f,00,66,00,20,00,61,00,6e,00,64,00,20,00,\
  63,00,6f,00,6e,00,73,00,65,00,6e,00,74,00,20,00,74,00,6f,00,20,00,74,00,68,\
  00,65,00,20,00,66,00,6f,00,6c,00,6c,00,6f,00,77,00,69,00,6e,00,67,00,20,00,\
  74,00,65,00,72,00,6d,00,73,00,20,00,61,00,6e,00,64,00,20,00,63,00,6f,00,6e,\
  00,64,00,69,00,74,00,69,00,6f,00,6e,00,73,00,20,00,6f,00,66,00,20,00,75,00,\
  73,00,65,00,2e,00,0d,00,0a,00,0d,00,0a,00,41,00,6e,00,79,00,20,00,6f,00,72,\
  00,20,00,61,00,6c,00,6c,00,20,00,61,00,63,00,74,00,69,00,76,00,69,00,74,00,\
  79,00,20,00,6d,00,61,00,79,00,20,00,62,00,65,00,20,00,6d,00,6f,00,6e,00,69,\
  00,74,00,6f,00,72,00,65,00,64,00,20,00,61,00,6e,00,64,00,20,00,72,00,65,00,\
  63,00,6f,00,72,00,64,00,65,00,64,00,20,00,62,00,79,00,20,00,54,00,2d,00,53,\
  00,59,00,53,00,54,00,45,00,4d,00,53,00,20,00,4c,00,54,00,44,00,20,00,61,00,\
  6e,00,64,00,20,00,73,00,75,00,63,00,68,00,20,00,72,00,65,00,63,00,6f,00,72,\
  00,64,00,73,00,20,00,6d,00,61,00,79,00,20,00,62,00,65,00,20,00,75,00,73,00,\
  65,00,64,00,20,00,74,00,6f,00,20,00,69,00,6e,00,76,00,65,00,73,00,74,00,69,\
  00,67,00,61,00,74,00,65,00,20,00,61,00,6e,00,79,00,20,00,73,00,75,00,73,00,\
  70,00,65,00,63,00,74,00,65,00,64,00,20,00,6d,00,69,00,73,00,75,00,73,00,65,\
  00,20,00,6f,00,72,00,20,00,6f,00,74,00,68,00,65,00,72,00,20,00,76,00,69,00,\
  6f,00,6c,00,61,00,74,00,69,00,6f,00,6e,00,73,00,20,00,6f,00,66,00,20,00,54,\
  00,2d,00,53,00,59,00,53,00,54,00,45,00,4d,00,53,00,20,00,4c,00,54,00,44,00,\
  20,00,41,00,63,00,63,00,65,00,70,00,74,00,61,00,62,00,6c,00,65,00,20,00,55,\
  00,73,00,65,00,20,00,6f,00,66,00,20,00,49,00,54,00,43,00,20,00,50,00,6f,00,\
  6c,00,69,00,63,00,79,00,2c,00,20,00,61,00,6e,00,64,00,20,00,6d,00,61,00,79,\
  00,20,00,62,00,65,00,20,00,64,00,69,00,73,00,63,00,6c,00,6f,00,73,00,65,00,\
  64,00,20,00,74,00,6f,00,20,00,74,00,68,00,69,00,72,00,64,00,20,00,70,00,61,\
  00,72,00,74,00,69,00,65,00,73,00,2c,00,20,00,69,00,6e,00,63,00,6c,00,75,00,\
  64,00,69,00,6e,00,67,00,20,00,6c,00,61,00,77,00,20,00,65,00,6e,00,66,00,6f,\
  00,72,00,63,00,65,00,6d,00,65,00,6e,00,74,00,20,00,61,00,67,00,65,00,6e,00,\
  63,00,69,00,65,00,73,00,2e,00,0d,00,0a,00,0d,00,0a,00,41,00,6c,00,6c,00,20,\
  00,54,00,2d,00,53,00,59,00,53,00,54,00,45,00,4d,00,53,00,20,00,49,00,54,00,\
  43,00,20,00,72,00,65,00,73,00,6f,00,75,00,72,00,63,00,65,00,73,00,20,00,61,\
  00,72,00,65,00,20,00,70,00,72,00,6f,00,76,00,69,00,64,00,65,00,64,00,20,00,\
  66,00,6f,00,72,00,20,00,63,00,6f,00,72,00,70,00,6f,00,72,00,61,00,74,00,65,\
  00,20,00,75,00,73,00,65,00,20,00,61,00,6e,00,64,00,20,00,79,00,6f,00,75,00,\
  20,00,73,00,68,00,6f,00,75,00,6c,00,64,00,20,00,68,00,61,00,76,00,65,00,20,\
  00,6e,00,6f,00,20,00,65,00,78,00,70,00,65,00,63,00,74,00,61,00,74,00,69,00,\
  6f,00,6e,00,20,00,6f,00,66,00,20,00,70,00,72,00,69,00,76,00,61,00,63,00,79,\
  00,20,00,6f,00,66,00,20,00,70,00,65,00,72,00,73,00,6f,00,6e,00,61,00,6c,00,\
  20,00,69,00,6e,00,66,00,6f,00,72,00,6d,00,61,00,74,00,69,00,6f,00,6e,00,20,\
  00,69,00,6e,00,20,00,79,00,6f,00,75,00,72,00,20,00,75,00,73,00,65,00,20,00,\
  6f,00,66,00,20,00,74,00,68,00,69,00,73,00,20,00,73,00,79,00,73,00,74,00,65,\
  00,6d,00,2e,00,0d,00,0a,00,0d,00,0a,00,55,00,6e,00,6c,00,65,00,73,00,73,00,\
  20,00,73,00,70,00,65,00,63,00,69,00,66,00,69,00,63,00,61,00,6c,00,6c,00,79,\
  00,20,00,6d,00,61,00,72,00,6b,00,65,00,64,00,20,00,6f,00,74,00,68,00,65,00,\
  72,00,77,00,69,00,73,00,65,00,2c,00,20,00,69,00,6e,00,66,00,6f,00,72,00,6d,\
  00,61,00,74,00,69,00,6f,00,6e,00,20,00,68,00,65,00,6c,00,64,00,20,00,6f,00,\
  6e,00,20,00,74,00,68,00,69,00,73,00,20,00,63,00,6f,00,6d,00,70,00,75,00,74,\
  00,65,00,72,00,20,00,69,00,73,00,20,00,66,00,6f,00,72,00,20,00,69,00,6e,00,\
  74,00,65,00,72,00,6e,00,61,00,6c,00,20,00,63,00,6f,00,6d,00,70,00,61,00,6e,\
  00,79,00,20,00,75,00,73,00,65,00,20,00,6f,00,6e,00,6c,00,79,00,20,00,61,00,\
  6e,00,64,00,20,00,6d,00,75,00,73,00,74,00,20,00,6e,00,6f,00,74,00,20,00,62,\
  00,65,00,20,00,64,00,69,00,73,00,63,00,6c,00,6f,00,73,00,65,00,64,00,20,00,\
  74,00,6f,00,20,00,75,00,6e,00,61,00,75,00,74,00,68,00,6f,00,72,00,69,00,73,\
  00,65,00,64,00,20,00,72,00,65,00,63,00,69,00,70,00,69,00,65,00,6e,00,74,00,\
  73,00,2e,00,0d,00,0a,00,0d,00,0a,00,41,00,6e,00,79,00,20,00,76,00,69,00,6f,\
  00,6c,00,61,00,74,00,69,00,6f,00,6e,00,20,00,6f,00,66,00,20,00,74,00,68,00,\
  65,00,20,00,61,00,62,00,6f,00,76,00,65,00,2c,00,20,00,6d,00,61,00,79,00,20,\
  00,72,00,65,00,73,00,75,00,6c,00,74,00,20,00,69,00,6e,00,20,00,64,00,69,00,\
  73,00,63,00,69,00,70,00,6c,00,69,00,6e,00,61,00,72,00,79,00,20,00,61,00,6e,\
  00,64,00,2f,00,6f,00,72,00,20,00,6c,00,65,00,67,00,61,00,6c,00,20,00,61,00,\
  63,00,74,00,69,00,6f,00,6e,00,2e,00,00,00,00,00

I used to have a handle on life... but it broke. Cpt. Red Bull
 
It should be stored as hex (in the reg) even when applying via policy...were you seeing something different?

-Brandon Wilson
MCSE00/03, MCSA:Messaging00, MCSA03, A+

 
The hex you see was originally text in my reg file... (as you can see in my first post), not entirely sure what you mean by 'it should have been stored as hex'... surely if that was the case my post would never have come about as we wouldn't have had the issue?

I'm no expert, and with a handle like ADGod, if I'm guessing correctly 'Active Directory'? you probably know a lot more about it than I do, I was just glad to get to the end of this issue, plus I learnt something new [smile]

I used to have a handle on life... but it broke. Cpt. Red Bull
 
sorry shouldve been clearer

but double checked my thoughts, and i was thinking of other settings that store as hex in the reg....i confirmed this one does not by default.

-Brandon Wilson
MCSE00/03, MCSA:Messaging00, MCSA03, A+

 
oh I see, yes, I am aware of some reg entries as being stored in hex but as you say, this isn't one of them...
The hex idea came from a right-click and selecting 'modify binary data'... I could see the hex with the text next to it so it led me to look for the hex characters for 'carriage return': 00,0d,00,0a

Insert in correct place (after opening the reg file in a hex editor) and bingo... spaces where I wanted them [smile]

I used to have a handle on life... but it broke. Cpt. Red Bull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top