Announcement

Collapse
No announcement yet.

psexec.exe wuauclt.exe tool works intermittently

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment


      • #4
        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

        Comment


        • #5
          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).]

          Comment


          • #6
            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!

            Comment


            • #7
              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).]

              Comment


              • #8
                Re: psexec.exe wuauclt.exe tool works intermittently

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

                Comment


                • #9
                  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>

                  Comment

                  Working...
                  X