powershell output in a file RRS feed

  • Question

  • I use powershell scripts to install webparts. Is there a way to write powershell output in a file?
    Sunday, October 7, 2012 8:04 PM


  • Yes, you can use the following with your powershell command to write output to a text file:

    ./script.ps1 | Out-File “C:\test.txt”

    File path/name can be anything.

    Wali Systems Inc. ( Hire certified virtual SharePoint assistants/developers!

    • Marked as answer by kenneth1153 Sunday, October 7, 2012 8:38 PM
    Sunday, October 7, 2012 8:32 PM