Formatting “Message text for users attempting to log on” De formato "Texto del mensaje para los usuarios que intentan conectarse"
If you have ever tried defining the Security Options policy setting called: "Interactive logon: Message text for users attempting to log on" , you may have had some difficulties formatting the message the way you wanted it. Si alguna vez ha intentado definir las opciones de configuración de la política de Seguridad pidió: "Interactive código de acceso: Texto del mensaje para los usuarios que intentan conectarse", que ha tenido algunas dificultades con el formato de mensaje de la manera que quería. This blog is about "how to" workaround a minor bug in the GPEDIT tool… Este blog es acerca de "cómo" solución temporal a un menor error en el GPEDIT herramienta…
The issue: El tema:
First things first - the Group Policy setting is located here: Lo primero es lo primero - la fijación de la política de grupo se encuentra aquí:
"Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\" "Computer Configuration \ Configuración de Windows \ Configuración de seguridad \ Local Policies \ Opciones de seguridad \"
The value is a Multi-String registry value that allows you to make multiple lines in the message. El valor es un Multi-String el valor de registro que le permite hacer múltiples líneas en el mensaje. The message pops up right after a users hits Ctrl+Alt+Del as a general warning to the user before actually logging on. El mensaje aparece después de un derecho de los usuarios hits Ctrl + Alt + Del como una advertencia general a los usuarios antes de la tala. But, unfortunately the formatting isn’t as perfect as it could be. Pero, por desgracia, el formato no es tan perfecto como podría ser.
What happens is, that carriage returns are lost after formatting this "pre-logon message" with GPEDIT, imagine you would want a message like this (see Figure 3): Lo que sucede es, que los retornos de carro se pierden después de este formato "pre-mensaje de logon" con GPEDIT, imagine que usted quiere un mensaje de este tipo (véase la figura 3):
—> -->
I don’t know why this should be so hard? No sé por qué esto debería ser tan difícil? Jump next line please… Ir línea siguiente por favor…
Let’s do a comma, and continue the line… Vamos a hacer una coma, y siguen la línea…
Line number 4 is ready, but let’s jump line 5 & 6 now… Línea número 4 está listo, pero vamos a saltar la línea 5 y 6 de ahora…
Line 7 finishes up this story! Línea 7 termina esta historia!
<— <--
Such a message would end up as (see Figure 5): Ese mensaje acabaría como (vea la Figura 5):
—> -->
I don’t know why this should be so hard? No sé por qué esto debería ser tan difícil? Jump next line please… Ir línea siguiente por favor…
Let’s do a comma, and continue the line… Vamos a hacer una coma, y siguen la línea…
Line number 4 is ready, but let’s jump line 5 & 6 now… Línea número 4 está listo, pero vamos a saltar la línea 5 y 6 de ahora…
Line 7 finishes up this story! Línea 7 termina esta historia!
<— <--
So, basically the problem is: line feeds/carriage returns/empty lines disappear completely! Así que, básicamente, el problema es: los saltos de linea / retornos de carro / líneas vacías desaparecer por completo!
You can actually see this within the GPEDIT GUI, but only if you hit "Apply" before "OK" - if you just hit "OK" after typing in your message you cannot see that it’s actually changed by GPEDIT (so you think the formatting is working as it should). Usted puede ver esta realidad en el GPEDIT GUI, pero sólo si pulsas "Aplicar" antes de "Aceptar" - si usted sólo tiene que hacer clic en "Aceptar" después de escribir en su mensaje que se puede ver que no se trata en realidad de variación del GPEDIT (por lo que usted piensa El formato está funcionando como debería). I tested this behavior with GPEDIT on Windows XP SP2 (local policy), Windows Server 2003 SP1 (domain policy), Windows Vista SP Pre-RC (local policy) and Windows Server 2008 RC1 (domain policy). He probado este comportamiento con GPEDIT en Windows XP SP2 (política local), Windows Server 2003 SP1 (dominio de la política), SP Windows Vista Pre-RC (política local) y Windows Server 2008 RC1 (dominio de la política).
Figure 1 - I typed in my message with the format I wanted: Figura 1 - me escribas en mi mensaje con el formato que yo quería: ![]()
Figure 2 - I clicked Apply, and the formatting was changed: Figura 2 - He hecho clic en Aplicar, y se cambió el formato: ![]()
If I had just click OK I wouldn’t have noticed the change - anyway it’sa bit annoying, right? Si se me acaba de hacer clic en Aceptar no habría notado el cambio - de todos modos es un poco molesto, ¿verdad?
Solution/Workaround: Solución / Solución:
The solution I came up with is to modify the policy file directly/manually using Notepad. La solución me vino con es modificar la política de archivo directamente / manual usando el Bloc de notas. The file is located here: El archivo se encuentra aquí:
"\\DOMAIN.local\SYSVOL\DOMAIN.local\Policies\{GPO-GUID}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf" "\ \ DOMAIN.local \ SYSVOL \ DOMAIN.local \ Policies \ GPO-(GUID) \ MACHINE \ Microsoft \ Windows NT \ SecEdit \ GptTmpl.inf"
Within that file we have the relevant registry value, called " LegalNoticeText": Dentro de este archivo tenemos el valor de registro pertinentes, llamado "LegalNoticeText":
MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\LegalNoticeText=7,I don’t know why this should be so hard? MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ System \ LegalNoticeText = 7, no sé por qué esto debería ser tan difícil? 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! Ir línea siguiente, por favor… "," Vamos a hacer una coma "," y seguir la línea de…, la línea número 4 está listo "," pero vamos a saltar la línea 5 y 6… ahora, "", "", Línea 7 termina esta historia!
Notice the " " (<quote><space><quote>) sequences, which are the same as empty lines. Aviso de la "" (<quote> <espacio> <quote>) secuencias, que son las mismas que las líneas de vacío.
This is the relevant line from a working GptTempl.inf file (the correct syntax written manually), and it actually works great: Esta es la línea de trabajo de un archivo GptTempl.inf (la sintaxis correcta escrito a mano), y que realmente grandes obras:
Figure 3 - Pre-logon message on a Windows Server 2003 SP1 Domain Controller: Figura 3 --2003 SP1 Domain Controller: ![]()
Figure 4 - The above inserted GptTmpl.inf line also works for Windows XP SP2 in the same domain: Figura 4 - Las insertado GptTmpl.inf línea también funciona para Windows XP SP2 en el mismo dominio: ![]()
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. Por lo tanto, esto demuestra que el archivo INI en realidad puede ser el formato correcto, así que los clientes (probado w/WS2003 XP SP1 y SP2 en un dominio) puede mostrar el mensaje perfectamente. Please notice that the behavior is similar with local policies, but my testing has been focused on domain environments so far. Tenga en cuenta que el comportamiento es similar con las políticas locales, pero mi ensayo se ha centrado en los entornos de dominio hasta la fecha.
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)! Si intenta modificar la configuración de la política de trabajo utilizando GPEDIT de nuevo - justo después de cambiar un poco (o sólo pulsar OK para un establecimiento) en el formato de la GPO / sintaxis es arruinado por desgracia, de nuevo (GPO cuando se guarda por GPEDIT)! Look here what came out of it when I tested it: Vea aquí lo que salió de ella cuando fue probado:
MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\LegalNoticeText=7,I don’t know why this should be so hard? MACHINE \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ System \ LegalNoticeText = 7, no sé por qué esto debería ser tan difícil? 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! Ir línea siguiente… por favor, vamos a hacer una coma "," y seguir la línea de…, la línea número 4 está listo "," pero vamos a saltar la línea 5 y 6… ahora, la línea 7 termina esta historia!
Notice the " " (<quote><space><quote>) sequences are gone! Aviso de la "" (<quote> <espacio> <quote>) secuencias se han ido! This gives a wrong result (no empty lines) when clients get the pre-logon message. Esto da un resultado equivocado (no hay líneas vacías) cuando los clientes obtener el código de acceso pre-mensaje.
Figure 5 - The formatting is lost (or wrong) when GPEDIT does the job: Figura 5 - El formato se pierde (o mal) cuando GPEDIT hace el trabajo: ![]()
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. Por favor tome nota, si es que está probando esta tendrá que definir una política de ajuste adicional para que funcione, es decir, el "código de acceso interactivo: título del mensaje para los usuarios que intentan conectarse".
Figure 6 - The title must be set for pre-logon message to appear Figura 6 - El título debe estar configurada para iniciar la sesión previa al mensaje que aparezca ![]()
Conclusion Conclusión
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). Por tanto, mi conclusión es que (de la versión existente) GPEDIT no modifica el archivo GptTmpl.inf (o el registro para las políticas locales para el caso) - para este valor por lo menos… Mi mejor estimación es que no Manejar las comillas ( ") correctamente, pero no puedo estar 100% seguro. Un informe de error se ha celebrado por Microsoft - por lo que esperamos que se fijará antes de la versión final de Windows Server 2008 y las herramientas de administración remota del servidor (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. Sin embargo, como se mencionó se puede hacer que funcione con una solución como esta: Simplemente realizar la GptTmpl.inf (por debajo de SYSVOL) de edición manual, hacer una copia de seguridad del archivo cuando es perfecto - y que no se tocan nunca GPO con GPEDIT de nuevo… Hasta Microsoft libera una versión actualizada de GPEDIT de todos modos.
Related KB articles out there: Relacionado KB artículos por ahí:
KB 330618 KB 330618
KB 238149 KB 238149
Technet article Technet artículo
.
Popularity: 10% Popularity: 10%
Written by Jakob H. Heidelberg. Escrito por Jakob H. Heidelberg. Read more great feeds at is source Leer más grandes se alimenta en la fuente WEBSITE SITIO WEB
no comments No hay comentarios . .
Read more articles on Leer más artículos sobre gpedit Gpedit and Y sysvol Sysvol and Y otherSoftware OtherSoftware and Y RSAT RSAT and Y gpedit.msc Gpedit.msc and Y group policies Políticas de grupo and Y Group Policy De la política de grupo and Y Windows XP Windows XP and Y Security Seguridad and Y Microsoft Microsoft and Y Windows Server 2008 Windows Server 2008 and Y Windows Server 2003 Windows Server 2003 and Y Windows Vista Windows Vista . .
- [+] Digg [+] Digg : Feature this article : Reportaje este artículo
- [+] Del.icio.us [+] Del.icio.us : Bookmark this article : Guardar este artículo
- [+] Furl [+] Furl : Bookmark this article : Guardar este artículo














