Formatierender „Anzeige Text für die Benutzer, die versuchen anzumelden“
Wenn Sie überhaupt versucht definierend die Sicherheit Wahl-Politikeinstellung benennen lassen: „Wechselwirkender LOGON: Anzeige Text für die Benutzer, die versuchen anzumelden ", können Sie einige Schwierigkeiten gehabt haben, die Anzeige zu formatieren die Weise, die Sie sie wünschten. Dieses blog ist über „, wie“ zum Workaround eine kleine Wanze im GPEDIT Werkzeug…
Die Ausgabe:
Die ersten Erstlings Sachen die Gruppe Politikeinstellung wird hier lokalisiert:
„Computer-Konfiguration \ Windows Einstellungen \ Sicherheit Einstellungen \ lokale Politik \ Sicherheit Wahlen \“
Der Wert ist ein Multi-Zeichenkette Registerwert, der Ihnen erlaubt, mehrfache Linien in der Anzeige zu bilden. Die Anzeige knallt oben nach rechts, nachdem Benutzer Ctrl+Alt+Del als allgemeine Warnung zum Benutzer schlägt, bevor sie wirklich anmelden. Aber, leider ist die Formatierung nicht so vollkommen, wie sie sein könnte.
Was geschieht, ist, dieses Wagenrückkehr sind verloren, nachdem es diese „VorlOGON Anzeige“ mit GPEDIT formatiert hat, sich vorstellen, daß Sie eine Anzeige wünschen würden, wie dieses (siehe Tabelle 3):
--->
Ich weiß nicht, warum dieses so hart sein sollte? Springen Sie folgende Linie bitte…
Lassen Sie uns ein Komma tun und setzen die Linie… fort
Linie Nr. 4 ist bereit, aber lassen Sie uns Linie 5 u. 6 jetzt springen…
Linie 7 Ende up diese Geschichte!
<---
Solch eine Anzeige würde oben wie beenden (siehe Tabelle 5):
--->
Ich weiß nicht, warum dieses so hart sein sollte? Springen Sie folgende Linie bitte…
Lassen Sie uns ein Komma tun und setzen die Linie… fort
Linie Nr. 4 ist bereit, aber lassen Sie uns Linie 5 u. 6 jetzt springen…
Linie 7 Ende up diese Geschichte!
<---
So im Allgemeinen ist das Problem: Zeilenvorschübe/Wagenrückkehr/leere Linien verschwinden vollständig!
Sie können dieses innerhalb des GPEDIT GUI wirklich sehen, aber nur wenn Sie „zutreffen“ vor „OKAY“ schlugen - wenn Sie gerade „OKAY“ nach dem Schreiben in Ihrer Anzeige schlagen, die Sie nicht sehen können, daß sie wirklich von GPEDIT geändert wird (also von Ihnen denken Sie, daß die Formatierung wie es sollte arbeitet). Ich prüfte dieses Verhalten mit GPEDIT auf Windows XP SP2 (lokale Politik), Windows Bediener 2003 SP1 (Gebiet Politik), Windows Vista SP Pre-RC (lokale Politik) und Windows Bediener 2008 RC1 (Gebiet Politik).
Tabelle 1 - Ich schrieb in meiner Anzeige mit dem Format, das ich wünschte:
Tabelle 2 - Ich klickte zutreffe und die Formatierung wurde geändert:
Wenn ich gerechtes Klicken O.K. hatte, würde ich nicht die änderung beachtet haben - sowieso ist sie ein Spitze Stören, recht?
Lösung/Workaround:
Die Lösung, die ich oben mit kam, ist, Politikakte direkt/zu ändern Notizblock manuell verwendend. Die Akte wird hier lokalisiert:
„\ \ DOMAIN.local \ SYSVOL \ DOMAIN.local \ politische Richtlinien \ {GPO-GUID} \ MASCHINE \ Microsoft \ Windows NT \ SecEdit \ GptTmpl.inf“
Innerhalb dieser Akte lassen wir den relevanten Registerwert, benennen „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
.
Popularity: 9%
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














