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

Internet Information Services
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
11,932 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,281 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Andy David - MVP 139.8K Reputation points MVP
    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 139.8K Reputation points MVP
    2022-05-24T19:17:42.81+00:00

  3. MotoX80 31,391 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.)