Hello,
I am attempting to make a Windows program that clears shadow copies through cmd. The command is:
vssadmin delete shadows /all
This (and all other vssadmin commands) works perfectly when cmd is opened directly by a user. But as soon as a program creates a cmd process, that command returns an error (Class not registered). The command only works when cmd was opened by a user directly. This has been tested on multiple machines and multiple different programs.
I'm completely lost with this one. Why would the way something was opened change how cmd works? Both are being run as admin btw.
Using Qt C++:
QProcess::startDetached("cmd");
That line opens a command prompt window, but any vssadmin commands entered always return errors.
I am attempting to make a Windows program that clears shadow copies through cmd. The command is:
vssadmin delete shadows /all
This (and all other vssadmin commands) works perfectly when cmd is opened directly by a user. But as soon as a program creates a cmd process, that command returns an error (Class not registered). The command only works when cmd was opened by a user directly. This has been tested on multiple machines and multiple different programs.
I'm completely lost with this one. Why would the way something was opened change how cmd works? Both are being run as admin btw.
Using Qt C++:
QProcess::startDetached("cmd");
That line opens a command prompt window, but any vssadmin commands entered always return errors.

