Форматируя «текст сообщения для потребителей пытая logon»
Если вы имеете всегда после того как вы попытаны определяющ установку политики вариантов обеспеченностью быть вызванным:, то «Взаимодействующий logon: Текст сообщения для потребителей пытая logon ", вы можете иметь некоторые затруднения форматировать сообщение дорога, котор вы хотели ее. Это blog о «как к» workaround небольшая черепашка в инструменте GPEDIT…
Вопрос:
Первые вещи сперва - установка политики группы обнаружена местонахождение здесь:
«Конфигурация компьютера \ установки Windows \ установки обеспеченностью \ местные политики \ варианты обеспеченностью \»
Значением будет значение регистратуры Multi-Шнура позволяет вас сделать множественные линии в сообщении. Сообщение хлопает вверх справедливо после того как потребители ударяют Ctrl+Alt+Del как вообще предупреждение к потребителю перед фактическ log on. Но, несчастливо форматизация не как совершенна по мере того как она смогла быть.
Случается, того возврата каретки потеряно после форматировать это «сообщение pre-logon» с GPEDIT, представляет вы хотело сообщение как это (см. рисунок 3):
--->
Я не знаю почему это должно быть настолько трудно? Поскачите следующая линия пожалуйста…
Препятствуйте нам сделать запятой, и продолжайте линию…
Линия 4 готова, но препятствовала нам поскакать линия 5 & 6 теперь…
Отделки линии 7 поднимают этот рассказ!
<---
Такое сообщение закончилось бы вверх как (см. рисунок 5):
--->
Я не знаю почему это должно быть настолько трудно? Поскачите следующая линия пожалуйста…
Препятствуйте нам сделать запятой, и продолжайте линию…
Линия 4 готова, но препятствовала нам поскакать линия 5 & 6 теперь…
Отделки линии 7 поднимают этот рассказ!
<---
Так, основно проблема является следующим: питания линии/возврата каретки/пустые линии исчезают вполне!
Вы можете фактическ увидеть это внутри GUI GPEDIT, но только если вы ударили «применяетесь» перед «ОДОБРЕННЫМ», то - если вы как раз ударяете «ОДОБРЕННОЕ» после печатать на машинке в вашем сообщении, котор вы не можете увидеть что оно фактическ изменено GPEDIT (поэтому вами думайте форматизация работает по мере того как оно). Я испытал это поведение с GPEDIT на Windows XP SP2 (местной политике), сервере 2003 SP1 Windows (политике домена), SP Pre-RC Windows Vista (местной политике) и сервере 2008 RC1 Windows (политике домена).
Рисунок 1 - Я напечатал на машинке в моем сообщении с формой, котор я хотел:
Рисунок 2 - Я щелкнул применяюсь, и форматизация была изменена:
Если я имел справедливое О'КЕЙО, то click я не заметил бы изменение - в лубом случае он надоедать бита, правый?
Разрешение/Workaround:
Разрешение, котор я come up с должно доработать сразу архива политики/ручно используя Notepad. Архив обнаружен местонахождение здесь:
«\ \ DOMAIN.local \ SYSVOL \ DOMAIN.local \ политика \} {GPO-GUID \ МАШИНА \ Microsoft \ Шиндошсо НТ \ 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
.
Popularity: 13%
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














