![]() |
psexec - remote share problem |
Post Reply
|
| Author | ||
Long Haired Git
Newbie
Joined: 07 July 2010 Online Status: Offline Posts: 4 |
Post Options
Quote Reply
Topic: psexec - remote share problemPosted: 07 July 2010 at 2:10am |
|
|
There are numerous solutions here:
1) Use -U and -P. Then you're sweet. However, the credentials used to be passed in clear text. Not sure if they still do or not (need to read up on latest versions). This is a show stopper here at my work.
1) Configure a Batch file on the Initiating computer. This batch file needs to do all the neccessary network based stuff remotely. The batch file then calls PSEXEC. The batch file then handles the results.
We use this approach for a large batch run we do. The batch programme copies 1 GB of files to a temporary folder on our DL785 grunt box, then uses PSEXEC to kick of a programme that runs there to process these files into a series of result files, and then returns. The batch programme on the initiating computer then copies the result files back. 2) Use scheduled tasks. If your security permits, set up a scheduled task on the remote computer configured to run with the username and password set inside it. Then just use schtasks /run to run it from the initiating computer. Keep in mind that the call to start the scheduled task returns immediately, even though the scheduled task may take hours to complete. One idea is to have a batch programme on the initiating computer delete a flag file, and then kick off the scheduled task, and then wait for the flag file to be created. The scheduled task does its thing and when completed, creates the flag file, which is detected by the batch on the initiating PC. 3) Remember, the rules around network only apply to things that are controlled by Windows security. FTP and SQL and other network crossing programmes run fine. You do have access to the "network", you just cannot rely on your credentials nor rely on Windows letting you do windows type things. 4) If you want to create network shares remotely, look at RMTSHARE.exe. I used to use PSEXEC.exe to do network share creation remotely, but this required -U and -P which got banned, and so I found this nifty little tool (that does network share permissions easily as well. Sweeet!) |
||
![]() |
||
xseoer
Newbie
Joined: 08 May 2010 Location: China Online Status: Offline Posts: 1 |
Post Options
Quote Reply
Posted: 14 May 2010 at 2:41am |
|
|
Who can help me? My new computer can't remote share! Why? I'm a hair straighteners seller. All my customers are foreign.We need the remote share to guide the customers.
|
||
![]() |
||
zespri
Newbie
Joined: 09 September 2009 Online Status: Offline Posts: 4 |
Post Options
Quote Reply
Posted: 09 May 2010 at 8:06am |
|
|
I solved my problem by configuring the command I need to run in Windows Task Scheduler and using Schtasks to kick it off.
|
||
![]() |
||
molotov
Moderator Group
Joined: 04 October 2006 Online Status: Offline Posts: 17492 |
Post Options
Quote Reply
Posted: 15 September 2009 at 4:42am |
|
|
Hi Andrew,
I haven't used it, but you might consider having a look at owexec... |
||
|
Daily affirmation:
net helpmsg 4006 |
||
![]() |
||
zespri
Newbie
Joined: 09 September 2009 Online Status: Offline Posts: 4 |
Post Options
Quote Reply
Posted: 09 September 2009 at 7:53am |
|
|
Hello,
can some one offer a workaround to this? I must use impersonation and I must have network access. I'm sure, that technically this is possible, and I do understand that psexec doesn't support this. Are there any other tools that I can use, maybe in combination with psexec that would allow me to run a process remotely under current credentials and have network access. I'd like to explain, why I can't specify user name and password pair. I need to run a remote process from a cmd script unattended. Company policy specifically prohibits putting plain text password in scripts. This is why this is an issue. If there were a way to provide this password to psexec in a manner that doesn't require a plain text password stored in a file, this would work for me too. Thank you in advance, for any insight offered. Andrew. |
||
![]() |
||
bobsmith
Newbie
Joined: 30 March 2006 Online Status: Offline Posts: 2 |
Post Options
Quote Reply
Posted: 04 April 2006 at 12:47pm |
|
|
What... I can't have my cake and eat it too? You have explained what I was unable to understand from the previous threads. Thanks for your help! |
||
![]() |
||
Karlchen
Senior Member
Joined: 18 June 2005 Location: Germany Online Status: Offline Posts: 5121 |
Post Options
Quote Reply
Posted: 31 March 2006 at 4:00am |
|
|
hi, bobsmith.
No, it does not. (This would be a pretty dangerous privilege elevation, would it not!) I am sure it has been mentioned in previous threads, but I am too lazy at this moment to look them up (meaning I will do so later). There is an important difference between using implicit versus explicit logon:
Having explained the difference between implicit and explicit authentication used by psexec, the answer to your main issue
may well be: You cannot have both!
Either use implicit logon and loose any network resources on \\target. Or use explicit logon. Kind regards, Karl -- P.S. (06-Mar-2007): Added note about the reverted meaning of the option -e in psexec v1.80 and above. Edited by Karlchen - 06 March 2007 at 4:51pm |
||
![]() |
||
bobsmith
Newbie
Joined: 30 March 2006 Online Status: Offline Posts: 2 |
Post Options
Quote Reply
Posted: 30 March 2006 at 1:46pm |
|
|
Hi, I have gone through all the documentation and have come up blank. What I am trying to achieve here is this. Run a remote command that queries a network path without requiring the -U or -P option. This is an automated process that kicks off from a scheduled task and I don't want to have a clear text user name and password in a script. If I run the below command logged in with my Domain\UserName onto localmachineA psexec \\remoteserverA -i c:\windows\system32\cmd /k dir \\remoteserverB\share I get Access Denied If I log into remoteservera locally with Domain\Username and run the command c:\windows\system32\cmd /k dir \\remoteserverB\share I get a file lising and no Access Denied What I don't understand is that in the first example, if I look at the task manager the process cmd.exe is running as Domain\UserName so what is the difference. Any help would be apreciated. Some of the fourms talk about it but there is nothing that says "Without the -U -P PSEXEC runs as local system".
Edited by bobsmith - 30 March 2006 at 1:49pm |
||
![]() |
||
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |