格式化的「文本為用戶試圖註冊」
如果您安排嘗試定義安全選擇政策設置叫: 「交互式註冊: 文本為用戶試圖註冊"您也許有有些困難格式化消息您想要它的方式。 這blog關於「怎麼到」解決方法較小臭蟲在GPEDIT工具…
問題:
重要的事先来-小組政策設置這裡被找出:
「計算機配置\窗口設置\安全設置\地方政策\安全選擇\」
價值是在消息允許您做多條線路的多串登記價值。 消息突然出現,在用戶擊中Ctrl+Alt+Del作為一次一般警告對用戶之後在實際註冊之前。 但,不幸地格式化不是一樣完善的,像它可能。
什麼發生是,那回車在格式化這則「前註冊消息以後」丟失與GPEDIT,想像您會想要消息,如這(參見圖3) :
--->
我不知道為什麼這應該是很堅硬的? 請跳躍下條線…
我們做逗號,并且繼續線…
行號4準備好,但我們現在跳躍線5 & 6…
線7完成這個故事!
<---
這樣消息將結果像(參見圖5) :
--->
我不知道為什麼這應該是很堅硬的? 請跳躍下條線…
我們做逗號,并且繼續線…
行號4準備好,但我們現在跳躍線5 & 6…
線7完成這個故事!
<---
如此,基本上問題是: 換行或回車或者空的線完全地消失!
您能實際上看此在GPEDIT GUI之內,但,只有当您擊中了「在「好之前」申請」 -,如果您在輸入擊中「好」您不能看的您的消息以後GPEDIT (因此您實際上改變它認為格式化運作,它應該)。 我在Windows XP SP2 (地方政策),窗口服務器2003 SP1 (領域政策),窗口景色SP Pre-RC (地方政策)和窗口服務器2008 RC1 (領域政策)測試了這行為與GPEDIT。
如果我有正義點擊OK我是否不會注意變動-無論如何它是否是一點懊惱,正確?
解答或解決方法:
我過來與的解答將使用筆記薄直接或手工修改政策文件。 文件這裡尋找:
「\ \ DOMAIN.local \ SYSVOL \ DOMAIN.local \政策\ {GPO-GUID} \機器\微軟\視窗NT \ SecEdit \ GptTmpl.inf」
在那個文件之內我們安排相關的登記價值,叫「LegalNoticeText " :
MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\LegalNoticeText=7,I don't know why this should be so hard? Jump next line please...," ",Let's do a comma"," and continue the line...,Line number 4 is ready"," but let's jump line 5 & 6 now...," "," ",Line 7 finishes up this story!
Notice the " " (<quote><space><quote>) sequences, which are the same as empty lines.
This is the relevant line from a working GptTempl.inf file (the correct syntax written manually), and it actually works great:
Figure 3 - Pre-logon message on a Windows Server 2003 SP1 Domain Controller:
Figure 4 - The above inserted GptTmpl.inf line also works for Windows XP SP2 in the same domain:
So, this proves that the INI file can actually be correctly formatted so clients (tested w/WS2003 SP1 and XP SP2 in a domain) can show the message perfectly. Please notice that the behavior is similar with local policies, but my testing has been focused on domain environments so far.
If you try to modify the working policy setting using GPEDIT again - after changing just a tiny bit (or just hitting OK to an existing setting) within the GPO the formatting/syntax is ruined again unfortunately (when GPO is saved by GPEDIT)! Look here what came out of it when I tested it:
MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\LegalNoticeText=7,I don't know why this should be so hard? Jump next line please...,Let's do a comma"," and continue the line...,Line number 4 is ready"," but let's jump line 5 & 6 now...,Line 7 finishes up this story!
Notice the " " (<quote><space><quote>) sequences are gone! This gives a wrong result (no empty lines) when clients get the pre-logon message.
Figure 5 - The formatting is lost (or wrong) when GPEDIT does the job:
Please notice, if you're testing this you will have to define an additional policy setting for it to work, namely the "Interactive logon: Message title for users attempting to log on" setting.
Figure 6 - The title must be set for pre-logon message to appear
Conclusion
So, my conclusion is that (existing version of) GPEDIT doesn't modify the GptTmpl.inf file properly (or the registry for local policies for that matter) - for this particular value at least... My best guess is that it doesn't handle the quotes (") correctly, but I can't be 100% sure. A bug report has been made for Microsoft - so hopefully it will be fixed before the final release of Windows Server 2008 and the Remote Server Administration Tools (RSAT).
However, as mentioned you can make it work with a workaround like this: Just perform the GptTmpl.inf (below SYSVOL) editing manually, make a backup of the file when it's perfect - and never touch that GPO with GPEDIT again... Until Microsoft releases an updated version of GPEDIT anyway.
Related KB articles out there:
KB 330618
KB 238149
Technet article
.
Written by Jakob H. Heidelberg. Read more great feeds at is source WEBSITE
no comments.
Read more articles on gpedit and sysvol and otherSoftware and RSAT and gpedit.msc and group policies and Group Policy and Windows XP and Security and Microsoft and Windows Server 2008 and Windows Server 2003 and Windows Vista.
- [+] Digg: Feature this article
- [+] Del.icio.us: Bookmark this article
- [+] Furl: Bookmark this article














