psexec

Discussion in 'Windows Server' started by joey, May 27, 2008.

  1. joey

    joey Guest

    I am trying to run a executable with psexec from a remote machine but
    failing and giving me error code 128

    psexec \\remotehost \\anotherremotehost\share\setup.exe
     
    joey, May 27, 2008
    #1
    1. Advertisements

  2. What happens when you start with a simple command?

    psexec \\remotehost cmd.exe

    You can build up from here and try your setup.exe command.
    Note that psexec.exe does NOT support a GUI. You can
    only run console commands.
     
    Pegasus \(MVP\), May 27, 2008
    #2
    1. Advertisements

  3. joey

    joey Guest

    ok I think I got it to work


    C:\WINDOWS\system32>psexec \\remotehost -u "domain\user" -i
    \\server\share\setup.exe



    I had to enter the domain user name. What do I do if I want to use the @file
    with more than one hostname?
     
    joey, May 28, 2008
    #3
  4. Congratulations! You just found out that running psexec.exe by
    itself will launch a session under the "System" account, which, of
    course, has no access to networked resources.

    What do you mean with "@file"?
     
    Pegasus \(MVP\), May 28, 2008
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.