PowerShell

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sridhard2406
    New Member
    • Dec 2007
    • 52

    PowerShell

    Hi
    I didn't find a forum for powershell so i'm my query here itself.

    I'm runnung a powershell script and i want to redirect the output to a xml after redirecting the output i need to search a pattern in the outfile and print on the console.

    is the below is correct

    filename.ps1 |out-file abc.xml | search-string -pattern "Status"
  • Stang02GT
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    Although you are correct we do not have a forum for powershell, this thread would be more suited in the MISC forum.

    Comment

    • sridhard2406
      New Member
      • Dec 2007
      • 52

      #3
      PowerShell

      Hi

      I'm runnung a powershell script and i want to redirect the output to a xml after redirecting the output i need to search a pattern in the outfile and print on the console.

      is the below is correct

      filename.ps1 |out-file abc.xml | search-string -pattern "Status"

      Comment

      • RedSon
        Recognized Expert Expert
        • Jan 2007
        • 4980

        #4
        What kind of shell are you using?

        Comment

        Working...