Solved

Help with psexec

Posted on 2006-11-28
5
21,947 Views
Last Modified: 2010-08-13
I using psexec to launch installs from remote pc's and in most cases it has been working for me but i am stuck on this on.

c:\psexec \\ITPC C:\temp\sqlr\SQLR_A0267_win32.exe /S /v/qn

All my other examples have simpler switches for silent installs for example

c:\psexec \\TRAIN91 C:\temp\lender\setup.exe unattend

I don't know if the extra space in the parameters is throwing things off or not.  I even tried embedding the command into a batch file coping over the batch file to the pc and then executing that.. surprising that didn't work either.  I can run the command C:\temp\sqlr\SQLR_A0267_win32.exe /S /v/qn from the dos prompt on the local machine with no problem.  I am also open to other ways to lauching remote files on other pc's.  I had looked into using WMI originally but i didn't have much luck with that.
0
Comment
Question by:mightofnight
5 Comments
 
LVL 22

Expert Comment

by:Bartender_1
ID: 18031831
Have you tried enclosing the entire command in quotes?

"c:\psexec \\ITPC C:\temp\sqlr\SQLR_A0267_win32.exe /S /v/qn"

That should work from a batch file if it works when you run it from a DOS prompt on the local machine.

Hope this helps!

:o)

Bartender_1
0
 
LVL 9

Accepted Solution

by:
Krompton earned 500 total points
ID: 18038540
I think what you need is to enclose the remote command in quotes or eliminate the space in the switches as you hinted at

c:\psexec \\ITPC "C:\temp\sqlr\SQLR_A0267_win32.exe /S /v/qn"
or
c:\psexec \\ITPC C:\temp\sqlr\SQLR_A0267_win32.exe /S/v/qn

One of those should work.

Krompton
0
 
LVL 2

Author Comment

by:mightofnight
ID: 18039346
Interesting i had tried both of the quote methods before but in good spirit i tried them again and they didn't work.  I removed the space and it worked.  I thought it was the space that was causing the problems but i was insistent that earlier testing said it was needed.

Thanks guys!
0
 

Expert Comment

by:ravikiranchv
ID: 24510415
it did not work for me, can someone please post syntax
0
 
LVL 9

Expert Comment

by:Krompton
ID: 24516230
ravikiranchv, you will need to post the command you are trying to run so that we may see the syntax in use. Additionally, your question should probably be posted as a new one since only those who participated in this question will be notified that anything has been posted. I would then again reply to this question again with the URL from your new one.

Cheers,
Krompton
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Win10 task scheduler - bug or feature? 9 267
'My computer' window opening slow in windows server 2008 R2 enterprise 13 166
Utilities to reset local Win 10 passwords 13 121
hp mini 3 51
I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now