add-kdsrootkey the reqest is not supported

Dillon Roe 0 Reputation points
2024-02-05T15:58:40.7466667+00:00

hello i am attempting to generate a root key for a managed service account but keep getting this error. I confirmed the module are installed and its on a server 2016, also is on a 64 bit PowerShell system. any help would be apreciated.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Thameur-BOURBITA 36,261 Reputation points Moderator
    2024-02-05T18:56:53.77+00:00

    Hi Do you have at least a domain controller on windows 2012 or higher?

    Are you using a account with domain admin or enterprise admin privileges? Did you try to launch it from another machine? https://learn.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/create-the-key-distribution-services-kds-root-key

    Please don’t forget to accept helpful answer

    0 comments No comments

  2. Anonymous
    2024-02-06T07:29:38.1933333+00:00

    Hello Dillon Roe,

    Thank you for posting in Q&A forum.

    It may be due to incompatible versions of PowerShell or missing necessary modules. Please try check the things below: 1.Confirm PowerShell version: Ensure that the version of PowerShell you are using meets the requirements. On Windows Server 2016, PowerShell version 5.1 is installed by default. Please check if the PowerShell you are running is 32 bits or 64 bits.

    A 64-bit architecture is required to run the Windows PowerShell commands which are used to administer group Managed Service Accounts.

    2.Install necessary modules: Ensure that you have correctly installed all the modules required to run this command. For the operation of generating the root key of the hosted service account, it is necessary to install the "Active Directory" and "Active Directory PowerShell" modules.

    3.Try the steps below:
    (1) Log on to another non-DC in the domain.

    (2) Log on as a domain admin or Enterprise Admin.

    (3) Install/add the RSAT tools (the AD ones in particular).

    (4) Launch the PowerShell AD tool.

    (5) Run the Add-KDSRootKey from the new machine.

    4.Or try command below (run PS as Administrator):
    Add-KdsRootKey –EffectiveTime ((get-date).addhours(-10))

    Here are two similar threads for your reference.

    [https://learn.microsoft.com/en-us/answers/questions/403263/add-kdsrootkey-the-request-is-not-supported-(excep](https://learn.microsoft.com/en-us/answers/questions/403263/add-kdsrootkey-the-request-is-not-supported-(excep)

    https://learn.microsoft.com/en-us/answers/questions/1525203/add-kdsrootkey-the-reqest-is-not-supported

    I hope the information above is helpful. If you have any questions or concerns, please feel free to let us know. Best Regards, Daisy Zhou

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.