Quantcast
Viewing all articles
Browse latest Browse all 21975

Running Powershell code on remote machine using C# - EXPERT HELP NEEDED

Hi guyz,

i facing this issue from a long time.

Im Uisng Powershell for remote operations , and sometimes for installations and uninstallations also.

The problem , is for example, im remotely installing the sql server and at the end , i will get a 40000 -50000 lines of console output returned back to my application. and im even making  the variable which holds those records as nullable at the end by using variable=null;

Now when the above kind of process is repeated for 5-10 times, the connectivity to that remote machine from my computer is lost. Now when i see this i run the ipconfig /flushdns from computer until the machine starts pinging from my computer. Now can any one guide me how to handle these kind of situations.. 

i had already posted similar issue at here http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/5c10ac16-09c9-46c2-bcad-5e2dde412324.  at that time the issue was with sharepoint remote commands, which i resolved by using SP-StartAssignment -global and SP-StopAssignment -Global. 

But i seriously need to know what actually causes this problem and how can i handle this effectively?


Viewing all articles
Browse latest Browse all 21975

Trending Articles