Execute Exchange Server 2013 Powershell remotely as Scheduled task in server with no Exchange Management Shell installed

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
ITEngineer
Posts: 216
Last visit: Thu Mar 23, 2023 5:45 pm
Has voted: 4 times

Execute Exchange Server 2013 Powershell remotely as Scheduled task in server with no Exchange Management Shell installed

Post by ITEngineer »

Hi People,

As per this KB article, it is not working since my Exchange server is 2013: https://support.microsoft.com/en-au/hel ... nt-or-in-a

Can anyone here please share some tips and the steps to execute the below one line of PowerShell command daily once every 24 hours at 12:01 AM daily?

Code: Select all

Get-FederationTrust | Set-FederationTrust –RefreshMetadata 
Thanks in advance.
/* IT Engineer */
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: Execute Exchange Server 2013 Powershell remotely as Scheduled task in server with no Exchange Management Shell insta

Post by jvierra »

I see no way to help you with this. Without the Exchange shell the code will not work. Execute this on the exchange server as the shell would be installed there.

The KB gives the exact command and how to schedule it. If it does not work you will need to contact MS support for help troubleshooting the issue.
This topic is 5 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked