Windows Registry Carriage Return

I have Win Xp machines as well some Win NT4 machines and I am trying to add carriage returns into the legalnoticetext.
On the XP machine I did a search and came up with a post that says for Win2k to edit the registry setting in binary and add
"0D000A00" however when doing so i simply get small boxes displayed.

There is obviously something i am doing wrong, is this different for XP or perhaps im just incorrectly adding it in. Can someone add some insight to this, possibly post an example?

Thanks in advance!

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
Typically, you need a carriage return + line feed in Windows.  Not sure it will work, but you could try adding the Line Feed.  When editing the registry.  Sorry I can't help beyond that.
mklaroAuthor Commented:
what would the entry be to add a line feed, im stumped with this...
Add a space to the end of your text, then type 0D000A00. The hex 0D (decimal 13) is a carriage return. The hex 0A (decimal 10) is a line feed.
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.


each character have two pairs of values (space bar = 20 00)
you need to add 0D000A00 AFTER the 20 00
ie in Binary mode as explained in this link for the text "Line1Line2"

0000 4C 00 69 00 6E 00 65 00 L.i.n.e.
0008 31 00 4C 00 69 00 6E 00 1.L.i.n.
0010 65 00 32 00 00 00          e.2...

Compare the binary on the left and the text on the right :
The 1 of Line1 is 31 00
So add 0D000A00 after 31 00
it becomes 31 00 0D 00 0A 00
One carriage after Line2 wher 2 is 32 00
It becomes 32 00 0D 00 0A 00

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mklaroAuthor Commented:
i got it thanks everyone
Dim WshShell, bKey
Set WshShell = WScript.CreateObject("WScript.Shell")

Title = "Title name"
Text = "Ligne0" & VbCrLf & "Ligne1" & VbCrLf & "Ligne2"

WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\LegalNoticeCaption", Title, "REG_SZ"
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\LegalNoticeText", Text, "REG_SZ"

bkey = WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\LegalNoticeCaption")
bkey = bkey & VbCrLf & VbCrLf & WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\LegalNoticeText")

WScript.Echo bkey

To automate the procedure on more computers you can put the above lines in a .vbs file.
Change the values between quotes in these two lines :
Title = "Title name"
Text = "Line0" & VbCrLf & "Line1" & VbCrLf & "Line2"

The three last lines of the script are just there to display the result.
You can delete them.

VbCrLf is the Carriage Return (0D000A00)

For NT machines you need "Windows Script 5.6 for Windows 98, Windows Millennium Edition, and Windows NT 4.0" :
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.