diskpart doesn't work from SYSTEM in Windows 2022

Andy Bukhansky 1 Reputation point
2021-09-27T20:49:24.953+00:00

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?

135693-screenshot-2021-09-27-234515.png

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,724 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 39,336 Reputation points
    2021-09-28T18:52:43.36+00:00

    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
    2021-09-29T13:46:03.867+00:00

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

    There is nothing suspicious in the logs.

    0 comments No comments