Η καλύτερη πηγή σας πληροφοριών και ειδήσεων περίπου winvista, vista και μυστικά στο διαδίκτυο

Vista ΑΡΘΡΑ ΚΟΡΥΦΗ 50 Vista ΒΙΝΤΕΟ Vista SOFT Vista ΒΟΗΘΕΙΑ

Σχηματοποιώντας «κείμενο μηνυμάτων για τους χρήστες που προσπαθούν να συνδεθεί»


Εάν έχετε πάντα προσπαθημένος καθορίζοντας την πολιτική επιλογών ασφάλειας που θέτει αποκαλούμενη: «Διαλογική σύνδεση: Κείμενο μηνυμάτων για τους χρήστες που προσπαθούν να συνδεθεί ", μπορεί να είχατε μερικές δυσκολίες σχηματοποιώντας το μήνυμα ο τρόπος που το θελήσατε. Αυτό το blog είναι για «πώς» workaround ένα δευτερεύον ζωύφιο στο εργαλείο GPEDIT…

 

Το ζήτημα:

Πρώτα πράγματα πρώτα - η πολιτική ρύθμιση ομάδας βρίσκεται εδώ:

«Τοπικές επιλογές \ πολιτικής \ ασφάλειας τοποθετήσεων \ ασφάλειας τοποθετήσεων \ παραθύρων διαμόρφωσης \ υπολογιστών»

Η αξία είναι μια αξία ληξιαρχείων πολυ-σειράς που επιτρέπει σε σας για να κάνει τις πολλαπλάσιες γραμμές στο μήνυμα. Το μήνυμα σκάει επάνω δεξιά αφότου χτυπούν οι χρήστες Ctrl+Alt+Del ως γενική προειδοποίηση στο χρήστη πριν από πραγματικά να συνδεθούν. Αλλά, δυστυχώς η μορφοποίηση δεν είναι τόσο τέλεια όπως θα μπορούσε να είναι.

Αυτό που συμβαίνει είναι, οι επιστροφές εκείνων των μεταφορών χάνονται μετά από να σχηματοποιήσουν αυτό το «μήνυμα προ-σύνδεσης» με GPEDIT, φαντάζονται ότι θα θέλατε ένα μήνυμα όπως αυτό (δείτε το σχήμα 3):

--->

Εγώ δεν ξέρει γιατί αυτό πρέπει να είναι τόσο σκληρό; Επόμενη γραμμή άλματος παρακαλώ…

Κάνετε ένα κόμμα, και συνεχίστε τη γραμμή…
Η γραμμή αριθμός 4 είναι έτοιμη, αλλά πηδήστε τη γραμμή 5 & 6 τώρα…


Η γραμμή 7 τελειώνει επάνω αυτήν την ιστορία!

<---

Ένα τέτοιο μήνυμα θα κατέληγε όπως (δείτε το σχήμα 5):

--->

Εγώ δεν ξέρει γιατί αυτό πρέπει να είναι τόσο σκληρό; Επόμενη γραμμή άλματος παρακαλώ…
Κάνετε ένα κόμμα, και συνεχίστε τη γραμμή…
Η γραμμή αριθμός 4 είναι έτοιμη, αλλά πηδήστε τη γραμμή 5 & 6 τώρα…
Η γραμμή 7 τελειώνει επάνω αυτήν την ιστορία!

<---

Έτσι, βασικά το πρόβλημα είναι: οι τροφές γραμμών/οι επιστροφές μεταφορών/οι κενές γραμμές εξαφανίζονται εντελώς!

Μπορείτε πραγματικά να δείτε αυτό μέσα στο GPEDIT GUI, αλλά μόνο εάν χτυπάτε «Apply» πριν από «ο.κ.» - εάν χτυπάτε ακριβώς «ο.κ.» μετά από να δακτυλογραφήσετε το μήνυμά σας δεν μπορείτε να δείτε ότι το αλλάζει πραγματικά από GPEDIT (έτσι σκέφτεστε η μορφοποίηση λειτουργεί δεδομένου ότι αυτό πρέπει). Εξέτασα αυτήν την συμπεριφορά με GPEDIT SP2 παραθύρων XP (τοπική πολιτική), SP1 κεντρικών υπολογιστών το 2003 παραθύρων (πολιτική περιοχών), Vista SP προ-RC παραθύρων (τοπική πολιτική) και τον κεντρικό υπολογιστή παραθύρων το 2008 RC1 (πολιτική περιοχών).

Σχήμα 1 - δακτυλογράφησα το μήνυμά μου με το σχήμα που θέλησα:
InterF1

Σχήμα 2 - χτύπησα ισχύω, και τη μορφοποίηση άλλαξαν:
InterF2

Εάν είχα ακριβώς τον κρότο ΕΝΤΑΞΕΙ δεν θα είχα παρατηρήσει την αλλαγή - οπωσδήποτε είναι λίγο ενόχληση, σωστή;

 

Λύση/Workaround:

Η λύση που ήρθα επάνω με είναι να τροποποιηθεί άμεσα πολιτικών αρχείων/με το χέρι που χρησιμοποιούν το σημειωματάριο. Το αρχείο βρίσκεται εδώ:

«\ \ DOMAIN.local \ SYSVOL \ DOMAIN.local \ πολιτική \ {gpo-GUID} \ ΜΗΧΑΝΉ \ Microsoft \ WINDOWS 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: 
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

 

.

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.

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> .