While creating a drive partition on a hard disk via the Diskpart utility, some users have experienced The service failed to initialize error. The error usually points to a failed service or corrupt system file, which is causing the service to stop. If you see the same error messages in the Disk Management console or DiskPart, the solutions described in this post may help you fix the problem.

Why The service failed to initialize in Windows?
Besides service issues, other problems can cause virtual disk errors. These include damaged system files, damaged hard disks, and connection issues. If you are trying this on a remote PC and getting this, make sure to check that you are not blocked by the firewall.
Diskpart Virtual Disk Service Error The service failed to initialize
If you face this issue, we suggest you undertake the following two steps:
- Autostart Virtual Disk Service (VDS)
- Check Registry permission for Application Packages
Make sure that your account has an administrator account and that you have a clear idea of what you plan to do.
1] Autostart Virtual Disk Service (VDS)

The VDS service is set to manual start, meaning it starts only when another program requests it. It can be Windows or any other program connected with virtual services. It is possible that when you are trying the Diskpart tool, the service did not start, and hence you get the error— The service failed to initialize.
To start the service, follow these steps:
- Open Run prompt using Win + R
- Type services.msc and press the Enter key
- Locate Virtual Disk Service in the services management console and check the status
- If it’s not running, right-click and click on the Start option
- Make sure that its Startup type is set to Manual. which is the default Windows setting.
- Apply the changes, and click on the OK button to close it.
Restart your Windows PC and check if the service errors are no longer there.
You can also quickly start the VDS service by running the command net start vds from an elevated Windows Terminal.
Read: Disk Management not connecting to Virtual Disk Service
2] Check Registry permission for Application Packages

Based on our experience, we suggest ensuring that one of the registry components related to VDS has read permissions. If it isn’t, the error will show up.
- Type registry in the Start menu, and click on the Registry Editor listing in the search results
- If prompted by UAC, click on the Yes button
- Next, navigate to the following path
HKLM\SYSTEM\CurrentControlSet\Services\vds
- Right-click on the VDS folder and click on the Permissions option
- Select each group or user name and ensure all have Read permission or the Special permissions.
If the permission is missing, add your account and grant it the necessary permissions. This will ensure that when you execute the command, the problem doesn’t occur.
Apart from the above two methods, you can also run SFC, and DISM commands to rule out the possibility of system file corruption.
Can I restart the Virtual Disk service?
Your computer’s Services app can be used to start the Virtual Disk service if it is not running. Locate the Virtual Disk service in Services. Upon finding it, right-click on it and choose Start (if it is stopped), or Restart (if it is already running).
Related:
- Diskpart Virtual Disk Service error, The operation timed out
- Diskpart Virtual Disk Service error. Delete is not allowed on the current boot, system, pagefile, crashdump or hibernation volume
- Diskpart Virtual Disk Service error, The operation is not supported by the object
- Diskpart Virtual Disk Service Error, The volume size is too big
- Diskpart Virtual Disk Service error, The specified disk is not convertible
- Diskpart Virtual Disk Service Error, Clean is not allowed
- Diskpart Virtual Disk Service error, There is not enough usable space.
Will Disk Cleanup delete my files?
Disk Cleanup improves your computer’s performance by freeing up disk space. When you run Disk Cleanup, it searches your disk for temporary files, Internet caches, and program files the computer no longer needs, and lets you safely delete them. All or some of those files can be deleted using Disk Cleanup.