delete files on a remote server

Hi Guys,
I am currently working on a script to find all the files that have not been accessed for the past 2 years. This, i guess has been discussed n number of times in this forum. Now, my requirement is to find all the files in the remote windows server. I have it mounted in unix.

I was thinking of doing a rsh to the remote server, find all the files and delete it. This is the command i tried -

rsh -l USER <SERVER> find <TOP LEVEL DIR> -atime <2years> -exec rm -r {} \;

I am getting a permission denied error, which i guess is because i do not have permissions to do an rsh.

My question, Will this command work as expected? Can i do an rsh to the remote windows server and remove the files there?

Are there any other methods of doing this?

Thanks,
Ashwin

you have to configure rsh service in destination server that source server can do the change in server....

Since am using NCR server , i entered hostname of the source server in /etc/hosts.equiv file of destination server.