I know it is old topic, I have below patch that always fail in deployment using SCCM 2007 file
forfiles.exe -p %appdata%\Microsoft\Signatures\ -m *.* -d -30 -c "cmd /c del /q @path"
error as below
A failure exit code of 1 was returned. User context: NT AUTHORITY\SYSTEM Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. An exit code of 1 is considered a failure. Solution: For more information on the exit code, refer to the documentation for the program you are distributing
any suggestion.
Thank you