Author Posts

April 14, 2018 at 3:17 pm

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?

April 15, 2018 at 1:03 pm

You're correct. Sorry.