diskpart doesn't work from SYSTEM in Windows 2022

Andy Bukhansky 1 Reputation point

In Windows 2022 dispart executed from Group Policy startup script throws the following error:
"DiskPart encountered an error starting the COM services."

The script is running from user nt authority\system. It worked great on all Windows including 2019.

Is there a workaround for this issue?


Windows Group Policy
Windows Group Policy
A feature of Windows that enables policy-based administration using Active Directory.
2,145 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 37,771 Reputation points

    Hi there,

    You can check the System Event Log for more information about these issues and try to sort them out and Meanwhile try out the SFC and the DISm scan too.

    1. Press Win + R to summon the Run windows, type eventvwr, and press Enter.
    2. Click Windows Logs and System in order.
    3. Look for errors with the RED Exclamation mark and check the detailed information.

    If the reply is helpful, please Upvote and Accept it as an answer

    0 comments No comments

  2. Andy Bukhansky 1 Reputation point

    It's a newly installed system, nothing has been installed there.

    There is nothing suspicious in the logs.

    0 comments No comments