Nirmal Sharma
asked on
PSEXEC
Can anyone tell me how can I list Directories and files on a remote computer using PSEXEC?
I issue the following commands :
PSEXEC \\remote_computer\ dir c:\
It returns with an error : "The system can not find the file specified"
Dir is a DOS Shell command and built into command.com or OS Shell.
Does PSEXEC retreives/interprets with DOS/Windows Internal commands?
Thanks!
I issue the following commands :
PSEXEC \\remote_computer\ dir c:\
It returns with an error : "The system can not find the file specified"
Dir is a DOS Shell command and built into command.com or OS Shell.
Does PSEXEC retreives/interprets with DOS/Windows Internal commands?
Thanks!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well, I'm not sure if that command works or not but it looks like it should work.
BTW: when I run the above command I get the following error:
login failure or bad password.
I have tried using -u user_name and -p password but to no avail.
BTW: when I run the above command I get the following error:
login failure or bad password.
I have tried using -u user_name and -p password but to no avail.
ASKER
Ok the above command runs without any exit code 0 but doesn't list anything...
It should list Directories of remote computer....I have also tried using > file_name.txt
It should list Directories of remote computer....I have also tried using > file_name.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Not command.com but CMD.exe.
Thanks for putting me on right track.
Thanks for putting me on right track.
ASKER
BTW: I don't have authentication problem. I'm specifying NetBIOS name of computer name. I should put FQDN so that authentication can be handled by Kerberos.
NetBIOS leads to broadcast - sometimes it is able to authenticate and sometimes not.
NetBIOS leads to broadcast - sometimes it is able to authenticate and sometimes not.
ASKER