/build/static/layout/Breadcrumb_cap_w.png

Psexec + Rundll32.exe + hang

I am trying to deploy a application through PSexec. This application will install a file filter driver on the target machine.

Command Line:
Psexec.exe \\Machine -c -f ToolBox.exe /s

I didn't get return code for a long time. So I check the target machine and find that the PSEXEC process hangs on running:

C:\WINDOWS\system32\rundll32.exe "C:\Program Files\Toolbox\USB Driver\CUsbInst.dll",_CUsbInstall@16 "C:\Program Files\Toolbox\USB Driver\Usb.inf"

After I kill the rundll32.exe process, the installation goes on and exit successfully.

Any suggestions to eliminate the hanging problem? Thanks in advance!

0 Comments   [ + ] Show comments

Answers (8)

Posted by: itolutions 13 years ago
Purple Belt
0
Is it applicable for you to igore exit code? if yes, use "-d" argument.

IMHO. Using psiexec is not managed solution. Better to use msi.
Posted by: Savage455 13 years ago
Orange Belt
0
Thanks for your reply.
Yes, I could ignore the exit code. But the installation will still never exit except I kill the Rundll32.exe process manually.
Posted by: itolutions 13 years ago
Purple Belt
0
Possible resons:
1) psiexec.exe shows EULA message during first run.
2) Permissions
3) dll function can require user session.

To avoid these issues please try following scenarios:
1) with "-accepteula" argument
2) with "-s" argument
3) with "-i" argument
4) 2 + 3
5) 2 + 3 + 1

Start from the last one to save your time ;)
Posted by: itolutions 13 years ago
Purple Belt
0
Also please note about official bug: always put -accepteula as first argument
Posted by: Savage455 13 years ago
Orange Belt
0
"dll function can require user session" may be the most possible reason. Because if I run the application on other machine locally, it works fine. [align=right] [/align]
Posted by: itolutions 13 years ago
Purple Belt
0
This this case use "-i" psexec argument. Wich means "iteract with user desktop".
Posted by: Savage455 13 years ago
Orange Belt
0
I add a "-i" to the psexec.exe , it works. Thanks a lot.
Posted by: anonymous_9363 13 years ago
Red Belt
0
Better to use msi.Quite so. The 'Unsigned driver' sticky at the top of the forum page will help.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ