|
#1
|
|||
|
|||
Problems with PSInfo from SysInternals
I keep getting problems with using PSInfo to get a list of installed software on a remote computer.
Im using the run program action and for a command I use: PSINFO -S I set it to run on a remote computer, to copy the file locally and it gets some of the info and returns an error code 1. Please help!! Thanks Craig |
#2
|
|||
|
|||
According to http://www.sysinternals.com/Utilities/PsInfo.html
"PsInfo returns as a value the Service Pack number of system (e.g. 0 for no service pack, 1 for SP 1, etc)." So you could either mark the step to continue on failure or add the service pack(s) to succeed on to the 'Success exit codes' field. http://www.visualbuild.com/Manual/programtab.htm |
#3
|
|||
|
|||
PSInfo
The problems is that the command doesnt finish from in Visual Build. As the out put it writen to the log file there is an error.
If I open a command window and run the same command it completes without error All I want to do is get a list of installed software on the server. I have scripts that read the logs and look for the software if it exists. |
#4
|
|||
|
|||
Please ZIP and send or post:
1) The info from Help | About | Install Info 2) The .bld file 3) A build log file 4) A log when running from a command prompt ( > filename.ext to redirect output to a file) 5) The version of PsInfo 6) The version+SP of Windows on the remote computer Thanks. |
#5
|
|||
|
|||
The log files have all the info you requested. I did short the Build file to just what was nessesary.
|
#6
|
|||
|
|||
I also need #1 and #4.
You might try the PsInfo remote flags rather than using the Remote tab of the Run Program action (which adds the additional layer of PsExec). |
#7
|
|||
|
|||
See Attached.
|
#8
|
|||
|
|||
I seems that the command doesnt complete properly. When run from a command line all the software is listed when run threw VB it gets about 1/2 way logging the output and dosent finish.
I see that the exit code changes depending on the SP level. What is a good way around that can I list multiple exit codes as succsesful? |
#9
|
|||
|
|||
Using the PsInfo remote flags (i.e., PsInfo -s \\computer -u user -p password) rather than the Remote tab of the Run Program action (which adds the additional layer of PsExec) logs the entire output in my tests.
Regarding exit codes, see (Success Exit Codes field): http://www.visualbuild.com/Manual/programtab.htm |
#10
|
|||
|
|||
I tried both using PSExec and just putting in the command line to have the user name and password as follows:
psinfo \\server -u username p-password -s Both are if run from a command window will work with the entire results return. If run from VB they both succesed but the output is only 1/2 shown. It seems the problem is how its being logged in the output panel. |
#11
|
|||
|
|||
Sorry the 1/2 output display is only if I use the PSExec.
so how do I hide the username and password from the script, as its usually hidden in a field. I know users can find the password by turning on log command line, but is there another way then just putiing it in the command box? |
#12
|
|||
|
|||
Im back to the same issue. Is there a way to get the psinfo to work with the remoting tab.
My new issue is I have PSinfo run from a command line and that work but if I try to run it on a server that is on a different but trusted domain it gives me access denied. If I use PSExec to run the command on the remote server with the copy option selected it runs. Is there an issue with it logging the complete output? becuase the PSExec works from a command line. |
#13
|
|||
|
|||
There is some sort of conflict between VBP and PsExec regarding capturing its std output. What you can do is redirect the psinfo output to a file, i.e. a Command of:
cmd /c psinfo -s >c:\psinfo.out and then configure the step to read program output from that file (i.e., \\servername\c$\psinfo.out) instead of Standard output. |
#14
|
|||
|
|||
Thanks for all the help!!!
As for how VB captures output from PSExec is this something that is is being worked on now. If so do you have a projected date for this fix? Thanks again Craig |
#15
|
|||
|
|||
This is now handled properly in the latest VBP v6.2 beta: http://www.kinook.com/Forum/showthre...?threadid=1973
|
|
|