Scheduled Task - Output Truncated

Welcome Forums General PowerShell Q&A Scheduled Task - Output Truncated

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
1 year, 1 month ago.

  • Author
    Posts
  • #98719

    Participant
    Topics: 1
    Replies: 1
    Points: 1
    Rank: Member

    I have a scheduled PowerShell task set to run whether a user is logged in or not and with highest privileges. It's as follows:

    powershell -command &{Get-VMReplication >C:\replicationhealth.txt}

    This works fine when I provide the domain admin userid & password, but if I change it to run with the SYSTEM account it runs, but it truncates the text file output at 80 characters. Hopefully this is an easy question, but how do I get the SYSTEM account to output the result without truncating each line at 80 characters?

  • #98724

    Participant
    Topics: 1
    Replies: 1331
    Points: 1,679
    Helping Hand
    Rank: Community Hero
  • #98751

    Participant
    Topics: 1
    Replies: 1
    Points: 1
    Rank: Member

    You're correct. Sorry.

The topic ‘Scheduled Task - Output Truncated’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort