locked
Query in CMD for FSMO Roles RRS feed

  • Question

  • Hello,

    Is there some command in DOS or PowerShell to quickly determine where are FSMO roles in AD?

    Thank you.

    Monday, September 10, 2012 5:33 AM

Answers

  • Hi Christian!

    Try this:

    netdom query fsmo

    Regards!


    Pablo Ariel Di Loreto
    IT Consultant

    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

    Monday, September 10, 2012 5:37 AM
  • You can simply open cmd and execute the command netdom query fsmo this will list the FSMO role holder server.You can also check the same from GUI or ntdsutil.See below link how to check the same.
    http://www.petri.co.il/determining_fsmo_role_holders.htm


    FSMO Roles and PowerShell
    http://learn-powershell.net/2011/06/12/fsmo-roles-and-powershell/


    Best Regards,

    Sandesh Dubey.

    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.


    • Edited by Sandesh Dubey Monday, September 10, 2012 5:50 AM
    • Marked as answer by Miya Yao Friday, September 21, 2012 9:14 AM
    Monday, September 10, 2012 5:49 AM
  • Christian!

    Netdom is a command-line tool that you can use from CMD (and will work from PowerShell too).

    Please see: http://technet.microsoft.com/en-us/library/cc835089(v=ws.10).aspx

    Regards!


    Pablo Ariel Di Loreto
    IT Consultant

    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

    Monday, September 10, 2012 5:48 AM

All replies

  • Hi Christian!

    Try this:

    netdom query fsmo

    Regards!


    Pablo Ariel Di Loreto
    IT Consultant

    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

    Monday, September 10, 2012 5:37 AM
  • Thank you, Pablo,

    It is for CMD or PowerShell?

    Thank you,

    Monday, September 10, 2012 5:42 AM
  • Christian!

    Netdom is a command-line tool that you can use from CMD (and will work from PowerShell too).

    Please see: http://technet.microsoft.com/en-us/library/cc835089(v=ws.10).aspx

    Regards!


    Pablo Ariel Di Loreto
    IT Consultant

    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

    Monday, September 10, 2012 5:48 AM
  • You can simply open cmd and execute the command netdom query fsmo this will list the FSMO role holder server.You can also check the same from GUI or ntdsutil.See below link how to check the same.
    http://www.petri.co.il/determining_fsmo_role_holders.htm


    FSMO Roles and PowerShell
    http://learn-powershell.net/2011/06/12/fsmo-roles-and-powershell/


    Best Regards,

    Sandesh Dubey.

    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.


    • Edited by Sandesh Dubey Monday, September 10, 2012 5:50 AM
    • Marked as answer by Miya Yao Friday, September 21, 2012 9:14 AM
    Monday, September 10, 2012 5:49 AM
  • Thank you, again, Pablo.

    Monday, September 10, 2012 5:51 AM
  • Thank you, Sandesh.

    Monday, September 10, 2012 5:52 AM
  • Open command prompt as Administrator and run command below:

    netdom /query fsmo


    Best regards, Matt Fauzy

    Friday, February 17, 2017 9:02 AM