Results 1 to 9 of 9

Thread: psexec.exe wuauclt.exe tool works intermittently

  1. #1
    Guest

    psexec.exe wuauclt.exe tool works intermittently

    I have set up a Hyena tool that reads: C:\Program Files\Hyena\Tools\psexec.exe \\%E% wuauclt.exe /detectnow

    My problem is that this works on some clients, but not others. It just flashes a command prompt screen indicating it is connecting, but then the screen closes and disappears.

    Does anyone have any suggestions? I am at a loss.

    Thanks,
    Lisa

  2. #2
    Trammel
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    I have had this experience with some psexec trying to execute it on remote machines. I have found that by using psexec.exe to execute a batch file is more reliable. Not only that, you can stick a pause in the batch file. This will stop the cmd window from dissapearing.

    Obviously in the batch file is where you put your wuauclt /detectnow command

  3. #3
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    Thanks, Trammel. I created a batch file located at C:\Program Files\Hyena\Scripts\wuaucltdetect with the following commands:

    @echo on
    wuauclt /detectnow &pause
    @echo off

    I'm new at batch files, so I was wondering if this is all I needed. Also, when I set the tool up in Hyena, should it read like this:

    C:\Program Files\Hyena\Tools\psexec.exe C:\Program Files\Hyena\Scripts\wuaucltdetect.bat

    I wasn't sure if I had to list the entire path to the batch file. Is the syntax correct because it is doing the same thing.

    Thanks for your help.
    Lisa

  4. #4
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    I have just tried running psexec \\computername cmd.exe from the RUN command and the same thing happens. The window closes as fast as it opens. I guess this means that it isn't my wuauclt command or Hyena. Any other thoughts as to why this is happening on most of my clients?

    Thanks again,
    Lisa

  5. #5
    Trammel
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    You command line should look something like this.
    <span style="font-weight: bold">\\servername\scripts\HyenaTools\Pstools\psex ec.exe \\%E% -u domain\username -p password -c -f "\\servername\Scripts\HyenaTools\Scripts\wuaucltde tect.bat"</span>

    The batch file is close.
    <span style="font-weight: bold">@ECHO OFF
    ECHO Running Wuauclt Detect
    wuauclt /detectnow
    ECHO Command completed
    pause</span>

    I use a sharepoint for all of my tools instead of my local machine. You should be able to figure out the path difference and get yours to work. Make the batch file and then you can use a command window, paste or type in the command. This is how you can ensure the command is going to work. Once you have it working, then you can remove the pause

    Hope this helps.


    [This message has been edited by Trammel (edited 05-25-2006).]

  6. #6
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    Trammel, you rock! Thanks for your help. The problem is that I was not logged on as an administrator and not adding the admin and password to the command line. Once I did that, everything worked great.

    Thanks again!

  7. #7
    Trammel
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    Another satisifed Hyena user

    Wait, where's my commission Kevin


    [This message has been edited by Trammel (edited 05-26-2006).]

  8. #8
    rtmcmullen
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    Is there anyway to have this dump into a log file for a status?

  9. #9
    Trammel
    Guest

    Re: psexec.exe wuauclt.exe tool works intermittently

    You could add a command in the batch file to append a text file. Add this line to your batch file and point it to a network share instead of C drive.
    <span style="font-weight: bold">

    echo %date% , %time% , %computername% , %username% , >> c:\echotest.txt

    </span>

Similar Threads

  1. Ask the command to send with psexec
    By cuhbe in forum How Do I ... ?
    Replies: 5
    Last Post: 12-04-2009, 07:55 AM
  2. psexec comman in tools
    By dgvrm in forum Custom Tools
    Replies: 1
    Last Post: 02-15-2008, 01:39 PM
  3. PSEXEC and NETSH
    By rtracy in forum Custom Tools
    Replies: 2
    Last Post: 03-08-2007, 08:59 AM
  4. find wuauclt process remotely
    By ruens in forum Custom Tools
    Replies: 0
    Last Post: 10-24-2006, 11:16 PM
  5. wuauclt /Detectnow Tool
    By L in forum Custom Tools
    Replies: 8
    Last Post: 10-26-2005, 05:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •