Dear SCCM guys,
I am trying to run TS for that delete files older than 30 days without any luck, i tried all scenario i think i should change something in the code but i don't have that experience in scripting,
command as following
forfiles -p %appdata%\Microsoft\Signatures\ -m *.* -d -30 -c "cmd /c del /q @path"
error as below:
Run command line Process completed with exit code 1 Command line returned 1 ERROR: The specified directory does not exist. . The operating system reported error 1: Incorrect function.
Thank you