Found a solution to this problem. The below steps needs to be followed:
- Copy the following executable and dlls from windows xp machine to a folder (say c:\Windows\OldTools) on your windows 7 machine
- advapi32.dll
- kernel32.dll
- msvcrt.dll
- mswsock.dll
- rcp.exe
- rsh.exe
- user32.dll
- ws2_32.dll
- advapi32.dll
- Click on start menu -> right click on computer -> select Properties -> Advanced System Settings -> Environment Variables -> In "System Variables" section double click on "Path" -> Add the following text at the end
;c:\Windows\OldTools
The scripts now recognizes the rcp and rsh commands.