[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

PsExec in Domain

Posted on 2005-05-12
4
Medium Priority
?
3,161 Views
Last Modified: 2008-03-10
We use PsExec as a 3rd tool with our product to remote deploy software's over the network. The command we pass

to PsExec

psexec \\10.10.51.26 -u 10.10.51.26\test -p test -c -f -i -e test.exe

We prepend the user name with the machine when the domain name in not provided. If the domain is provided we just use the domain administrator’s user name for remote deployment.

One of our customer does not wants give domain admin user and pwd.

So as a test fix we remove the machine name from the user name psexec \\10.10.51.26 -u test -p test -c -f -i -e

test.exe

Now the remote deployement fails. Just wanted to know which is the correct option to pass to psexec if the machine is in a domain.

psexec \\10.10.51.26 -u 10.10.51.26\test -p test -c -f -i -e test.exe

or

psexec \\10.10.51.26 -u test -p test -c -f -i -e test.exe

or

psexec \\\\10.10.51.26 -u test -p test -c -f -i -e test.exe
0
Comment
Question by:prem_kumar79
1 Comment
 
LVL 5

Accepted Solution

by:
gabit25 earned 500 total points
ID: 13985633
So I used in the past the same method for deploying software on the domain. The only problem of course that is the password. If they can not give you the domain password or eventually make a copy for you the only sollution is to use the Local administrator account and password. Usually this will not be the same for all the computers so ... this could be a problem.
You have these possibilities:

psexec \\computername -u domainname\domain_admin -p domain_password -c -f -i -e test.exe  in case you know the domain admin and password

or

psexec \\computername -u Local_user_with _admin_privileges -p password -c -f -i -e test.exe  in case you know the local administrator password

Maybe you can just change ask to the domanin admin to change all the local admin password using a script and then to give you these passwords.
or
As a ultimate sollution you could create your bat file with domain admin user and a xxxx as password, then pass it to the domain administrator that could replace all xxxx with his true password and then convert the file from bat to exe (just search with google bat2exe converter). So in this way he will provide you an exe, coded file, that will do everything you want but will not let you see the admin password.

Good luck

0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

834 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