Add-KdsRootKey : The request is not supported. (Exception from HRESULT: 0x80070032)

WZJ 101 Reputation points
2021-05-20T15:00:16.89+00:00

I am working a task to creating KDS root key, here are what I have tried:

  1. login to DC Windows 2016 server with domain admin account;
  2. Run powershell as administrator;
  3. Run: Import-Module Kds Get-Module ---> it shows Kds installed. Add-KdsRootKey -EffectiveImmediately or any commends which start with Add-KdsRootKey ; Get errs: Add-KdsRootKey : The request is not supported. (Exception from HRESULT: 0x80070032) At line:3 char:1 Add-KdsRootKey -EffectiveImmediately ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-KdsRootKey], COMException + FullyQualifiedErrorId : The request is not supported. (Exception from HRESULT: 0x80070032),Microsoft.KeyDistributionService.Cmdlets.AddKdsRootKeyCommand
  4. Login to non-DC Windows 2016 domain server, installed RSAT features;
    1. Run powershell as administrator;
  5. Run: Import-Module Kds Get-Module ---> it shows Kds installed. Add-KdsRootKey -EffectiveImmediately or any commends which start with Add-KdsRootKey ; Get errs: Add-KdsRootKey : The request is not supported. (Exception from HRESULT: 0x80070032) At line:3 char:1 Add-KdsRootKey -EffectiveImmediately ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Add-KdsRootKey], COMException
    • FullyQualifiedErrorId : The request is not supported. (Exception from HRESULT: 0x80070032),Microsoft.KeyDistributionService.Cmdlets.AddKdsRootKeyCommand

I have tried everything I can google from Internet, but no luck at all...

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,670 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,902 questions
{count} votes

4 answers

Sort by: Most helpful
  1. A Golden Life 6 Reputation points
    2022-03-08T19:28:11.43+00:00

    For anyone else who comes across this like I did and is looking for an answer:

    1. Log on to another non-DC in the domain
    2. Log on as a domain admin
    3. Install/add the RSAT tools (the AD ones in particular)
    4. Launch the PowerShell, Import or install the AD module
    5. Run the Add-KDSRootKey from the new machine.

    I don't know why you can't run this on the DC. However, any of the KDS powershell command give faulty information when run from the DC. Mine reported there was no key even, when there was. However running it from a non-DC on the domain will work. Maybe someone else can point out why the commands don't work on a DC. MS docs also don't say anything about running it from another machine.

    1 person found this answer helpful.
    0 comments No comments

  2. Anonymous
    2021-05-21T03:26:51.763+00:00

    Hello @WZJ ,

    Thank you for posting here.

    it seems that some thing is not supported.

    1.Please check if the PowerShell you are running is 32 bits or 64 bits.

    if($env:Processor_Architecture -eq "x86"){write "running on 32bit"}else{write "running on 64bit"}  
    

    For example:

    98320-32.png

    From the following link, we can see:

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

    Create the Key Distribution Services KDS Root Key
    https://learn.microsoft.com/en-us/windows-server/security/group-managed-service-accounts/create-the-key-distribution-services-kds-root-key

    If it does not work above, please confirm:

    1.What is the operating system of the 2016 DC?
    2.What is the forest functional level and domain functional level?

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    ============================================

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


  3. Benard Mwanza 1,001 Reputation points
    2021-10-18T13:46:32.697+00:00

    I'm having the same issue in a domain controller running windows server 2019 datacenter

    0 comments No comments

  4. Benard Mwanza 1,001 Reputation points
    2021-10-18T13:48:19.667+00:00

    Quick assistance is needed. Have checked that the current PowerShell is 64bit

    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.