I am working on PsExec but i get error as "Access Denied " Firewall is disabled on both machine. Ports are also open at both machine.
C:\PSTOOLS>PsExec \\192.168.1.232 -u Administrator "c:\test\sample.bat Shailesh"
PsExec v1.98 - Execute processes remotely
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
Password:
Couldn't access 192.168.1.232:
Access is denied.
If this is not related to the firewall, which it sounds like it's not, and you definitely have the correct admin password for the remote machine, then check the following:
admin$
share of the remote machine exists and is accessible.The following article is quite a lengthy explanation of how psexec can work, by Mark Russinovich (creator of the sysinternals suite).