Jorge's Quest For Knowledge!

All About Identity And Security On-Premises And In The Cloud – It's Just Like An Addiction, The More You Have, The More You Want To Have!

13 Responses to “(2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs”

  1. […] More information can be found through the following link: (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

  2. […] (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

  3. […] 서버 2008이나 서버 2008 R2와 같은 이전 운영체제를 최근에 폐기한 경우, RWDC(읽기/쓰기 도메인 컨트롤러) 및 RODC(읽기 전용 도메인 컨트롤러)에 대한 …하는 것이 […]

    Like

  4. […] (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

  5. […] (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

  6. […] (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

  7. […] (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

  8. mike said

    I’m getting the following errors when running the script
    Any ideas on how i can resolve these errors?

    Get-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.
    At C:\UTILS\Reset-KrbTgt-Password-For-RWDCs-And-RODCs.ps1:2229 char:24
    + $rwdcKrbTgtObject = Get-ADUser -LDAPFilter “(sAMAccountName=$rwdcKrbTgtSamAcc …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [Get-ADUser], ADServerDownException
    + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADUser

    Get-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.
    At C:\UTILS\Reset-KrbTgt-Password-For-RWDCs-And-RODCs.ps1:2229 char:24
    + $rwdcKrbTgtObject = Get-ADUser -LDAPFilter “(sAMAccountName=$rwdcKrbTgtSamAcc …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [Get-ADUser], ADServerDownException
    + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADUser

    Get-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.
    At C:\UTILS\Reset-KrbTgt-Password-For-RWDCs-And-RODCs.ps1:2229 char:24
    + $rwdcKrbTgtObject = Get-ADUser -LDAPFilter “(sAMAccountName=$rwdcKrbTgtSamAcc …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [Get-ADUser], ADServerDownException
    + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADUser

    Get-ADUser : Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.
    At C:\UTILS\Reset-KrbTgt-Password-For-RWDCs-And-RODCs.ps1:2229 char:24
    + $rwdcKrbTgtObject = Get-ADUser -LDAPFilter “(sAMAccountName=$rwdcKrbTgtSamAcc …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [Get-ADUser], ADServerDownException
    + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADUser

    Like

    • Jorge said

      I know, very very very late reply. Make sure to ALWAYS use the latest version of the KRBTGT reset script. The latest versions DO NOT use the AD POSH CMDlets anymore. The script uses the code from the S.DS.P. Posh cmdlets as I have integrated those into the script

      Like

  9. […] I mentioned your issue to a couple friends and they suggest trying this Script. […]

    Like

  10. […] Jorge’s Quest For Knowledge!(Script authors blog) […]

    Like

  11. […] (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

  12. […] (2018-12-30) PowerShell Script To Reset The KrbTgt Account Password/Keys For Both RWDCs And RODCs […]

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.