Asynchronous logging

Hi,
I've developed an application which uses Java logging framework for logging. Lately I've thought to make logging asynchronous. So, log messages across the application should be posted to a queue and a thread should read each message, log it, and remove the message from queue.
I understand that this is a producer consumer problem and have some threading knowledge also; but wanted to know if this is already offered as part of Java concurrent utils.
I just migrated from Java 1.4 to 1.6 and did not see the concurrent utils much, any directions would be helpful to effectively proceed further.
Any thoughts?
Thanks for your time on this!

yes, the java.util.concurrent.BlockingQueue is pretty much the standard now for producer/consumer type scenarios.
as a point of design, you may want to manage the "asynchronous" part within the logging framework (as opposed to making the code which generates the log messages aware of all this). you could setup your own Handler which queues the LogRecords. additionally, if you care about the source class/method names (in the LogRecord), then you should call getSourceMethodName() before you put the LogRecord on the queue (because that info is determined lazily, so you need to force it to be resolved in the correct context). calling that one method will initialize both the source method and source class name.

Similar Messages

  • Error message when using a MessageListener using a distributed cache

    Hi --
    I'm getting the following error message when I attach a message listener to a distributed cache. I get the same message if I attach the listener to the NearCache in front of the DistributedCache, or to the DistributedCache itself.
    My message listener listens for a create() operation and writes the created value out to the database. Both the key and value are java objects that are getting "serialized" when they're pushed in the cache. The listener is never called.
    The error spits out two messages, which look like:
    2003-04-07 21:48:05.281 Tangosol Coherence 2.1/239 <Error> (thread=DistributedCache:EventDispatcher): An exception occurred while dispatching this event:
    CacheEvent: MapEvent{com.tangosol.coherence.component.util.daemon.queueProcessor
    .service.DistributedCache$BinaryMap added: key=Binary(length=269, value=0x0005AC
    ED000573720021636F6D2E6F6C742E646174612E696E7465726E616C2E4461746162617365554944
    6FABB5383C6013B402000078720021636F6D2E6F6C742E646174612E696E7465726E616C2E416273
    7472616374554944D04F591196E4DC1B0200024C000D657874656E73696F6E4461746174000F4C6A
    6176612F7574696C2F4D61703B4C0009756964537472696E677400124C6A6176612F6C616E672F53
    7472696E673B7870737200116A6176612E7574696C2E486173684D61700507DAC1C31660D1030002
    46000A6C6F6164466163746F724900097468726573686F6C6478703F400000000000087708000000
    0B0000000078740011363930395F436F6D706F6E656E74426964), value=Binary(length=1069,
    value=0x0005ACED000573720026636F6D2E6562726576696174652E61756374696F6E2E6269642
    E436F6D706F6E656E744269648EC95C4DE33A88D802000D5A0007626573744269644A000B6269645
    3657175656E6365440004636F73745A0007696E697469616C5A00066E65774269645A00067469654
    2696444000576616C75654C000B61756374696F6E4D6F64657400294C636F6D2F656272657669617
    4652F61756374696F6E2F6576656E742F41756374696F6E4D6F64653B4C000A61756374696F6E554
    9447400124C636F6D2F6F6C742F646174612F5549443B4C000A636F6D70616E7955494471007E000
    24C000C636F6D706F6E656E7455494471007E00024C000A737472696E67436F73747400124C6A617
    6612F6C616E672F537472696E673B4C000B737472696E6756616C756571007E00037872002D636F6
    D2E6562726576696174652E636F6D6D6F6E2E416273747261637450657273697374656E744F626A6
    56374497E2729A24CA5790200034C000A637265617465446174657400104C6A6176612F7574696C2
    F446174653B4C000375696471007E00024C000A7570646174654461746571007E000578707372000
    E6A6176612E7574696C2E44617465686A81014B59741903000078707708000000F46B9A286278737
    20021636F6D2E6F6C742E646174612E696E7465726E616C2E44617461626173655549446FABB5383
    C6013B402000078720021636F6D2E6F6C742E646174612E696E7465726E616C2E416273747261637
    4554944D04F591196E4DC1B0200024C000D657874656E73696F6E4461746174000F4C6A6176612F7
    574696C2F4D61703B4C0009756964537472696E6771007E00037870737200116A6176612E7574696
    C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F72490009746872657
    3686F6C6478703F4000000000000877080000000B0000000078740011363930395F436F6D706F6E6
    56E744269647371007E00077708000000F46B9A286278000000000000000000402E0000000000000
    00000402E00000000000073720027636F6D2E6562726576696174652E61756374696F6E2E6576656
    E742E41756374696F6E4D6F6465BD0C9E245C328B4F02000078720029636F6D2E656272657669617
    4652E636F6D6D6F6E2E41627374726163745479706553616665456E756D506D8C41B0144DB302000
    249000A696E744C69746572616C4C000D737472696E674C69746572616C71007E000378700000000
    374000A50524F44554354494F4E7371007E00097371007E000D3F4000000000000877080000000B0
    00000007874000A38335F41756374696F6E7371007E00097371007E000D3F4000000000000877080
    000000B000000007874000A34325F436F6D70616E797371007E00097371007E000D3F40000000000
    00877080000000B00000000787400103131315F426964436F6D706F6E656E747070)}
    2003-04-07 21:48:05.687 Tangosol Coherence 2.1/239 <Warning> (thread=CoherenceLogger): Asynchronous logging character limit exceeded; discarding 3 log messages (lines=17, chars=1416)

    Kris,
    First of all you should increase the value of logging-config/character-limit element in tangosol-coherence.xml to see the message entirely. The default setting is 4096 which is not enough to see your exception text.
    When you do that I believe you will see that the actual exception is java.lang.ClassNotFoundException indicating that the node that has the listener installed doesn't know about the class that is being put into the cache and could be easily fixed as shown here: http://www.tangosol.com/faq-coherence.jsp#classnotfound
    Please let me know if that doesn't help.
    Gene

  • DataGuard... SYNC/ASYNC

    I m studying dataguard, but I m having confusion in parameter SYNC, ASYNC, AFFIRM, NOAFFIRM. Please explain how these parameters affect the Primary/Standby Databases.

    HI,
    SYNC, ASYNC,AFFIRM, NOAFFIRMthese are basically used in which mode your standby is running.
    In maximum protection & availibilty mode the logs from Primary DB are shipped synchronously and shipped to standby.
    lgwr writes it synchronously .
    In Maximum performance mode asynchronously logs ar shipped by archiver or lgwr.(asynch. only if lgwr).
    HTH.
    Message was edited by:
    Ora-Lad

  • Request is pending; ignoring the ServiceConfigUpdate

    Periodically I am seeing thousands of messages like this in my logs, followed by the "logging character limit exceeded" message, followed by several long, multi-second full GCs (which were possibly due to the need to free up the memory taken up by the 294,978 lines and 433,373,442 characters in the discarded log messages).  It all goes downhill from there with members leaving the cluster and eventual JVM crashes.
    These are debug messages and not errors, but finding out what is going on in the cluster right before everything falls apart could help me figure out why everything falls apart.  So what do these "Request is pending; ignoring the ServiceConfigUpdate" log messages mean (i.e. what is the log message telling me)?
    2013-09-07 15:33:59,000 DEBUG [Logger@9219105 3.5.3/465p10] Coherence: Oracle Coherence GE 3.5.3/465p10 <D5> (thread=DistributedCache:DistributedResultCache, member=210): Request is pending; ignoring the ServiceConfigUpdate UpdateMap={224=Owners(0, 0), 254=Owners(0, 0), 255=Owners(0, 0), 252=Owners(0, 0), 253=Owners(0, 0), 250=Owners(0, 0), 251=Owners(0, 0), 248=Owners(0, 0), 249=Owners(0, 0), 246=Owners(0, 0), 247=Owners(0, 0), 244=Owners(0, 0), 245=Owners(0, 0), 242=Owners(0, 0), 243=Owners(0, 0), 240=Owners(0, 0), 241=Owners(0, 0), 256=Owners(0, 0)}; Remove=false
    2013-09-07 15:33:59,000 DEBUG [Logger@9219105 3.5.3/465p10] Coherence: Oracle Coherence GE 3.5.3/465p10 <D5> (thread=DistributedCache:DistributedResultCache, member=210): Request is pending; ignoring the ServiceConfigUpdate UpdateMap={254=Owners(0, 0), 255=Owners(0, 0), 252=Owners(0, 0), 253=Owners(0, 0), 250=Owners(0, 0), 251=Owners(0, 0), 248=Owners(0, 0), 249=Owners(0, 0), 246=Owners(0, 0), 247=Owners(0, 0), 244=Owners(0, 0), 245=Owners(0, 0), 242=Owners(0, 0), 243=Owners(0, 0), 240=Owners(0, 0), 241=Owners(0, 0), 256=Owners(0, 0)}; Remove=false
    2013-09-07 15:33:59,001 DEBUG [Logger@9219105 3.5.3/465p10] Coherence: Oracle Coherence GE 3.5.3/465p10 <D5> (thread=DistributedCache:DistributedResultCache, member=210): Request is pending; ignoring the ServiceConfigUpdate UpdateMap={255=Owners(0, 0), 252=Owners(0, 0), 253=Owners(0, 0), 250=Owners(0, 0), 251=Owners(0, 0), 248=Owners(0, 0), 249=Owners(0, 0), 246=Owners(0, 0), 247=Owners(0, 0), 244=Owners(0, 0), 245=Owners(0, 0), 242=Owners(0, 0), 243=Owners(0, 0), 240=Owners(0, 0), 241=Owners(0, 0), 256=Owners(0, 0)}; Remove=false
    2013-09-07 15:33:59,001 DEBUG [Logger@9219105 3.5.3/465p10] Coherence: Oracle Coherence GE 3.5.3/465p10 <D5> (thread=DistributedCache:DistributedResultCache, member=210): Request is pending; ignoring the ServiceConfigUpdate UpdateMap={252=Owners(0, 0), 253=Owners(0, 0), 250=Owners(0, 0), 251=Owners(0, 0), 248=Owners(0, 0), 249=Owners(0, 0), 246=Owners(0, 0), 247=Owners(0, 0), 244=Owners(0, 0), 245=Owners(0, 0), 242=Owners(0, 0), 243=Owners(0, 0), 240=Owners(0, 0), 241=Owners(0, 0), 256=Owners(0, 0)}; Remove=false
    2013-09-07 15:35:06,637 WARN  [Logger@9219105 3.5.3/465p10] Coherence: Oracle Coherence 3.5.3/465p10 <Warning> (thread=Logger@9219105 3.5.3/465p10, member=n/a): Asynchronous logging character limit exceeded; discarding 147489 log messages (lines=294978, chars=433373442)

    Hi Jarrod
    I just noticed that you are running with backup count = 2. There is a difference in behavior between v3.4 and v3.5 regarding systems that are configured with 2 levels of backup. This is considered a bug in 3.5; however, I don’t have an estimate on when the fix will be made.
    My advice is to use 1 level of backup, which is our recommended configuration. I apologize for any inconvenience this may have caused you.
    thanks
    Paul

  • Syn & asyn in DG configuration

    What is the difference between syn & asyn in DG configuration you’re using which one explains?

    Hello;
    SYNC mode synchronizes the primary with the standby database and all DML on the primary server will NOT be committed until the logs have been successfully transported to the standby servers. The synchronous log transport mode is required for the Maximum Protection and Maximum Availability data protection modes.
    ASYNC allows updates (DML) to be committed on the primary server before the log file arrives on the standby servers. The asynchronous log transport mode is required for the Maximum Performance data protection mode.
    Please close your old questions to keep the forum clean. You have 14 questions this month all OPEN. With all due respect this is NOT cool.
    Best Regards
    mseberg

  • What about JMS?

    Hi,
    I am thinking to implement an asynchronous logging service to some of enterprise applications and i am considering to use JMS.
    We have Resin web server into Solaris. We haven't an application server but we could install a new server.
    Could someone tell me easily what i would need to set it up?
    Is JNDI mandatory? and LDAP? and an application server?
    Thank you in advance!!
    Juli�n Monroy de S�

    I am by no means an expert on this, but I recently set up a email service using openJMS. It's for a low usage / non-commercial project so I installed it on the same box as Tomcat (as I said, low usage / non-commercial!)
    openJMS includes a light weight JNDI server that made things a bit easier. Took a near-newbie half a day. I also used Hermes to browser the queues and help with debugging.
    BTW - you know that Log4J can be configured to send messages to a JMS queue. May save your application developers some time.

  • Error handling / logging with asynchronous calls

    Hi,
    I want to log every error my app might throw. I thought it would be sufficient to surround either the launch method or the start method with a try...catch. But it doesn't work as excepted.
    If an error occurs in an asynchronous call, e.g. in a button click, the exception is never caught.
    Do you have an idea, how to solve this?
    Example:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    public class TestApp4 extends Application {
        public static void main(String[] args) {
            launch(args);
        public void start(final Stage stage) throws Exception {
            try {
                final VBox root = new VBox();
                Button button = new Button("Click");
                button.setOnAction(new EventHandler<ActionEvent>() {
                    @Override
                    public void handle(ActionEvent actionEvent) {
                        int i = 0;
                        int a = 5 / i;
                root.getChildren().add(button);
                Scene scene = new Scene(root);
                stage.setScene(scene);
                stage.show();
            } catch (Exception e) {
                // do logging here
                e.printStackTrace();
    }

    I'm not 100% sure how it works, but what I am pretty sure is that these Exceptions in EventHandlers are caught by JavaFX itself inside the JavaFX thread. They have to, because if they let the exception bubble up to the top, the FX thread would end (and with it, all response in the UI). It is probably caught at the level where Events are triggered somewhere (my guess is inside the QuantumToolKit).
    Anyway, these exceptions are printed to System.err -- if you can redirect that stream to a log file or whatever you can have them all in one place. The error stream can be set in your application simply by calling System.setErr().
    Note also that exceptions occuring in a Task are stored in the exception property -- sometimes these can be hard to find as they are put there silently -- you'll need to check your Tasks for exceptions and print them.

  • Does the logging API provide  "Asynchronous File Handler", like log4j ?

    Hi,
    One more question about java.util.logging:
    Does sun provide a standard "Asynchronous File Handler", equivalent to log4j AsyncFileAppender ?
    The idea is, logging requests are placed into a queue, which is being consumed by a dedicated logging-IO thread.
    Thanks.

    it's a shame, really. the Logging API was blatantly inspired by Log4J, but it's just such a poor cousin in so many ways...

  • Synchronous/Asynchronous Message Logging for WebLogic 6.1

    Hi,
    I have read through the documentation for logging messages using
    JMX on WebLogic 6.1, but I have not been able to find how log messages
    are sent from managed servers to the Administration Server. I
    understand that notifications are sent via JMX, but it never
    explicitly states if this is using JMS, or the mechanism by which they
    are broadcast (point-to-point versus publish/subscribe). If anyone
    could direct me to the documentation showing this, or get me started
    in the right direction, I'd really appreciate it. Thank you for the
    help, in advance.
    Richard

    As far as I've come, trying to squeeze som info out of Bea, the logging subsystem is all synchronous, i.e. no JMS is involved.
    This, btw, caused major bottleneck is a design of mine, since I attached a listener to the logging subsystem, assuming it was asynchronous. Boy, was I wrong! :)
    If you find out how to make listening to the subsystems asynchronous, I'd love to hear it!
    Cheers,
    /JMK

  • Dynamics CRM 2013 online - clear Asynchronous plugin system job log

    Hi all,
    I would like to know whether it is possible to disable the 'System Event' log (under System Jobs) which were generated by the Asynchronous Plugins?  Or we need to do housekeeping ourselves?  Because there were more than 100 thousand of system
    jobs created everyday.  Please advise.  Thanks. 
    Gary

    Do you have all of your workflows set to delete successful jobs automatically?  That will help keep the numbers down.  What other kinds of jobs are making logs?  If you have your own custom plugins, likely you want them to flag as
    "delete on success" as well to keep the log down to errored out jobs.
    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.
    Hi Wayne,
    The Delete AsyncOperation if StatusCode = Successful option is not provided in the current version of plugin registration tools.  (my version 6.1.0.519)

  • Asynchronous HotLog CDC Space to Null Issue

    I have established Asynchronous HotLog CDC in one of our testing database. I have done the following steps (as described in the Asynchronous HotLog CDC oracle documentation):
    ALTER DATABASE FORCE LOGGING;
    ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
    ALTER TABLE #SCHEMA#.#TABLE_NAME# ADD SUPPLEMENTAL LOG DATA (ALL) COLUMNS;
    In addition, all of the other steps were followed for permissions, pool sizes, change set setup, change table setup, and so forth. This work is being done as a conversion from Synchronous to Asynchronous.
    The issue encountered is that when characters that have a space (' '), it is substituted with a null and inserted into the CT table. I understand per documentation if the supplemental logging is not setup correctly, you can encounter nulls for values that remain static. The problem is this is occurring on our data inserts, with the correct supplemental logging on the table as per documentation.
    Any suggestions are appreciated, DB is 11.2.0.1
    Thanks

    Thank you damorgan, your example was very thorough and helpful. Unfortunately though, after following your steps with my table I was testing, I am still receiving nulls where the insert statement had a space, besides that the asynchronous cdc process works fine.
    It is almost like there is a trimming occurring when inserting into the change table, even though in the source table there is a space ' '. I might just need to stay with synchronous CDC because at least the trigger is capturing the correct change data, not sure why the Asynchronous would be different with the space becoming a null.
    Thanks.

  • Is in PI7.1 possible asynchronous communication between SOAP and ABAPProxy?

    Hi,
    when method execute_asynchronous has disapeared since XI/PI 7.1, is
    there still way how to use ABAP proxy in asynchronous way?
    We need to build asynchronous connection SOAP->PI->ABAP_Proxy.
    In PI, both interfaces are defined as asynchronous (outbound for SOAP and
    inbound for ABAP Proxy).
    Despite of this fact, when message is sent, it is processed
    synchronous way.
    I have set breakpoint in my implementation of method for ABAP Proxy
    message processing. When message is sent and breakpoint is reached,
    whole connection stays open (between SOAP and PI and between PI and
    ABAP Proxy) and waits for processing method (the breakpointed one) to
    return. Only when processing method returns, is connection finelly
    closed.
    If i understand it correctly, this is synchronous behavior. In
    asynchronous behavior, as i understand it, should be connection
    between PI and ABAP Proxy of application server closed immediately
    after message has been delivered. This mean before my processing
    method is even called.
    The same could be said about SOAP and PI communication. Connection
    should be closed immediately after PI has received message. From
    definition of asynchronous communication of PI is obvious, that PI
    should receive message correctly and close connection to sender system
    even when receiver is unreachable. It should deliver message later
    when, receiver system is back on line. So why it keeps connection to
    sender system open while it waits for receiver?
    Why is this happening, when both interfaces are defined as
    asynchronous? Could be the reason for this, if APPLICATION
    ACKNOWLEDGEMENT is set on by default? If so, how can i change it
    to SYSTEM ACKNOWLEDGEMENT, or disable it at all?
    Or is this kind of asynchronous communication even possible since
    XI/PI 7.1 ?
    Processing of message we are sending can take some time, so we dont
    want connection pending open while waiting for finish of
    processing. Thats the reason why we have chose asynchronous model to
    use.

    Quote from How to Use the J2EE SOAP Adapter:
    "If you select Best Effort, the Web service client will receive a response
    message in the SOAP body. Otherwise, the Web service client will not receive a
    response message if no error occurs."
    "if no error occurs" - that is the problem. In either case he still
    waits if some error occure or not. I dont want it. Once PI has
    received message, I want the connection with sender to be closed. If
    there will be error in communication between PI and reciever, I want
    to see it only in PI log. That mean no notification to sender to be
    send about that error.
    Is that possible?

  • How can I run a custom program ASYNCHRONOUSLY when booting WinPE?

    I have a custom application that I want to have running during WinPE for my Litetouch deployments. I had this working in SCCM and now I want to get it working in MDT.
    I have the Netcheck.exe application in my Extras folder, it ends up on the root of my X: drive.
    Here is my unattend.xml file.
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
                <Display>
                    <ColorDepth>32</ColorDepth>
                    <HorizontalResolution>1024</HorizontalResolution>
                    <RefreshRate>60</RefreshRate>
                    <VerticalResolution>768</VerticalResolution>
                </Display>
    <RunAsynchronous>
    <RunAsynchronousCommand>
    <Order>1</Order>
    <Path>X:\NetCheck.exe</Path>
    <Description>Run the NetCheck app</Description>
    </RunAsynchronousCommand>
    <RunAsynchronousCommand>
    <Order>2</Order>
    <Path>wscript.exe X:\Deploy\Scripts\LiteTouch.wsf</Path>
    <Description>Lite Touch PE</Description>
    </RunAsynchronousCommand>
    </RunAsynchronous>
            </component>
        </settings>
        <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    By default, the Litetouch.wsf file is launched synchronously, and so my Netcheck app won't run until the Litetouch wizard closes (this won't work for my needs). Also, synchronous commands are run before Asynchronous commands.  Therefore, I need to run
    both my custom Netcheck app and the Litetouch wizard Asynchronously.
    However, every time I use the unattend file that I pasted above, WinPE boots and then immediately reboots. If I am quick and hit F8 I get a command prompt, and then my Netcheck app and the Litetouch wizard both run (sweet!), but then when I close that cmd
    prompt, WinPE shuts down (lame).
    The wpeinit.log is shown below. Everything seems to look good, so what is wrong? How can I accomplish this?
    2014-09-09 14:23:02.588, Info      WPEINIT is processing the unattend file [X:\unattend.xml]
    2014-09-09 14:23:02.588, Info      Spent 141ms initializing removable media before unattend search
    2014-09-09 14:23:02.604, Info      ==== Initializing Display Settings ====
    2014-09-09 14:23:02.620, Info      Setting display resolution 1024x768x32@60: 0x00000000
    2014-09-09 14:23:02.620, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:02.620, Info      ==== Initializing Computer Name ====
    2014-09-09 14:23:02.620, Info      Generating a random computer name
    2014-09-09 14:23:02.620, Info      No computer name specified, generating a random name.
    2014-09-09 14:23:02.620, Info      Renaming computer to MININT-9KBBIFF.
    2014-09-09 14:23:02.620, Info      Waiting on the profiling mutex handle
    2014-09-09 14:23:02.620, Info      Acquired profiling mutex
    2014-09-09 14:23:02.620, Info      Service winmgmt disable: 0x00000000
    2014-09-09 14:23:02.620, Info      Service winmgmt stop: 0x00000000
    2014-09-09 14:23:02.620, Info      Service winmgmt enable: 0x00000000
    2014-09-09 14:23:02.620, Info      Released profiling mutex
    2014-09-09 14:23:02.620, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:02.620, Info      ==== Initializing Virtual Memory Paging File ====
    2014-09-09 14:23:02.620, Info      No WinPE page file setting specified
    2014-09-09 14:23:02.635, Info      STATUS: SUCCESS (0x00000001)
    2014-09-09 14:23:02.635, Info      ==== Initializing Optional Components ====
    2014-09-09 14:23:02.635, Info      WinPE optional component 'Microsoft-WinPE-HTA' is present
    2014-09-09 14:23:02.651, Info      WinPE optional component 'Microsoft-WinPE-MDAC' is present
    2014-09-09 14:23:02.651, Info      WinPE optional component 'Microsoft-WinPE-WMI' is present
    2014-09-09 14:23:02.667, Info      WinPE optional component 'Microsoft-WinPE-WSH' is present
    2014-09-09 14:23:02.682, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:02.682, Info      ==== Initializing Network Access and Applying Configuration ====
    2014-09-09 14:23:02.682, Info      No EnableNetwork unattend setting was specified; the default action for this context is to enable networking support.
    2014-09-09 14:23:02.682, Info      Global handle for profiling mutex is non-null
    2014-09-09 14:23:02.682, Info      Waiting on the profiling mutex handle
    2014-09-09 14:23:02.682, Info      Acquired profiling mutex
    2014-09-09 14:23:02.997, Info      Install MS_MSCLIENT: 0x0004a020
    2014-09-09 14:23:02.997, Info      Install MS_NETBIOS: 0x0004a020
    2014-09-09 14:23:03.138, Info      Install MS_SMB: 0x0004a020
    2014-09-09 14:23:03.326, Info      Install MS_TCPIP6: 0x0004a020
    2014-09-09 14:23:03.702, Info      Install MS_TCPIP: 0x0004a020
    2014-09-09 14:23:03.702, Info      Service dhcp start: 0x00000000
    2014-09-09 14:23:03.702, Info      Service lmhosts start: 0x00000000
    2014-09-09 14:23:03.827, Info      Service ikeext start: 0x00000000
    2014-09-09 14:23:03.921, Info      Service mpssvc start: 0x00000000
    2014-09-09 14:23:03.921, Info      Service mrxsmb10 start: 0x00000000
    2014-09-09 14:23:03.921, Info      Released profiling mutex
    2014-09-09 14:23:03.921, Info      Spent 1250ms installing network components
    2014-09-09 14:23:04.108, Info      Installing device root\kdnic X:\windows\INF\kdnic.inf succeeded
    2014-09-09 14:23:04.608, Info      Installing device vmbus\{f8615163-df3e-46c5-913f-f2d2f965ed0e} X:\windows\INF\wnetvsc.inf succeeded
    2014-09-09 14:23:04.670, Info      Spent 750ms installing network drivers
    2014-09-09 14:23:09.768, Info      QueryAdapterStatus: found operational adapter with DHCP address assigned.
    2014-09-09 14:23:09.768, Info      Spent 5062ms confirming network initialization; status 0x00000000
    2014-09-09 14:23:09.768, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:09.768, Info      ==== Applying Firewall Settings ====
    2014-09-09 14:23:09.768, Info      STATUS: SUCCESS (0x00000001)
    2014-09-09 14:23:09.768, Info      ==== Executing Synchronous User-Provided Commands ====
    2014-09-09 14:23:09.768, Info      STATUS: SUCCESS (0x00000001)
    2014-09-09 14:23:09.768, Info      ==== Executing Asynchronous User-Provided Commands ====
    2014-09-09 14:23:09.768, Info      Parsing RunAsynchronousCommand: 2 entries
    2014-09-09 14:23:09.768, Info        Command 0: 0x00000000
    2014-09-09 14:23:09.768, Info      Successfully executed command 'X:\NetCheck.exe'
    2014-09-09 14:23:09.768, Info        Command 1: 0x00000000
    2014-09-09 14:23:09.784, Info      Successfully executed command 'wscript.exe X:\Deploy\Scripts\LiteTouch.wsf'
    2014-09-09 14:23:09.784, Info      STATUS: SUCCESS (0x00000000)
    2014-09-09 14:23:09.784, Info      ==== Applying Shutdown Settings ====
    2014-09-09 14:23:09.784, Info      No shutdown setting was specified
    2014-09-09 14:23:09.784, Info      STATUS: SUCCESS (0x00000001)

    Here is how i ended up solving my problem.
    Change the unattend file to look like this:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
    <Display>
    <ColorDepth>32</ColorDepth>
    <HorizontalResolution>1024</HorizontalResolution>
    <RefreshRate>60</RefreshRate>
    <VerticalResolution>768</VerticalResolution>
    </Display>
    <RunSynchronous>
    <RunSynchronousCommand>
    <Order>1</Order>
    <Path>wscript.exe X:\Deploy.vbs</Path>
    <Description>Run the .vbs file that kicks off Netcheck and the Litetouch wizard</Description>
    </RunSynchronousCommand>
    </RunSynchronous>
    </component>
    </settings>
    <cpi:offlineImage cpi:source="" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
    </unattend>
    Here is the Deploy.vbs:
    Set objShell = Wscript.CreateObject("Wscript.shell")
    objShell.Run "X:\Netcheck.exe", 0, false
    objShell.Run "wscript.exe X:\Deploy\Scripts\LiteTouch.wsf", 0, true

  • Get current logged in user in sharepoint 2013 hover display template

    Hi,
    Can somebody tell me how the current logged in username can be retreived in hover display template to be used in search result.
    i tried using rest api but that is very difficult to get as it is to be done using ajax call and if we do getting a return value asynchronous is difficult.
    Please help

    Hello,
    You might use the function used in the Visual Studio SharePoint App template:
    var context = SP.ClientContext.get_current();
    var user = context.get_web().get_currentUser();
    $(document).ready(function () {
    getUserName();
    function getUserName() {
    context.load(user);
    context.executeQueryAsync(onGetUserNameSuccess, onGetUserNameFail);
    function onGetUserNameSuccess() {
    $('#message').text('Hello ' + user.get_title());
    function onGetUserNameFail(sender, args) {
    alert('Failed to get user name. Error:' + args.get_message());

  • Slow log on with Windows XP / Active directory

    Hi
    I have been trying to work out what is causing my computers to take a long time to log on. The computers are Windows XP and take roughly a 1minute to log on(at worse).
    I have turned on  userenv debugging and reviewed the files. I think the problem may be related to DNS but not 100% sure.
    Please could someone review the log below and see if I am looking in the right direction. Thanks (I've cut the log down slightly)
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CheckGPOs: No GPO changes but couldn't read extension EFS recovery's status or policy time.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Extension EFS recovery skipped with flags 0x6.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Processing extension 802.3 Group Policy
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CheckGPOs: No GPO changes but couldn't read extension 802.3 Group Policy's status or policy time.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Extension 802.3 Group Policy skipped with flags 0x6.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Processing extension Group Policy Printers
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CheckGPOs: No GPO changes but couldn't read extension Group Policy Printers's status or policy time.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Extension Group Policy Printers skipped because both deleted and changed GPO lists are empty.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Processing extension Group Policy Shortcuts
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CheckGPOs: No GPO changes but couldn't read extension Group Policy Shortcuts's status or policy time.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Extension Group Policy Shortcuts skipped because both deleted and changed GPO lists are empty.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Processing extension Microsoft Offline Files
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CheckGPOs: No GPO changes but couldn't read extension Microsoft Offline Files's status or policy time.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Extension Microsoft Offline Files skipped with flags 0x6.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Processing extension Software Installation
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:000 CheckGPOs: No GPO changes but couldn't read extension Software Installation's status or policy time.
    USERENV(36c.a98) 15:23:07:000 ProcessGPOs: Extension Software Installation skipped because both deleted and changed GPO lists are empty.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Processing extension Internet Explorer Machine Accelerators
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CheckGPOs: No GPO changes but couldn't read extension Internet Explorer Machine Accelerators's status or policy
    time.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Extension Internet Explorer Machine Accelerators skipped because both deleted and changed GPO lists
    are empty.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Processing extension IP Security
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CheckGPOs: No GPO changes but couldn't read extension IP Security's status or policy time.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Extension IP Security skipped with flags 0x6.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Processing extension Group Policy Internet Settings
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CheckGPOs: No GPO changes but couldn't read extension Group Policy Internet Settings's status or policy time.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Extension Group Policy Internet Settings skipped because both deleted and changed GPO lists are
    empty.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Processing extension Group Policy Start Menu Settings
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CheckGPOs: No GPO changes but couldn't read extension Group Policy Start Menu Settings's status or policy time.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Extension Group Policy Start Menu Settings skipped because both deleted and changed GPO lists are
    empty.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Processing extension Group Policy Regional Options
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CheckGPOs: No GPO changes but couldn't read extension Group Policy Regional Options's status or policy time.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Extension Group Policy Regional Options skipped because both deleted and changed GPO lists are
    empty.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Processing extension Group Policy Power Options
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CheckGPOs: No GPO changes but couldn't read extension Group Policy Power Options's status or policy time.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Extension Group Policy Power Options skipped because both deleted and changed GPO lists are empty.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: -----------------------
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Processing extension Group Policy Applications
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CompareGPOLists:  The lists are the same.
    USERENV(36c.a98) 15:23:07:015 CheckGPOs: No GPO changes but couldn't read extension Group Policy Applications's status or policy time.
    USERENV(36c.a98) 15:23:07:015 ProcessGPOs: Extension Group Policy Applications skipped because both deleted and changed GPO lists are empty.
    USERENV(36c.a98) 15:23:07:015 SetFgRefreshInfo: Previous User Fg policy Synchronous, Reason: NonCachedCredentials.
    USERENV(36c.a98) 15:23:07:015 SetFgRefreshInfo: Next User Fg policy Asynchronous, Reason: NoNeedForSync.
    USERENV(36c.a98) 15:23:07:031 ProcessGPOs: No WMI logging done in this policy cycle.
    USERENV(36c.a98) 15:23:07:031 LeaveCriticalPolicySection: Critical section 0x80c has been released.
    USERENV(36c.a98) 15:23:07:031 ProcessGPOs: User Group Policy has been applied.
    USERENV(36c.a98) 15:23:07:031 ProcessGPOs: Leaving with 1.
    USERENV(36c.a98) 15:23:07:031 ApplyGroupPolicy: Leaving successfully.
    USERENV(36c.ed8) 15:23:07:031 GPOThread:  Next refresh will happen in 103 minutes
    USERENV(36c.ee4) 15:23:07:031 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(36c.650) 15:23:07:031 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(36c.370) 15:23:07:187 IsSyncForegroundPolicyRefresh: Asynchronous, Reason: NoNeedForSync
    USERENV(36c.f40) 15:23:07:187 IsSyncForegroundPolicyRefresh: Asynchronous, Reason: NoNeedForSync
    USERENV(36c.f40) 15:23:07:187 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(f00.f04) 15:23:07:265 LibMain: Process Name:  C:\WINDOWS\system32\userinit.exe
    USERENV(c4.c0) 15:23:07:500 LibMain: Process Name:  C:\WINDOWS\system32\userinit.exe
    USERENV(118.7c) 15:23:07:671 LibMain: Process Name:  C:\WINDOWS\system32\userinit.exe
    USERENV(3a8.3cc) 15:23:07:765 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(3a8.3cc) 15:23:07:765 GetUserNameAndDomain Failed to impersonate user
    USERENV(3a8.3cc) 15:23:07:781 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(3a8.3cc) 15:23:07:781 GetUserDNSDomainName: Failed to impersonate user
    USERENV(3a8.3cc) 15:23:07:781 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(c4.c0) 15:23:07:796 GetProfileType:  Profile already loaded.
    USERENV(c4.c0) 15:23:07:812 GetProfileType: ProfileFlags is 0
    USERENV(888.890) 15:23:07:843 LibMain: Process Name:  C:\WINDOWS\Explorer.EXE
    USERENV(434.9c) 15:23:07:921 LibMain: Process Name:  C:\WINDOWS\system32\WgaTray.exe
    USERENV(434.9c) 15:23:07:921 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(434.9c) 15:23:07:968 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(888.978) 15:23:08:046 GetProfileType:  Profile already loaded.
    USERENV(888.978) 15:23:08:046 GetProfileType: ProfileFlags is 0
    USERENV(888.978) 15:23:08:046 GetProfileType:  Profile already loaded.
    USERENV(888.978) 15:23:08:046 GetProfileType: ProfileFlags is 0
    USERENV(888.9d4) 15:23:08:078 GetProfileType:  Profile already loaded.
    USERENV(888.9d4) 15:23:08:078 GetProfileType: ProfileFlags is 0
    USERENV(710.3a0) 15:23:08:156 LibMain: Process Name:  C:\WINDOWS\system32\wbem\wmiprvse.exe
    USERENV(51c.67c) 15:23:09:640 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(51c.67c) 15:23:09:671 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(e78.b00) 15:23:10:750 LibMain: Process Name:  C:\WINDOWS\system32\RUNDLL32.EXE
    USERENV(e14.e20) 15:23:11:125 LibMain: Process Name:  C:\WINDOWS\Creator\Remind_XP.exe
    USERENV(43c.b5c) 15:23:11:125 LibMain: Process Name:  C:\WINDOWS\system32\RUNDLL32.EXE
    USERENV(e14.e20) 15:23:11:250 GetProfileType:  Profile already loaded.
    USERENV(e14.e20) 15:23:11:250 GetProfileType: ProfileFlags is 0
    USERENV(a64.b50) 15:23:11:437 LibMain: Process Name:  C:\WINDOWS\system32\mobsync.exe
    USERENV(fc8.ac) 15:23:12:015 LibMain: Process Name:  C:\Program Files\Common Files\Adobe\ARM\1.0\AdobeARM.exe
    USERENV(54c.550) 15:23:13:515 LibMain: Process Name:  C:\WINDOWS\system32\ctfmon.exe
    USERENV(54c.550) 15:23:13:968 GetProfileType:  Profile already loaded.
    USERENV(54c.550) 15:23:14:093 GetProfileType: ProfileFlags is 0
    USERENV(9e0.9dc) 15:23:15:109 LibMain: Process Name:  C:\WINDOWS\system32\imapi.exe
    USERENV(888.978) 15:23:17:421 GetProfileType:  Profile already loaded.
    USERENV(888.978) 15:23:17:421 GetProfileType: ProfileFlags is 0
    USERENV(51c.67c) 15:23:17:656 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(36c.efc) 15:23:22:031 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(f68.970) 15:23:22:250 LibMain: Process Name:  C:\WINDOWS\system32\NOTEPAD.EXE
    USERENV(d0.f28) 15:23:22:312 LibMain: Process Name:  C:\WINDOWS\system32\userinit.exe
    USERENV(eec.f18) 15:28:16:531 LibMain: Process Name:  C:\Program Files\AVG\AVG10\avgdiagex.exe
    USERENV(71c.f5c) 15:32:30:703 LibMain: Process Name:  C:\Program Files\OCS Inventory Agent\ocsinventory.exe
    USERENV(71c.f5c) 15:32:30:703 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(71c.f5c) 15:32:30:703 GetUserNameAndDomain Failed to impersonate user
    USERENV(71c.f5c) 15:32:30:718 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(71c.f5c) 15:32:30:718 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(71c.f5c) 15:32:30:750 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(71c.f5c) 15:32:30:750 GetUserNameAndDomain Failed to impersonate user
    USERENV(71c.f5c) 15:32:30:750 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(71c.f5c) 15:32:30:750 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(71c.f5c) 15:32:30:796 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(71c.f5c) 15:32:30:968 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(71c.f5c) 15:32:31:000 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(71c.f5c) 15:32:31:000 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(93c.97c) 15:32:55:609 LibMain: Process Name:  C:\Program Files\AVG\AVG10\avgcmgr.exe
    USERENV(534.4b8) 15:34:01:421 LibMain: Process Name:  C:\Program Files\OCS Inventory Agent\ocsinventory.exe
    USERENV(534.4b8) 15:34:01:421 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(534.4b8) 15:34:01:421 GetUserNameAndDomain Failed to impersonate user
    USERENV(534.4b8) 15:34:01:421 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(534.4b8) 15:34:01:421 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(534.4b8) 15:34:01:437 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(534.4b8) 15:34:01:437 GetUserNameAndDomain Failed to impersonate user
    USERENV(534.4b8) 15:34:01:437 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(534.4b8) 15:34:01:437 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(534.4b8) 15:34:01:484 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(534.4b8) 15:34:01:640 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(534.4b8) 15:34:01:671 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(534.4b8) 15:34:01:687 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(224.7c8) 15:34:20:968 GetUserDNSDomainName:  MyGetUserNameEx failed for NameDnsDomain style name with 5
    USERENV(224.7c8) 15:34:20:968 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(224.7c8) 15:34:22:562 GetUserDNSDomainName:  MyGetUserNameEx failed for NameDnsDomain style name with 5
    USERENV(224.7c8) 15:34:22:562 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(224.7c8) 15:34:22:562 GetUserDNSDomainName:  MyGetUserNameEx failed for NameDnsDomain style name with 5
    USERENV(224.7c8) 15:34:22:562 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(fb4.dc4) 15:35:54:140 LibMain: Process Name:  C:\Program Files\OCS Inventory Agent\ocsinventory.exe
    USERENV(fb4.dc4) 15:35:54:140 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(fb4.dc4) 15:35:54:140 GetUserNameAndDomain Failed to impersonate user
    USERENV(fb4.dc4) 15:35:54:140 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(fb4.dc4) 15:35:54:140 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(fb4.dc4) 15:35:54:140 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(fb4.dc4) 15:35:54:140 GetUserNameAndDomain Failed to impersonate user
    USERENV(fb4.dc4) 15:35:54:156 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(fb4.dc4) 15:35:54:156 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(fb4.dc4) 15:35:54:187 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(fb4.dc4) 15:35:54:343 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(fb4.dc4) 15:35:54:375 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(fb4.dc4) 15:35:54:390 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(94c.e78) 15:37:21:812 LibMain: Process Name:  C:\Program Files\OCS Inventory Agent\ocsinventory.exe
    USERENV(94c.e78) 15:37:21:812 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(94c.e78) 15:37:21:812 GetUserNameAndDomain Failed to impersonate user
    USERENV(94c.e78) 15:37:21:812 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(94c.e78) 15:37:21:828 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(94c.e78) 15:37:21:828 ImpersonateUser: Failed to impersonate user with 5.
    USERENV(94c.e78) 15:37:21:828 GetUserNameAndDomain Failed to impersonate user
    USERENV(94c.e78) 15:37:21:828 GetUserDNSDomainName:  Domain name is NT Authority.  No DNS domain name available.
    USERENV(94c.e78) 15:37:21:828 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(94c.e78) 15:37:21:890 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(94c.e78) 15:37:22:031 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(94c.e78) 15:37:22:078 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(94c.e78) 15:37:22:078 ProcessAutoexec: Cannot process autoexec.bat.
    USERENV(ad4.764) 15:39:07:424 LibMain: Process Name:  C:\WINDOWS\system32\verclsid.exe

    Hi
    IT is taking 5 mins after Userinit process. There might be issue with that also.
    Userinit isresponsible for reconnecting network drives, running logon scripts, etc. I would guess that something of that nature is actually causing the delay. Isolate the user/computer account in an OU with block inheritance set and see if the issue continues.
    Also, do you have any logon scripts or mapped drives set on the user account? If so, you may want to remove those and see if that helps the issue. If so you may have a problem with slow network connectivity.
    You can also try
    How to perform advanced clean-boot troubleshooting in Windows XP 
    http://support.microsoft.com/kb/316434
    In addition to above suggestion, the following two links might be helpful for you to resolve the issue.
    http://blogs.technet.com/askds/archive/2009/09/23/so-you-have-a-slow-logon-part-1.aspx
    http://blogs.technet.com/askds/archive/2009/09/23/so-you-have-a-slow-logon-part-2.aspx

Maybe you are looking for