I have created 3 tasks that allow a user to easily backup any PC where the Dagent is installed.
First task installs the automation folder in the client (WinPE), second task backups the entire drive onto the server to a folder with the computer's name.
Third task is to be run in Automation and allows the PC to get the right backup by name to restore it's content and it's actually working fine with one odd issue only.
The script doesn't run at in Automation.
If I send the command using the "Execute" option it works fine as long as "Run with default credentials" is selected. Try it with "console user session" or send it via a Job with Run Script and it's ignored, with "error 1" if it's sent with a script.
This problem happens with any command at all, whether it's just "echo test", "notepad" or anything at all. Drive mapping is working perfectly well so it can't be due to that either.
Of note is that, whenever a command is sent and ends up not running at all, I do see a command window opening and closing abruptadly.
Perhaps this is a problem with the SYSTEM ACCOUNT of WinPE but other uses seem able to send Scripts onto their Automation Folders so I am at a loss as to why it refuses to do so but has no problem if I send "Execute" with default credentials.
Any help would be apreciated, I'm only one step away to make an idiot-proof automated solution, just missing this final step (since CTRL+C, CTRL+V might be too hard for some people. I'm serious)