Skip to main content

MS Exchange DAG Maintenance error (exiting from script)

Exchange DAG Maintenance – cluster.exe issue (5058)

 

Today, on a DAG maintenance of an Exchange 2016, I ran into the problem that after executing the script StopDagServerMaintenance.ps1 a warning was displayed.

 

Call-ClusterExe: cluster.exe did not succeed, but 5058 was not a retry-able error code. Not attempting any other servers. This may be an expected error by the caller.

 

 
file92ac17 46d7a4519e5c45a48c886e8871887e92~mv2
 
 

 

After a little troubleshooting I found that after running the scripts StartDag ServerMaintenance.ps1, the cluster node has not been paused and in the StopDagMaintenance.ps1 script, this will be checked and reseted so the cluster node is up again – what causes an error.

 

 
file92ac17 4fed5d3d189a457f9023ae18e23716db~mv2
 
 

 

I will show you the problem and how I (and you too) could fix it.

 

Note: You need to always run the Exchange Management Shell as administrator.

 

 

After I got the problem, I looked at the script more closely and found that Microsoft has set a $false for the pauseClusterNode instead of a $true.

 

 
file92ac17 0d3c76edb8224483b809752d21ae9c69~mv2
 
 

 

I have changed this to $true and saved the script.

 

Note: To do this, run the PowerShell ISE as administrator and open the script.

 

 
file92ac17 611ae1fde4e24ea6bce3e72b3e3dc0f2~mv2
 
 

 

I then executed the script again and checked the state using Get-ClusterNode and now the cluster node was paused.

 

 
file92ac17 cd2e36e3f2fa4389b1e5b9f9291f9d0e~mv2
 
 

 

Now, when I run the StopDagServerMaintenance.ps1 script, the error no longer occurred.

 

 
file92ac17 d02862825f0449109c5315e22b47ce18~mv2
 
 

 

Enjoy and take care!

Visit our FAQ for more information Get more info about Goline
5 3 votes
Article Rating
Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Goline It Services Logo

News

  • GOLINE is pleased to announce that it has achieved ESET Gold Partner status for 2027. The recognition follows the successful completion of ESET’s partner certification requirements and confirms GOLINE’s continued investment in cybersecurity expertise and professional development. ESET’s partner programme is designed to support companies working with its cybersecurity solutions through dedicated technical and sales resources, training and other partner services. For GOLINE, the achievement further strengthens its collaboration with ESET and its ability to integrate ESET security technologies into the cybersecurity solutions and services it provides to businesses. ESET solutions are already part of GOLINE’s cybersecurity portfolio, alongside technologies...
  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
0
Would love your thoughts, please comment.x
()
x