Alternatives for PsExec which works in standard user

IT researcher picture IT researcher · Jun 6, 2016 · Viewed 9.6k times · Source

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.

Answer

Barak picture Barak · Jun 15, 2016

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