# gMSAs , WinRM and Exchange scheduled scripts

**URL:** <https://forums.powershell.org/t/gmsas-winrm-and-exchange-scheduled-scripts/11083>\
**Category:** PowerShell Help\
**Created:** [August 3, 2018, 1:36am UTC](https://forums.powershell.org/t/gmsas-winrm-and-exchange-scheduled-scripts/11083 "2018-08-03T01:36:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![david-zemdegs](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/david-zemdegs/32/1461_2.png) [@david-zemdegs](https://forums.powershell.org/u/david-zemdegs)\
**Post date:** [August 3, 2018, 1:36am UTC](https://forums.powershell.org/t/gmsas-winrm-and-exchange-scheduled-scripts/11083/1 "2018-08-03T01:36:17Z")

</div>

Greetings,  
I am trying to convert my scheduled scripts to using Managed Service Accounts.  
My gMSA works fine with scripts that do AD stuff.  
When I attach the gMSA to a script that runs Exchange cmdlets using the pssession route, I get credential errors.  
Is there something I am missing or cant you use gMSAs with WinRM and Exchange cmdlets?  
Thanks  
David

---

<div class="post-metadata">

**Author:** ![brettbnkr](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@brettbnkr](https://forums.powershell.org/u/brettbnkr)\
**Post date:** [August 3, 2018, 8:35am UTC](https://forums.powershell.org/t/gmsas-winrm-and-exchange-scheduled-scripts/11083/2 "2018-08-03T08:35:47Z")

</div>

“MSA’s are not supported for applications like Exchange or SQL.”

> **[Core Infrastructure and Security Blog](https://techcommunity.microsoft.com/t5/core-infrastructure-and-security/bg-p/CoreInfrastructureandSecurityBlog)**

Looks like Exchange does not work with those accounts.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:34pm UTC](https://forums.powershell.org/t/gmsas-winrm-and-exchange-scheduled-scripts/11083/3 "2024-05-16T20:34:38Z")

</div>


