How to expand partition with block in the middle on windows?

I have a server with partition as below. I have added free space to it but not able to extend the C: drive as expand option is greyed out.

partition

When I get that in personal laptop, I used to do with acronis disk diretory suite(cracked version), but this machine is now office server and can't ask them to buy the license for just this server.

Any window commands to achieve this?


I normally use GParted for this kind of thing.

You should be able to move your recovery drive to the end which will allow you to expand into the now-adjacent space.

Also, take a look at DiskPart. A Windows-native tool, good if you're struggling for GParted to 'see' your RAID controller etc, but GParted is great for the visual aspect.

Obviously, be very careful applying changes, ensure recent backups are available etc.