none
SCCM Task Sequence (Windows-Server) REBOOT RRS feed

  • Frage

  • Hi,
    I need to do a reboot in the tasksequence, during installing a lot of applications.
    I found this: http://technet.microsoft.com/de-de/library/bb632442.aspx
    the reboot works fine
    but after the reboot the taskSequence did not continue.
    In the report I've got FAILED.
    Whats wrong?
    Montag, 8. Februar 2010 14:14

Alle Antworten

  • Kürzlich habe ich in einem anderen Thread folgende Anwort gepostet: 

    Hans-Peter.Fuchs "... klingt deutsch, die URL des Forums (http://social.technet.microsoft.com/Forums/de-DE/systemcenterde) auch ...
    Die besten Chancen auf eine Antwort hat man, wenn man die Frage auf deutsch stellt ;-)"

    Was sagt denn smsts.log (auf dem Client) dazu?
    Montag, 8. Februar 2010 15:16
    Beantworter
  • hm, viel - was ich leider nicht interpretieren kann.

    hier ein auszug:

    <![LOG[Successfully submitted pending event to WMI.]LOG]!><time="17:54:13.174+-60" date="02-08-2010" component="TSManager" context="" type="0" thread="2672" file="event.cpp:623">
    <![LOG[End TS policy evaluation]LOG]!><time="17:54:13.174+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="policyutil.cpp:8018">
    <![LOG[Policy evaluation initiated]LOG]!><time="17:54:13.174+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:3261">
    <![LOG[Waiting for policy to be compiled in 'root\ccm\policy\machine' namespace ]LOG]!><time="17:54:13.174+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:2045">
    <![LOG[Policy verification done]LOG]!><time="17:54:13.378+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:2096">
    <![LOG[Config policies compiled successfully]LOG]!><time="17:54:13.378+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:2459">
    <![LOG[Waiting for CcmExec service to be fully operational]LOG]!><time="17:54:13.378+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:4129">
    <![LOG[Timed out waiting for ccmexec service to be fully operational]LOG]!><time="18:24:26.952+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="utils.cpp:4191">
    <![LOG[Failed to wait for Ccmexec service to be fully operational (0x80004005)]LOG]!><time="18:24:26.952+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="utils.cpp:4204">
    <![LOG[Task Sequence Manager could not pause SMS components. code 80004005]LOG]!><time="18:24:26.952+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="tsmanager.cpp:1009">
    <![LOG[Task Sequence Manager could not initialize Task Sequence Environment. code 80004005]LOG]!><time="18:24:26.952+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="tsmanager.cpp:1294">
    <![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="18:24:26.952+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="tsmanager.cpp:790">
    <![LOG[Cleaning Up. Removing Authenticator]LOG]!><time="18:24:26.952+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="tsmanager.cpp:578">
    <![LOG[Cleaning up task sequence folder]LOG]!><time="18:24:26.952+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:1404">
    <![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="18:24:26.983+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="environmentlib.cpp:869">
    <![LOG[Executing command line: "C:\WINNT\system32\CCM\TsProgressUI.exe" /Unregister]LOG]!><time="18:24:26.983+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="commandline.cpp:805">
    <![LOG[==========[ TsProgressUI started in process 3040 ]==========]LOG]!><time="18:24:27.077+-60" date="02-08-2010" component="TsProgressUI" context="" type="1" thread="2744" file="winmain.cpp:327">
    <![LOG[Unregistering COM classes]LOG]!><time="18:24:27.077+-60" date="02-08-2010" component="TsProgressUI" context="" type="1" thread="2744" file="winmain.cpp:202">
    <![LOG[Shutdown complete.]LOG]!><time="18:24:27.077+-60" date="02-08-2010" component="TsProgressUI" context="" type="1" thread="2744" file="winmain.cpp:520">
    <![LOG[Process completed with exit code 0]LOG]!><time="18:24:27.186+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="commandline.cpp:1102">
    <![LOG[Successfully unregistered TS Progress UI.]LOG]!><time="18:24:27.186+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:1963">
    <![LOG[Start to cleanup TS policy]LOG]!><time="18:24:27.264+-60" date="02-08-2010" component="TSManager" context="" type="0" thread="2672" file="utils.cpp:2481">
    <![LOG[End TS policy cleanup]LOG]!><time="18:24:27.343+-60" date="02-08-2010" component="TSManager" context="" type="0" thread="2672" file="utils.cpp:2530">
    <![LOG[Start to evaluate TS policy with lock]LOG]!><time="18:24:27.405+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="policyutil.cpp:8015">
    <![LOG[Updating settings in \\sccmtst2\root\ccm\policy\machine\actualconfig]LOG]!><time="18:24:27.436+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="policyutil.cpp:6237">
    <![LOG[Machine RequestedConfig policy instance(s) : 441]LOG]!><time="18:24:27.952+-60" date="02-08-2010" component="TSManager" context="" type="0" thread="2672" file="policyutil.cpp:6382">

     

    ]LOG]!><time="18:24:28.093+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="event.cpp:580">
    <![LOG[Successfully submitted pending event to WMI.]LOG]!><time="18:24:28.108+-60" date="02-08-2010" component="TSManager" context="" type="0" thread="2672" file="event.cpp:623">
    <![LOG[End TS policy evaluation]LOG]!><time="18:24:28.108+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="policyutil.cpp:8018">
    <![LOG[Policy evaluation initiated]LOG]!><time="18:24:28.108+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:3261">
    <![LOG[Error executing Task Sequence Manager service. Code 0x80004005]LOG]!><time="18:24:28.124+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="tsmanager.cpp:452">
    <![LOG[Sending error status message]LOG]!><time="18:24:28.124+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="tsmanager.cpp:456">
    <![LOG[Formatted header:]LOG]!><time="18:24:28.155+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="libsmsmessaging.cpp:1500">
    <![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:906952BC-6923-40F3-84CA-6D33D6BC80D2</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2010-02-08T17:24:28Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="1176"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>
    ]LOG]!><time="18:24:28.155+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="libsmsmessaging.cpp:1501">
    <![LOG[Successfully finalized logs to SMS client log directory from C:\WINNT\system32\CCM\Logs]LOG]!><time="18:24:28.186+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="tslogging.cpp:1536">
    <![LOG[Resuming SMS Components]LOG]!><time="18:24:28.186+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="tsmanager.cpp:1026">
    <![LOG[Waiting for CcmExec service to be fully operational]LOG]!><time="18:24:28.186+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="utils.cpp:4129">
    <![LOG[Timed out waiting for ccmexec service to be fully operational]LOG]!><time="18:54:42.370+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="utils.cpp:4191">
    <![LOG[Failed to wait for Ccmexec service to be fully operational (0x80004005)]LOG]!><time="18:54:42.370+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="utils.cpp:4204">
    <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\SoftwareUpdates. Error code 0x80070002]LOG]!><time="18:54:42.370+-60" date="02-08-2010" component="TSManager" context="" type="2" thread="2672" file="utils.cpp:2782">
    <![LOG[Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent. Error code 0x80070002]LOG]!><time="18:54:42.370+-60" date="02-08-2010" component="TSManager" context="" type="2" thread="2672" file="utils.cpp:2782">
    <![LOG[Task Sequence Manager could not resume SMS components. code 80004005]LOG]!><time="18:54:42.370+-60" date="02-08-2010" component="TSManager" context="" type="3" thread="2672" file="tsmanager.cpp:868">
    <![LOG[Stopping Task Sequence Manager service]LOG]!><time="18:54:42.370+-60" date="02-08-2010" component="TSManager" context="" type="1" thread="2672" file="tsmanager.cpp:487">

    Dienstag, 9. Februar 2010 08:14
  • Was macht die Tasksequenz denn genau? Welche Schritte sind enthalten?
    Dienstag, 9. Februar 2010 08:34
    Beantworter
  • wir bekommen den server von den zuständigen kollegen mit os (server2003 in D) übergeben. für tests ist dies ein virtueller server. ich installiere den sccm-agenten.
    der server kommt in eine collection
    je nach aufgabe des servers werden hier variablen mit unterschiedlichen parametern gesetzt
    die aufname in die collection sorgt für die installation der notwendigen programme
    jre wird installiert
    div. einstellungen vorgenommen
    dann wird citrix xenapp 5 installiert
    rebooten
    dann citrix delivery console und eine weitere console
    AppV client installieren
    Winzip
    Adobe reader
    div. virtuelle pakete

    dann je nach aufgabe des servers unterschiedliche programme
    aber bis dahin kommt er nicht, da das rebooten nach xenapp die ts beendet.
    Dienstag, 9. Februar 2010 08:50
  • Also prinzipiell sollten Tasksequenzen einen Reboot "überleben" (wenn dieser durch den TS-"Restart Computer"-Schritt initiiert werden. Ist dies gegeben?).
    Ansonsten springt "Waiting for CcmExec service to be fully operational (18:24:28)" -> "Timed out waiting for ccmexec service to be fully operational" (18:54:42) in's Auge. Da scheint also der SMS Agent Host nicht wieder sauber zu starten, was zu einem Timeout nach 30min führt. Was steht denn zu dem Zeitpunkt im ccmexec.log?
    Wie sehen denn die entsprechenden Statusmeldungen für die Ankündigung aus?
    Dienstag, 9. Februar 2010 13:03
    Beantworter
  • Das ccmexec.log ist leider leer, 0 bytes gross.

    Wo finde ich die statusmeldung der ankündigung?
    Dienstag, 9. Februar 2010 15:03
  • Ankündigungsstatus: http://technet.microsoft.com/de-de/library/bb680420.aspx
    ccmexec.log ist das Log des SMS Agent Hosts und sollte eigentlich immer aktualisiert werden.Ist ggfs das Logging nur deaktiviert? Läuft der Dienst denn nach dem Reboot des Servers noch? Ist ein ccmexec.exe-Prozeß vorhanden?

    Dienstag, 9. Februar 2010 19:46
    Beantworter
  • so, ich habe nun mehrfach den server neu installieren lassen (bzw. zurücksetzen, da ein virtueller unter vmware) und die installationsreihenfolge in der ts geändert. hätte sein können, dass es an der citrix xenapp installation lag.

    logging ist aktiv, nun habe ich im ccmexec.log das hier gefunden:

    <![LOG[Invoking system task 'SMSSHA_Startup'.]LOG]!><time="13:03:36.805+-60" date="02-11-2010" component="CcmExec" context="" type="1" thread="2984" file="systemtask.cpp:169">
    <![LOG[System task 'SMSSHA_Startup' returned error code 0x80040154.]LOG]!><time="13:03:36.820+-60" date="02-11-2010" component="CcmExec" context="" type="3" thread="2984" file="systemtask.cpp:175">

    der dienst läuft auf dem server auch.


    In den details der tasksequence finde ich:
    The task sequence manager could not successfully complete execution of the task sequence. A failure exit code of 16389 was returned.
    The task sequence execution engine performed a system reboot initiated by the action (Restart Computer) in the group (Basis Konfiguration/Installation).
    The task sequence execution engine successfully completed the action (Restart Computer) in the group (Basis Konfiguration/Installation) with exit code 0
    The task sequence execution engine successfully completed the group (Installation Hyena (virtuell)).
    usw.

    den reboot habe ich in der tasksequenz mit
    Set Task Sequence Variable "SMSTSRebootRequested" = TRUE
    ausgelöst:
    http://technet.microsoft.com/de-de/library/bb632442.aspx


    zum ankündigungsstatus: danke für den link. bin leider mit den begrifflichkeiten nicht so vertraut.

    und danke für deine hilfe torsten.
    Donnerstag, 11. Februar 2010 12:35
  • den reboot habe ich in der tasksequenz mit
    Set Task Sequence Variable "SMSTSRebootRequested" = TRUE
    ausgelöst:
    http://technet.microsoft.com/de-de/library/bb632442.aspx

    So habe ich das bisher noch gar nicht probiert, sondern immer per: http://technet.microsoft.com/de-de/library/bb693641.aspx (also per TS-Schritt "Computer neu starten").
    In dem von Dir genannten Link steht "Die Tasksequenz unterstützt keinen separaten Tasksequenzschritt zum Neustart des Computers" was ggfs ein Fehler in der Doku sein könnte, weil ja wieder im Link von mir "Nach dem Neustart wird automatisch der nächste Schritt der Tasksequenz verarbeitet" (was ich auch aus praktischer Erfahrung bestätigen kann).
    Probier doch mal diesen Weg.
    Freitag, 12. Februar 2010 11:33
    Beantworter
  • Ein Kollege von mir hat bei der Task Sequence unlängst mal übersehen, bei 'Restart Computer' den Punkt 'The currently installed default operating system' auszuwählen. Hört sich vielleicht lächerlich an, aber da haben wir auch mal 'ne Zeit gesucht, bis wir da dahinter gekommen sind, warum die TS nicht mehr so funktioniert wie gedacht.

    Nur so eine Idee.

    Über die Varibale würde ich das nicht machen.
    Dietmar
    Freitag, 5. März 2010 12:49