Urgent please How to give a cmdlts for Remote power shell command ? RRS feed

  • Question

  • I have developed(dotnet) a remote power shell task  for Exchange server 2010. my code is working well when I give the single input comand.
     For Exchample
    'Here strInput="Get-MessageTrakingLog" or strInput="Get-Exchangeserver"

    But I want to give a input like
     strInput="Get-MessageTrackinglog -sender"
    strInput="Get-MessagetTrackingLog -messagesubject="xxxxxxxx"| selcet-object recipeint, totalbytes,EventId "

    How can i give these type of input for remote powershell command program.

    In local power shell program I have used the pipeline class and it has worked very well when i give the very lengthy input.

    So please help me.

     How can i give lengthy input command for remote power shell program?


    A Path Finder..

    Jo Swa

    Tuesday, February 22, 2011 6:09 PM