Sysprep 後のアカウントの自動ログオフ

Sysprep 後のアカウントの自動ログオフ

最近、OS (Win7_x64) を新しいコンピューターに移行しました。これまでのところすべて正常に動作していますが、古いアカウントでログオンすると、すぐにログオフされます。古いコンピューターでは、この問題は発生しませんでした。

原因は何でしょうか? イベント ログでは、ログオンとログオフが開始されているのがわかりますが、エラーはありません。見つかったスタートアップ項目はすべて無効にしました。したがって、プログラムではないはずです。セーフ モードでは、問題なくアカウントにログインできます (ただし、タスク バーは元のコンピューターとは異なります。Sysprep によってすべてが削除されたと思いました)。

ここで私を助けてくれる人がいたら感謝します!

編集: イベント ビューアーに表示されるのは次の 1 つだけです。

Information 2/05/2015 13:09:08  User Profile Service    4   None
Information 2/05/2015 13:09:08  User Profile Service    3   None
Information 2/05/2015 13:09:07  GroupPolicy 5311    None
Information 2/05/2015 13:09:07  User Profile Service    2   None
Information 2/05/2015 13:09:06  User Profile Service    1   None

または、より詳細:

Log Name:      Microsoft-Windows-User Profile Service/Operational
Source:        Microsoft-Windows-User Profiles Service
Date:          2/05/2015 13:09:08
Event ID:      4
Task Category: None
Level:         Information
Keywords:      
User:          STEVEN-PC\Steven
Computer:      Steven-PC
Description:
Finished processing user logoff notification on session 1.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
    <EventID>4</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2015-05-02T11:09:08.604820200Z" />
    <EventRecordID>300</EventRecordID>
    <Correlation />
    <Execution ProcessID="1556" ThreadID="4908" />
    <Channel>Microsoft-Windows-User Profile Service/Operational</Channel>
    <Computer>Steven-PC</Computer>
    <Security UserID="S-1-5-21-1550641888-1495511497-3287687050-1000" />
  </System>
  <EventData>
    <Data Name="Session">1</Data>
  </EventData>
</Event>

Log Name:      Microsoft-Windows-User Profile Service/Operational
Source:        Microsoft-Windows-User Profiles Service
Date:          2/05/2015 13:09:08
Event ID:      3
Task Category: None
Level:         Information
Keywords:      
User:          STEVEN-PC\Steven
Computer:      Steven-PC
Description:
Recieved user logoff notification on session 1.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
    <EventID>3</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2015-05-02T11:09:08.272206300Z" />
    <EventRecordID>299</EventRecordID>
    <Correlation />
    <Execution ProcessID="1556" ThreadID="4908" />
    <Channel>Microsoft-Windows-User Profile Service/Operational</Channel>
    <Computer>Steven-PC</Computer>
    <Security UserID="S-1-5-21-1550641888-1495511497-3287687050-1000" />
  </System>
  <EventData>
    <Data Name="Session">1</Data>
  </EventData>
</Event>

Log Name:      Microsoft-Windows-GroupPolicy/Operational
Source:        Microsoft-Windows-GroupPolicy
Date:          2/05/2015 13:09:07
Event ID:      5311
Task Category: None
Level:         Information
Keywords:      
User:          STEVEN-PC\Steven
Computer:      Steven-PC
Description:
The loopback policy processing mode is "No loopback mode".
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-GroupPolicy" Guid="{AEA1B4FA-97D1-45F2-A64C-4D69FFFD92C9}" />
    <EventID>5311</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2015-05-02T11:09:07.103954200Z" />
    <EventRecordID>1198</EventRecordID>
    <Correlation ActivityID="{4A74AD3B-30E3-44D7-867A-C012659BBC1D}" />
    <Execution ProcessID="1672" ThreadID="5492" />
    <Channel>Microsoft-Windows-GroupPolicy/Operational</Channel>
    <Computer>Steven-PC</Computer>
    <Security UserID="S-1-5-21-1550641888-1495511497-3287687050-1000" />
  </System>
  <EventData>
    <Data Name="PolicyProcessingMode">0</Data>
  </EventData>
</Event>

Log Name:      Microsoft-Windows-User Profile Service/Operational
Source:        Microsoft-Windows-User Profiles Service
Date:          2/05/2015 13:09:07
Event ID:      2
Task Category: None
Level:         Information
Keywords:      
User:          STEVEN-PC\Steven
Computer:      Steven-PC
Description:
Finished processing user logon notification on session 1.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
    <EventID>2</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2015-05-02T11:09:07.101954100Z" />
    <EventRecordID>298</EventRecordID>
    <Correlation />
    <Execution ProcessID="1556" ThreadID="4172" />
    <Channel>Microsoft-Windows-User Profile Service/Operational</Channel>
    <Computer>Steven-PC</Computer>
    <Security UserID="S-1-5-21-1550641888-1495511497-3287687050-1000" />
  </System>
  <EventData>
    <Data Name="Session">1</Data>
  </EventData>
</Event>

Log Name:      Microsoft-Windows-User Profile Service/Operational
Source:        Microsoft-Windows-User Profiles Service
Date:          2/05/2015 13:09:06
Event ID:      1
Task Category: None
Level:         Information
Keywords:      
User:          STEVEN-PC\Steven
Computer:      Steven-PC
Description:
Recieved user logon notification on session 1.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft-Windows-User Profiles Service" Guid="{89B1E9F0-5AFF-44A6-9B44-0A07A7CE5845}" />
    <EventID>1</EventID>
    <Version>0</Version>
    <Level>4</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x4000000000000000</Keywords>
    <TimeCreated SystemTime="2015-05-02T11:09:06.968748200Z" />
    <EventRecordID>296</EventRecordID>
    <Correlation />
    <Execution ProcessID="1556" ThreadID="4172" />
    <Channel>Microsoft-Windows-User Profile Service/Operational</Channel>
    <Computer>Steven-PC</Computer>
    <Security UserID="S-1-5-21-1550641888-1495511497-3287687050-1000" />
  </System>
  <EventData>
    <Data Name="Session">1</Data>
  </EventData>
</Event>

msconfig を使用して、すべての (Microsoft 以外の) サービスとすべてのスタートアップ項目を無効にしようとしました。新しく作成した「Test」アカウントにはログインできますが、「Steven」にはログインできません。

答え1

私の問題の解決策は、HKEY_USERS\S-... が奇妙なアカウントによって所有されていたということでした。自分のアカウントに戻すと、問題は解決しました。(編集 -> アクセス許可 -> 自分のアカウントを追加し、適切なサブキーに対する完全な制御権を与えます)。

ただし、キーを再帰的に置き換えることを忘れないでください。

答え2

私も同様の問題を抱えていました。これは、システムを転送したときに環境が変更されたが、Win7 の環境変数は変更されなかったために発生します。

セーフモードで起動して更新してください。(インターネットでさらに詳しいヘルプを見つけることができます)

関連情報