• Home
  • About us
  • Contact
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Welcome to www.DoitFixit.com

www.doitfixit.com

  • Microsoft
  • Fortinet
  • Symantec
  • Office 365
  • Azure
  • Others
  • Show Search
Hide Search

Resolve “DsRemoveDsServerW error 0x5(Access is denied.)”

February 27, 2012 By Damitha Anuradha Leave a Comment

Metadata Cleanup Error – DsRemoveDsServerW error 0x5(Access is denied.)

Ensure that you run the ntdsutil.exe with an account that is member of the groups Domain Admins and Enterprise Admins. (by using the command whoami /groups)


If the currently logged on user does not have administrative permissions, different credentials can be supplied by specifying the credentials to use before making the connection.

1. Type ntdsutil, and then press ENTER.

2. Type metadata cleanup, and then press ENTER.

3. Type connections and press ENTER.

4. Type set creds <domain name> <usernameoftheEnterpriseAdmins> <password> and press ENTER.

5. Type connect to server <servername> and press ENTER.


To fix this issue go to “Active Directory Sites and Services” expand the relevant server name (which you want to remove) go to properties of NTDS Settings.

Remove “Protect object from accidental deletion” option and follow the metadata cleanup steps again.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Veeam Backup – Failed to prepare guests for volume snapshot
  • How to Configure/Integrate FortiClient EMS with FortiAnalyzer
  • Backup Hyper-V Virtual Machines with Pass-Through Disks
  • Slow Network Speed with Hyper-V Virtual Machines on Windows Server Server 2019
  • Block MS Exchange Server OWA access from Internet
  • Error 1168 – The specified product key could not be validated.
  • Unable to Enable Desktop Icons after Joining to the Domain
  • Veritas BackupExec – A backup set was created which contains no data 0xe00084b7
  • Download Offline Address Book – Unexpected Error has occurred
  • WSUS 4 Console crash – Connection Error

Deprecated: genesis_footer_creds_text is deprecated since version 3.1.0! Use genesis_pre_get_option_footer_text instead. This filter is no longer supported. You can now modify your footer text using the Theme Settings. in /home/wwwdoitf/public_html/wp-includes/functions.php on line 5238