+ Post New Thread
Results 1 to 6 of 6
Windows Thread, PSEXEC error code 1 in Technical; Hi all, Im trying to get psexec to remotely run simsbac.bat on one of our servers. I'm trying: Code: psexec ...
  1. #1

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,314
    Thank Post
    191
    Thanked 313 Times in 234 Posts
    Rep Power
    171

    PSEXEC error code 1

    Hi all,

    Im trying to get psexec to remotely run simsbac.bat on one of our servers.

    I'm trying:

    Code:
    psexec \\servername simsbac.bat
    and im getting:

    Code:
    simsbac.bat exited on servername with error code 1.
    I have tried the same code but connecting to another workstation which works fine, it's just when connecting to the server. The same error occurs with any command including cmd.

    The firewall is off and I am using full admin rights to both the workstation and the server.

    Also running simsbac.bat on the server localy works fine so it't not the .bat file.

    Any thoughts any one?

    Cheers,

    Dan

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,006
    Thank Post
    124
    Thanked 286 Times in 263 Posts
    Rep Power
    109
    Quote Originally Posted by bladedanny View Post
    Hi all,

    Im trying to get psexec to remotely run simsbac.bat on one of our servers.

    I'm trying:

    Code:
    psexec \\servername simsbac.bat
    and im getting:

    Code:
    simsbac.bat exited on servername with error code 1.
    I have tried the same code but connecting to another workstation which works fine, it's just when connecting to the server. The same error occurs with any command including cmd.

    The firewall is off and I am using full admin rights to both the workstation and the server.

    Also running simsbac.bat on the server localy works fine so it't not the .bat file.

    Any thoughts any one?

    Cheers,

    Dan
    I assume

    Code:
    psexec \\servername simsbac.bat
    is a typo and that you havent tried the command with out the "\" between server name and file?

  3. #3

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,314
    Thank Post
    191
    Thanked 313 Times in 234 Posts
    Rep Power
    171
    no
    Code:
    psexec \\servername simsbac.bat
    is the correct code, without a \ between them, as i said the code works fine when its
    Code:
    psexec \\workstationname simsbac.bat
    it's just when connecting to the server.

  4. #4
    BJG
    BJG is offline
    BJG's Avatar
    Join Date
    May 2008
    Location
    Norwich
    Posts
    468
    Thank Post
    89
    Thanked 36 Times in 26 Posts
    Rep Power
    23
    See if you can use it to get a simple app like Explorer to load on the server. (Couldn't even get this far when I just tried it - I think Symantec or DEP or something might be interfering with it.)

  5. #5

    bladedanny's Avatar
    Join Date
    May 2009
    Location
    Sheffield
    Posts
    1,314
    Thank Post
    191
    Thanked 313 Times in 234 Posts
    Rep Power
    171
    Nope, can't get it to open explorer or IE.

  6. #6

    Join Date
    Jun 2010
    Location
    India
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Try with credentials

    Try with credentials.

    psexec \\ravindranmani -u ravindran -p xxxx



SHARE:
+ Post New Thread

Similar Threads

  1. error code is 7
    By stu in forum Windows
    Replies: 5
    Last Post: 17th June 2009, 04:56 PM
  2. FireFox error code
    By leco in forum Windows
    Replies: 3
    Last Post: 16th June 2009, 10:27 AM
  3. Scheduled Task Error code 0x35
    By Stuart_C in forum Windows
    Replies: 0
    Last Post: 25th November 2008, 11:27 AM
  4. Windows failed to start: error code 0xc000014c
    By HodgeHi in forum Windows Vista
    Replies: 0
    Last Post: 17th September 2008, 10:54 AM
  5. psexec
    By chrbb in forum Windows
    Replies: 1
    Last Post: 21st April 2008, 04:05 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •