1

I am using psexec to execute commands on remote server. Here is my command,

PsExec.exe" -u user \\server -h run.bat

I am entering the password manually. here I am using standard user account due to security issues. When I run the command I am getting the error,

"Make sure that the default admin$ share is enabled" 

I read here that it cannot be done without admin privileges. But when I test the same command in LAN it works in standard user.

How it works in LAN not in Remote server ?

Is there any alternative tools which will work in standard user ?

Please help me.

Community
  • 1
  • 1
IT researcher
  • 3,274
  • 17
  • 79
  • 143

1 Answers1

1

As an alternate tool, you can use Powershell and WinRM. Powershell allows you to execute a command, or an interactive session, on the remote windows server.

An example of executing a command is available here: How to programmatically/remotely execute a program in EC2 Windows instance

If you need an interactive session, look at the Powershll command 'Enter-PSSession': https://technet.microsoft.com/en-us/library/hh849707.aspx

Community
  • 1
  • 1
Barak
  • 3,066
  • 2
  • 20
  • 33
  • whether the method suggested will work, if I use non-admin credentials of remote server ? – IT researcher Jun 15 '16 at 06:49
  • It should. There is some initial setup work you need to do on the client that requires admin, but that is a one-time setup, and only in the client. As long as the remote system has been configured to allow WinRM, you should be able to log in with any user that is valid on that system – Barak Jun 15 '16 at 12:01