How can I delete all of the contents of the c:\ProgramData\Dell\KACE\patches dir with a GPO over night on machines that won't be rebooted or logged off and on again?

We had to migrate to a new OVF and we're getting error (Handshake Failed) when deploying patches. Cleaning the patches directory seems to correct this. We have 200 servers I need to patch tomorrow and Friday, but we also have 1500 clients that need patches. We'll need to deploy something to correct this on all machines, but many rarely reboot. Plenty still aren't even logged off of.  i.e. Medical research...

Thanks for any help or suggestions.
1 Comment   [ + ] Show Comment

Comments

  • You could also try a script in KACE to purge that directory and set it to run during the night with the option to "Also run once at next device checkin" in case the PC is offline at the time.
Please log in to comment

Answers

0
I have never done this but it seems like this would work for you. Upload a batch file with the path to delete the folder you desire and execute it immediately. 

https://technet.microsoft.com/en-us/library/dd851779.aspx

I would certainly test small-scale. 
Answered 04/13/2017 by: rockhead44
Red Belt

Please log in to comment
0
Thanks for the suggestions.

After migrating to the new server and restoring backups, I would get error (Handshake Failed) when trying to detect only. The patch download wasn't running either. Or rather it ran and reported completion in less than a minute. I called shenanigans. 

After cleaning the patches directory on a handful of machines, I was able to run a detection. After the detection completed on those machines, I re-ran the download and it did its thing for a while and completed successfully. 

I let things settle for a few more hours and ran a detect successfully late last night and a detect and deploy successfully early this morning.

I suspect it may have been fine if I had waited a few hours for the clients and server to settle and catch up with things. It seemed like the patch download needed a good detection to run first and that couldn't happen until the patches dir was cleaned, but it didn't require every single client's patches dir to be cleaned.
Answered 04/13/2017 by: murbot
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity