cleanmgr.exe tool on Windows Server CORE.

Doria 1,246 Reputation points
2020-12-03T20:32:04.927+00:00

Hi everyone!

Do I have to install any feature on W2K19 CORE to have 'cleanmgr.exe' tool available?

C:\>cleanmgr
'cleanmgr' is not recognized as an internal or external command,
operable program or batch file.

Thanks

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,734 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,017 questions
{count} votes

Accepted answer
  1. Anonymous
    2020-12-03T21:17:29.097+00:00

    A bit of a hack but this one may help.
    https://www.stephenwagner.com/2020/01/31/disk-cleanup-on-windows-server-2019-server-core-edition/

    --please don't forget to Accept as answer if the reply is helpful--

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Jenny Feng 14,126 Reputation points
    2020-12-04T08:54:21.76+00:00

    @Doria
    Hi,

    Two files are required for Disk Cleanup:
    cleangmgr.exe
    cleanmgr.exe.mui

    You can source the files from other servers (preferably running the same version of Windows Server).
    Once you’ve located the files move them to the following locations:
    Copy Cleanmgr.exe to %systemroot%System32.
    Copy Cleanmgr.exe.mui to %systemroot%System32en-US.

    Hope above information can help you.

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

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Doria 1,246 Reputation points
    2020-12-07T14:54:00.277+00:00

    Yes, it was helpful.

    Thanks.


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.