psexec.exe wuauclt.exe tool works intermittently
1isaann
unregistered posted 05-23-2006 07:50 AM Edit/Delete Message Reply w/Quote 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
IP: Logged
Trammel
Member posted 05-23-2006 05:46 PM Click Here to See the Profile for Trammel Edit/Delete Message Reply w/Quote 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
IP: Logged
1isaann
unregistered posted 05-25-2006 06:05 AM Edit/Delete Message Reply w/Quote 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
IP: Logged
1isaann
unregistered posted 05-25-2006 10:44 AM Edit/Delete Message Reply w/Quote 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
IP: Logged
Trammel
Member posted 05-25-2006 08:30 PM Click Here to See the Profile for Trammel Edit/Delete Message Reply w/Quote You command line should look something like this.
\\servername\scripts\HyenaTools\Pstools\psexec.exe \\%E% -u domain\username -p password -c -f "\\servername\Scripts\HyenaTools\Scripts\wuaucltdetect.bat"
The batch file is close.
@ECHO OFF
ECHO Running Wuauclt Detect
wuauclt /detectnow
ECHO Command completed
pause
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).]
IP: Logged
1isaann
unregistered posted 05-26-2006 05:04 AM Edit/Delete Message Reply w/Quote 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!
IP: Logged
Trammel
Member posted 05-26-2006 11:08 AM Click Here to See the Profile for Trammel Edit/Delete Message Reply w/Quote Another satisifed Hyena user
Wait, where's my commission Kevin
[This message has been edited by Trammel (edited 05-26-2006).]
IP: Logged
rtmcmullen
Junior Member posted 09-19-2006 12:18 PM Click Here to See the Profile for rtmcmullen Edit/Delete Message Reply w/Quote Is there anyway to have this dump into a log file for a status?
IP: Logged
Trammel
Member posted 09-19-2006 06:00 PM Click Here to See the Profile for Trammel Edit/Delete Message Reply w/Quote 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.
echo %date% , %time% , %computername% , %username% , >> c:\echotest.txt
Saturday, April 25, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment