1

While trying to run a batch file present on a remote machine.

.\PsExec.exe \\<IP> -u <username> -p <pass> sample_bat.bat

I am encountering below error

Couldn't access : The network path was not found. Make sure that the default admin$ share is enabled on .

Note- I've enabled AutoShareServer also in regedit.

I've searched all forums but not able to find a working solution.

ANegi
  • 49
  • 2
  • 5

1 Answers1

0

Try to see if you can access the admin share on target machine.

Use the -u & -p options to pass-on the administrator login details but if you're on a domain and the target system is not, or the other way around, you'll have to provide the proper user parameters too (domain\username if target is on domain, or \username if you're the one on the domain and target is not or if domain differ).

Overmind
  • 2,970
  • 2
  • 15
  • 24