Displaying 1 result from an estimated 1 matches for "cleanupoldpatchlog".
Did you mean:
cleanupoldpatchlogs
2012 Jun 20
5
puppet windows exec successful but not really
...for windows yet
{code}
exec { ''CleanupOldUninstallDirs'':
command => ''C:\Windows\system32\forfiles.exe -p "C:\Windows" -m
"$NtUninstall*" -d -65 -c "cmd /c dev /F /S /Q @path"'',
}
exec { ''CleanupOldPatchLogs'':
command => ''C:\Windows\system32\forfiles.exe -p "C:\Windows" -m
"KB*.log" -d -365 -c "cmd /c dev /F /S /Q @path"'',
}
{code}
runs correctly debug output below
[image: Inline image 1]
however, files are not deleted, as...