Lansweeper logo
Home Download Features Demo Buy now Help Support forum
 
    Most requested support articles:
  Lansweeper troubleshooting guide.
  The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
  WMI Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
  How to configure the windows firewall using group policies.
  Support:  
 support@lansweeper.com  
Skype: Lansweeper  
  Mo-Fri 9h-17h CET  
Welcome Guest Search | Active Topics | Log In | Register

Untag as favorite
Custom action - remote share
pentel
#1 Posted : Tuesday, November 16, 2010 7:24:20 PM

Rank: Premium user

Groups: Premium Users
Posts: 78
Hi,

Is there a way to execute a script remotely on the distant computer (probably using psexec) so that the script will execute properly?

The script in question is a .bat file that calls a .vbs file, you need to first start the batch and it will in turn automatically call the vbscript file. Here is the current command I have tried inputting but that doesnt work :

cmd.exe /K \\SHARE\psexec.exe \\{computer} -c \\SHARE2\batch.bat

when I run this I get a psexec access denied error. Should i instead contact psexec support (sysinternals) or can this be solved with another command or tweaked to work?

Thanks


added : the network share that hosts the batch file has full access to Everyone (for this particular batch security is not so important as long as it works) and adding the -u and -p switches to psexec doesnt work.
Lansweeper
#2 Posted : Wednesday, November 17, 2010 8:41:11 AM

Rank: Administration

Groups: Administration, Premium Users
Posts: 10,379
I'm not sure but I think psexec.exe runs as the local system account by default remotely. This account does not have network access.
Users browsing this topic
Guest
Untag as favorite
Forum Jump  
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.

Contact: E-mail Lansweeper - Skype : Lansweeper
Copyright 2004 - 2011 © Hemoco bvba