Update the patch cleaner script

The old one broke after some upgrades.

Hi @smartcloud,

Thanks for your script request. We have asked our script developers to check and provide feedback.

Kind Regards,
PremJK

Hi @smartcloud,

Our script developers are requesting old script which got broke. Can you please provide us here?
Thanks in advance.

Kind Regards,
PremJK

https://forum.itarian.com/forum/script-library/29456-script-to-run-patchcleaner#post29532

This is the post.

Thanks.
Have a great weekend.

Hi @smartcloud,

Thanks for sharing the post.

Kind Regards,
PremJK

Hi @smartcloud,

Our script developers request you to run the script as “logged in user” and if issue still exist, please provide error logs to investigate more.

Kind Regards,
PremJK

Thats not working.

Hi Admin,

New ticket #3686 created








From: Heimir <heimir@smart-mail.net>
Department: Support

Type of ticket creator: procedure
Event Created at: Mon Aug 03 14:39:48 2020 GMT+0
Device Name: SC-1 Heimir
Logged on User: N/A
Device Data :
Type: PC
Domain/Work Group: smart-mail.loc
MAC Address: smart-mail.loc
Serial Number: 4494-0796-3403-7445-7681-4647-27
Operating System: Microsoft Windows 10 Enterprise LTSC (x64)
OS Service Pack: N/A
Company Name: SmartCloud, LLC
Owner: heimir@smart-mail.net
Owner Email: heimir@smart-mail.net
Brand: Microsoft Corporation
Model: Virtual Machine

Data: Failed to start procedure

Hi @smartcloud,

Our script developers informs that “Failed to start procedure error occurs when no user logged in at the time of script execute”.

Kind Regards,
PremJK

If the user must be logged in then the script serves no purpose.
The user can just run the application them self.

The script used to run fine with system user and thats how it needs to run.

its strange I have to point this out.

Hi @smartcloud,

Please try this updated script and let us know if works correctly.
https://scripts.itarian.com/frontend…n-patchcleaner

Thanks in advance.

Kind Regards,
PremJK

Will do. Thank you so much

That did not work.
The script ran and it said successful but it did not delete the orphaned files.

Hi @smartcloud,

Thanks for trying the script and providing feedback. We will ask our script developers to check and update the script.

Kind Regards,
PremJK

Any updates on this?

Hi @smartcloud,

Sorry for delay. We have asked our script developers to look into this and provide updated script.

Kind Regards,
PremJK

Hi @smartcloud,

Please try this updated script prepared by our script developers and provide feedback
https://scripts.itarian.com/frontend/web/topic/script-to-run-patchcleaner

Kind Regards,
PremJK

I did a quick test and it worked as expected.

Thank you so much.
Will update if I find issues.