I am PsExecing to a remote computer to launch a batch file named remote_fd_info.cmd.
In that command it runs the following: fcinfo | find "PortWWN" >> test.txt file.
I'm passing the credentials I need on the remote system and therefore I shouldn't get the Access Is Denied error/Exit Error Code 255. I tried the PsExec -s -i switches but got an exit error code = 1.
Can anyone tell me what I'm missing?
For /f %%s In (%fcinfo_dir%\servers.txt) Do (%ps_exec% \\%%s -u %user% -p %pswd% c:\progra~1\fcinfo\remote_fc_info.cmd)