Your best source of information and news about xp , xp and xp on the internet お客様の最良の情報源とXPのニュースについては、 XPおよびXPにインターネット上で

Vista ARTICLESビスタの記事 TOP 50トップ50 Vista VIDEOSビスタビデオ Vista SOFTビスタ柔らかい Vista HELPビスタヘルプ

Formatting “Message text for users attempting to log on”フォーマット"のテキストメッセージをユーザーにログオンしようとする"


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.てみたことがある場合は、セキュリティオプションを定義するポリシー設定と呼ばれる: "対話型ログオン:テキストメッセージをユーザーにログオンしようとする"と 、いくつかの困難があった場合、メッセージのフォーマット方法を指名手配することです。 This blog is about "how to" workaround a minor bug in the GPEDIT tool…このブログについては、 "どのように"マイナーバグは、問題を回避するツールgpedit …

The issue: 問題:

First things first - the Group Policy setting is located here:最初の最初のもの-は、グループポリシー設定の場所にあります:

"Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\" "コンピュータの構成\ Windowsの設定\セキュリティの設定\ローカルポリシー\セキュリティオプション\ "

The value is a Multi-String registry value that allows you to make multiple lines in the message.マルチ文字列の値は、レジストリ値を作ることができますが、複数行のメッセージです。 The message pops up right after a users hits Ctrl+Alt+Del as a general warning to the user before actually logging on.ポップアップメッセージをユーザーにヒットした直後にCtrl + Alt + Delを全般として、実際に伐採する前に、ユーザーに警告しています。 But, unfortunately the formatting isn’t as perfect as it could be.しかし、残念ながらそのフォーマットとして完璧ではない可能性があるようです。

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):何が起こっては、キャリッジリターンが失われた後にフォーマットして、この"事前にログオンメッセージ"をgpeditは、想像するにはこのようなメッセージを希望する(図3参照) :

—> ->

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… 行番号4の準備が完了したが、それを今のジャンプライン5 & 6 …

Line 7 finishes up this story! 7ラインアップが完了したら、この物語!

<— < -"

Such a message would end up as (see Figure 5):このようなメッセージが終わる(図5参照) :

—> ->

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… 行番号4の準備が完了したが、それを今のジャンプライン5 & 6 …
Line 7 finishes up this story! 7ラインアップが完了したら、この物語!

<— < -"

So, basically the problem is: line feeds/carriage returns/empty lines disappear completely!だから、問題は、基本的には: ラインフィード/キャリッジリターン/空白行を完全に姿を消す!

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).この内、実際に目にすることができますgpeditのGUIが、ヒットした場合のみ"を適用する前に、 " "うん" -ヒットした場合だけ"分かった"としてメッセージを入力した後でそれを見ることはできないのg pedit実際に変更された(だからお考えそのフォーマットとして働いばならない) 。 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).この動作をテストしてgpedit私Windows XP SP2の(ローカルポリシー)は、 Windows Server 2003 SP1を(ドメインポリシー)は、ウィンドウズビスタSPの事前のrc (ローカルポリシー)およびWindows Server 2008 rc1 (ドメインポリシー) 。

Figure 1 - I typed in my message with the format I wanted:図1 -私は私のメッセージの形式で入力したい:
interf1

Figure 2 - I clicked Apply, and the formatting was changed:図2 -私クリックして適用され、フォーマットが変更されました:
interf2

If I had just click OK I wouldn’t have noticed the change - anyway it’sa bit annoying, right? [ OK ]をクリックすればよいだけでは気づいて、変更するつもりはないが-とにかく、いらいら行えるビットでしょ?

Solution/Workaround: 解決策/回避策:

The solution I came up with is to modify the policy file directly/manually using Notepad.その解決策を思い付いたのは、私の政策を修正してファイルを直接/手動でメモ帳を使用しています。 The file is located here:このファイルは、場所にあります:

"\\DOMAIN.local\SYSVOL\DOMAIN.local\Policies\{GPO-GUID}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf" " \ \ domain.local \ sysvol \ domain.local \ポリシー\ ( gpo - guidを) \機\マイクロソフト\ Windows NTの\ secedit \ gpttmpl.inf "

Within that file we have the relevant registry value, called " LegalNoticeText":我々は、関連するファイル内のレジストリ値と呼ばれる" legalnoticetext " :

MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\LegalNoticeText=7,I don’t know why this should be so hard? マシン\ソフトウェア\マイクロソフト\ Windowsの\ currentversion \ポリシー\システム\ legalnoticetext = 7 、なぜか分からないが、このしなければならないので大変ですか? 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! 次の行にジャンプしてください… " 、 "は、やめよう、カンマ" 、 "や行を続ける… 、行番号4の準備が完了した" 、 "でもさあ…ジャンプライン5 & 6今、 " " 、 " " 、 7ラインアップが完了したら、この物語!

Notice the " " (<quote><space><quote>) sequences, which are the same as empty lines.注意して" " ( <quote> <スペース<quote> )シーケンスは、それは、空白行と同じです。

This is the relevant line from a working GptTempl.inf file (the correct syntax written manually), and it actually works great:これは、関連性の高い作業gpttempl.infラインからファイル(手動で、正しい構文で書かれた) 、そしてこれは、実際に動作する偉大:

Figure 3 - Pre-logon message on a Windows Server 2003 SP1 Domain Controller:図3 -- 2 003S P1のドメインコントローラ:
interactivelogonmsg

Figure 4 - The above inserted GptTmpl.inf line also works for Windows XP SP2 in the same domain:図4 -g pttmpl.inf、上記の挿入W indowsX PS P2のラインでも動作するため、同じドメイン:
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.だから、このことを証明してiniファイルが正しくフォーマットされるので、実際のクライアント(テストw/ws2003 SP1およびXP SP2には、ドメインの)ことを示すメッセージが完璧です。 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)!作業を変更しようとした場合に、ポリシー設定を使用してgpedit再び-ほんの小さな変更後のビット(または既存の設定だけでO Kを的中)内のg poのフォーマット/構文は、残念ながら再びr uined( g poときには、保存されてg pedit) ! 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? マシン\ソフトウェア\マイクロソフト\ Windowsの\ currentversion \ポリシー\システム\ legalnoticetext = 7 、なぜか分からないが、このしなければならないので大変ですか? 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! 次の行にジャンプしてください… 、やめよう、カンマ" 、 "や行を続ける… 、行番号4の準備が完了した" 、 "でもさあ…ジャンプライン5 & 6今は、 7行が完了するまで、この物語!

Notice the " " (<quote><space><quote>) sequences are gone!注意して" " ( <quote> <スペース<quote> )シーケンスが消えた! 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:図5 -のフォーマットが失われたときに(あるいは間違って)その仕事はg pedit:
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図6 -タイトルを事前に設定する必要がありますログオンメッセージが表示される
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).だから、私の結論を出すのは、 (既存のバージョンの) gpeditはありませんgpttmpl.infファイルを適切に変更して(またはローカルポリシーは、レジストリのためにそのことについては) -この特定の値を少なくとも…私のベストの推測では、それはないハンドルの引用符( " )が正しくけど、 100 %確実にすることはできません。バグ報告があったため、マイクロソフト社-だから願わくは固定される前の2 008年の最終リリースのW indowsサーバおよびリモートサーバ管理ツール( r sat) 。

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.しかし、すでに述べたように作ることができるような仕事をして、この問題を回避する: gpttmpl.infだけを実行します(以下sysvol )を手動で編集し、ファイルのバックアップを作成するときに、それは完璧な-とは決して触れることでg pedit再び…までg poマイクロソフト社の最新バージョンのリリースgpeditとにかく。

Related KB articles out there:そこキロバイトアウト関連記事:
KB 330618 330618キロバイト
KB 238149 238149キロバイト
Technet article TechNetの記事

.

Popularity: 12%人気: 12 %


Written by Jakob H. Heidelberg. h.ハイデルベルクヤコブ書かれています。 Read more great feeds at is source 偉大なフィードでは、ソースの続きを読む WEBSITE ウェブサイト
no comments コメントはありません .
Read more articles on こちらの記事を読む gpedit gpedit and sysvol sysvol and otherSoftware othersoftware and RSAT rsat and gpedit.msc gpedit.msc and group policies グループポリシー and Group Policy グループポリシー and Windows XP ウィンドウズXP and Security セキュリティ and Microsoft マイクロソフト and Windows Server 2008 ウィンドウズサーバー2008 and Windows Server 2003 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> .これらのXHTMLにタグを使用することができます:の<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite="">の[ <b>の<code>の<em> <私>の[ <strong>て<strike> 。