---
title: How to reset administrator passwords in SecurityGateway
description: This article covers how to reset passwords to global administrator accounts in SecurityGateway.
---

[Skip to content](https://knowledge.mdaemon.com/reset-securitygateway-admin-passwords#main-content)

[![](https://knowledge.mdaemon.com/hs-fs/hubfs/MDaemon-Technologies_logo.png?width=200&height=150&name=MDaemon-Technologies_logo.png)](https://mdaemon.com/)

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)

Open main navigation

Close main navigation

- [Knowledge Base Home](https://knowledge.mdaemon.com/)
- [Go to www.mdaemon.com](https://mdaemon.com/)
- [Contact Us](https://mdaemon.com/pages/contact-us)

[Contact Us](https://mdaemon.com/pages/contact-us)

 Knowledge Base

- There are no suggestions because the search field is empty.

1. [Knowledge Base Home](https://knowledge.mdaemon.com/?hsLang=en)
2. [SecurityGateway for Email Servers](https://knowledge.mdaemon.com/securitygateway-for-email-servers?hsLang=en)

# How to reset administrator passwords in SecurityGateway

## This article covers how to reset passwords to global administrator accounts in SecurityGateway.

SecurityGateway includes a specialized tool to interact with the database in various ways. This tool can be used to reset the global administrator passwords in the event a global administrator password is lost or forgotten.  

If you are a domain administrator and have lost or forgotten the domain administrator password, please contact your global administrator.

Access to the SecurityGateway server is necessary to perform these steps.  

1. Stop the SecurityGateway service either by accessing the Windows Services menu (services.msc) and stopping the service.  
     - Alternatively, open a elevated command prompt, type **net stop securitygateway**, and press enter to stop the service.
2. Open a elevated command prompt and navigate to the **App** folder where SecurityGateway is installed; **cd C:\\Program Files\\MDaemon Technologies\\SecurityGateway\\App\\**
3. Enter **sgdbtool listadmins** and press enter to view a list of all the global administrator accounts that exist in the database.
4. Enter **sgdbtool reset** and press enter.

You can now login to the addresses listed in the 'listadmins' command output using the full email address and the password "admin".

Performing the above command will change the local passwords for all global administrators listed in the 'listadmins' command to the password "admin".  It is critical that the passwords for these accounts be replaced as soon as possible to prevent any unwanted access.

 

- [MDaemon Email Server](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#main-content)

    - [Mobile Device Management](https://knowledge.mdaemon.com/mdaemon-email-server?hsLang=en#mobile-device-management)
- [MDaemon AntiVirus (SecurityPlus)](https://knowledge.mdaemon.com/mdaemon-antivirus-securityplus?hsLang=en)
- [ActiveSync for MDaemon](https://knowledge.mdaemon.com/activesync-for-mdaemon?hsLang=en)
- [MDaemon Connector for Outlook (Outlook Connector)](https://knowledge.mdaemon.com/mdaemon-connector-for-outlook-outlook-connector?hsLang=en)
- [SecurityGateway for Email Servers](https://knowledge.mdaemon.com/securitygateway-for-email-servers?hsLang=en)
- [RelayFax Network Software](https://knowledge.mdaemon.com/relayfax-network-software?hsLang=en)

[![Chill listening crop-3](https://knowledge.mdaemon.com/hs-fs/hubfs/belch.io/template-assets/MDaemon-Technologies_logo.png?width=199&height=41&name=MDaemon-Technologies_logo.png "Chill listening crop-3")](https://www.mdaemon.com)

[Knowledge Base Home](https://knowledge.mdaemon.com?hsLang=en)

<https://www.youtube.com/c/MDaemonTechnologies> <https://www.linkedin.com/company/mdaemon-technologies/> <https://www.facebook.com/MDaemon.Technologies/> <https://www.twitter.com/MDaemon_Email>

Copyright © 2025, MDaemon Technologies