Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 231887

help: using PS to run a batch file on remote server

$
0
0

Hi guys,

 

Now I want to use PowerShell+PowerCLI to do following task as: my workstation is windows XP (with PowerShell v2.0 installed) and the server is windows 2003. Now I want to use the powershell script from my Windows XP to run a batch file on the my 2003 server, the batch result out to a text file (assume having "PAIR" string on the result file).

When the batch file complete, the script reads the result file to find "PAIR" string and return OK if has, else is not OK.

 

I'm newbie with the PS, so please help me for this task.

 

Thank you very much.


Viewing all articles
Browse latest Browse all 231887

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>