La vostra fonte migliore delle informazioni e delle notizie circa finestre, xp e driver sul Internet

ARTICOLI del Vista PRINCIPALE 50 Vista VIDEOS Vista MOLLE AIUTO del Vista

“Testo di formattazione del messaggio per gli utenti che tentano di entrare„


Se fate provato mai definendo la regolazione di politica di opzioni di sicurezza denominare: “Inizio attività interattivo: Testo del messaggio per gli utenti che tentano di entrare ", potete avere alcune difficoltà formattare il messaggio il senso che lo avete desiderato. Questo blog è circa “come„ al workaround un insetto secondario nell'attrezzo di GPEDIT…

 

L'edizione:

Le prime cose prime la regolazione di politica del gruppo è individuata qui:

“Configurazione del calcolatore \ regolazioni di Windows \ regolazioni di sicurezza \ politiche \ opzioni locali \„ di sicurezza

Il valore è un valore di registrazione della Multi-Stringa che permette che facciate le linee multiple nel messaggio. Il messaggio schiocca in su a destra dopo che gli utenti colpisca Ctrl+Alt+Del come avvertimento generale all'utente prima realmente di entrare. Ma, purtroppo la formattazione non è perfetta come potrebbe essere.

Che cosa accade è, quel ritorni a margine è perso dopo la formattazione del questo “messaggio di pre-inizio attività„ con GPEDIT, immagina che desiderereste un messaggio come questo (si veda figura 3):

--->

Non so perchè questo dovrebbe essere così duro? Salti prego la linea seguente…

Facciamo una virgola e continuano la linea…
La linea numero 4 è aspetta, ma saltiamo le linee 5 & 6 ora…


La linea 7 rivestimenti aumenta questa storia!

<---

Un tal messaggio si concluderebbe in su come (si veda figura 5):

--->

Non so perchè questo dovrebbe essere così duro? Salti prego la linea seguente…
Facciamo una virgola e continuano la linea…
La linea numero 4 è aspetta, ma saltiamo le linee 5 & 6 ora…
La linea 7 rivestimenti aumenta questa storia!

<---

Così, il problema è basicamente: la linea alimentazioni/ritorni a margine/linee vuote sparisce completamente!

Potete realmente vedere questo all'interno del GUI di GPEDIT, ma soltanto se colpiste “vi applicate„ prima “di GIUSTO„ - se colpite appena “GIUSTO„ dopo la battitura a macchina nel vostro messaggio non potete vedere che realmente è cambiato da GPEDIT (in modo da da voi pensi che la formattazione stia funzionando come esso dovrebbe). Ho verificato questo comportamento con GPEDIT su Windows XP SP2 (politica locale), sull'assistente 2003 SP1 (politica di Windows di dominio), PS Pre-RC (politica locale) di Windows Vista ed assistente 2008 RC1 (politica di Windows di dominio).

Figura 1 - Ho scritto nel mio messaggio con la disposizione che ho desiderato:
InterF1

Figura 2 - Mi sono scattato mi applico e la formattazione è stata cambiata:
InterF2

Se avessi APPROVAZIONE giusta di scatto non avrebbero notato il cambiamento - in ogni modo è infastidirsi della punta, di destra?

 

Soluzione/Workaround:

La soluzione che ho fornito è modificare direttamente/della lima di politica che usando manualmente il Notepad. La lima è individuata qui:

“\ \ DOMAIN.local \ SYSVOL \ DOMAIN.local \ politica \} \ MACCHINA \ Microsoft \ Windows NT \ SecEdit \ GptTmpl.inf {di GPO-GUID„

All'interno di quella lima facciamo il valore relativo di registrazione chiamare, “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: 
InteractiveLogonMsg

Figure 4 - The above inserted GptTmpl.inf line also works for Windows XP SP2 in the same domain:
InteractiveLogonMsgXP

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:
InterF5

 

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
InterF6

 

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.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .