Error when trying to add a role to a 2022 Server.

Anonymous
2023-12-23T15:00:29+00:00

Whenever I try to add a role on my Windows Server 2022 Domain Controller, when I click Install, I get the error message, “Could not execute the method because either the method itself or the containing type is not fully instantiated”.  Powershell also crashes on this server whenever I try to run it.  Any help is greatly appreciated.

Windows for business | Windows Server | Devices and deployment | Install Windows updates, features, or roles

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

10 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-25T01:52:47+00:00

    Hi JustinMatthews3,

    to troubleshoot this issue, I recommend the following steps:

    1. Check if there are any pending Windows updates that need to be installed. If there are, install them and try adding the role again.
    2. Check if there are any third-party antivirus or firewall software installed on the server. If there are, temporarily disable them and try adding the role again.
    3. Check if the server has enough disk space and memory to install the role. If not, free up some space and try again.
    4. Try running the installation using PowerShell with administrative privileges. Open PowerShell as an administrator and run the command to install the role.

    If none of these steps resolve the issue, please provide more details about the role you are trying to install and any other error messages you may be receiving.

    Kind regards,

    Lei

    0 comments No comments
  2. Anonymous
    2023-12-25T02:16:46+00:00

    Hello Lei,

    I’m trying to install the File Server Resource Manager Role. Windows Updates are up to date, Virus software is disabled, and there is 85 GB of free disk space on the C Drive. Powershell crashes when I try to open it by double clicking on the icon. If I try to run Powershell from a command prompt, I get the same error as I do when trying to install the FSRM role….”Could not execute the method because either the method itself or the containing type is not fully instantiated”.

    0 comments No comments
  3. Anonymous
    2023-12-25T03:10:49+00:00

    Hi

    You can try the following steps:

    1. Run an SFC scan to check if the system files are corrupted. In the command prompt for administrator privileges, type "sfc /scannow" and press enter. Wait for the scan to complete and restart the server.
    2. Run the DISM tool to repair the system image. At the command prompt for administrator privileges, enter "dism /online /cleanup-image /restorehealth" and press enter. Wait for the repair to complete and restart the server.
    3. If the above steps don't resolve the issue, try starting the server in safe mode and try adding a role. If you can successfully add a role, it is possible that some third-party application or service is interfering with the role installation.
    0 comments No comments
  4. Anonymous
    2023-12-25T03:29:00+00:00

    I ran the SFC and DISM commands and rebooted, and still have the same issue. I can boot in safe mode and try, but trying to run PowerShell gives me the same error as trying to install the role, so wouldn’t the issue be affecting more than just installing roles?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2024-01-05T23:23:54+00:00

    Hello Lei,

    I started the server in Safe Mode and tried adding the role. Same error. Also tried starting Powershell. Got the same error. Any help would be greatly appreciated.

    Thanks in advance.

    0 comments No comments