locked
Reset DSRM Password on multiple 2008 DC's with common password. RRS feed

  • Question

  • Hello Experts,

    I am looking for a script to change/reset DSRM password on all windows 2008 DC's with a common password. I have prepared the below script but not sure this will work or not. I do not have any test machine to check the below script. Please check and let me know if i have made any mistakes:

    #================Start of Script========================================#
    #--------------------- Input Information--------------------------------#
    $Servers = Get-content “.\DCList.txt"
    $DSRMPwd = "P@ssw0rd123"
    NTDSUTIL
    SET DSRM PASSWORD
     Foreach ($Server in $Servers){
     #--------------------- Update DC's DSRM Password-----------------------#
     RESET PASSWORD ON SERVER $Server -Password $DSRMPwd
     Write-Output "Password changed on Server: $Server "
     }
    Quit
    Exit NTDSUTIL
    #=====================End of Script=====================================#

    Thanks & Regards,

    Venkat


    Thanks & Regards, Venkat

    • Moved by Just Karl Tuesday, June 3, 2014 2:55 PM Looking for the proper forum.
    Wednesday, September 4, 2013 5:49 PM

Answers

  • Hello,

    I'd ask in the Directory Services forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    • Proposed as answer by Just Karl Thursday, July 17, 2014 9:06 PM
    • Marked as answer by Just Karl Friday, July 25, 2014 2:37 PM
    Tuesday, June 3, 2014 2:54 PM

All replies

  • Hello,

    The TechNet Sandbox forum is designed for users to try out the new forums functionality. Please be respectful of others, and do not expect replies to questions asked here.

    As it's off-topic here, I am moving the question to the Where is the forum for... forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    Tuesday, June 3, 2014 2:51 PM
  • Hello,

    I'd ask in the Directory Services forum.

    Karl


    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book: Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

    • Proposed as answer by Just Karl Thursday, July 17, 2014 9:06 PM
    • Marked as answer by Just Karl Friday, July 25, 2014 2:37 PM
    Tuesday, June 3, 2014 2:54 PM