Scheduled Task Cannot connect to Exchange PowerShell with System account

MichaelFuller-1588 66 Reputation points
2022-05-24T17:54:10.38+00:00

I created a task to run a health report. The task runs under my credential but will not connect to Exchange PowerShell when I run it under the System account. I used transcription and saw that the script was running but failing to connect to any Exchange server to utilize the Exchange commands. I am not sure what could be causing the issue. I do not think it is a permissions issue because it is the Exchange server system account. PS remoting is enabled and there are no issues with PS remoting other than this account. I am running the task with the highest privileges. The script is Test-ExchangeServerHealth.ps1 from GitHub.

205148-image.png

Windows development Internet Information Services
Exchange Exchange Server Management
Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2022-05-24T18:31:38.977+00:00

    I run local on-prem Exch stuff under a service account that has the needed perms, not the system account. That always works for me.


  2. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2022-05-24T19:17:42.81+00:00

  3. MotoX80 36,291 Reputation points
    2022-05-25T20:38:30.05+00:00

    In an AD environment a task running as SYSTEM will be seen as the YourDomainName\YourServerName$ account to another computer. That is the computer account within AD.

    Can you grant that account access within Exchange? (I am not an Exchange guy.)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.