Find one or more folders using a wild card and delete them

(imported topic written by GregSa)

Hey guys,

I’m trying to write a custom task to find any server that has one or more folders named $NtUninstall*. I am hoping I can use the wild card since all the folders are named differently. They are hidden and all start with the $, hoping the $ isn’t an issue in the relevance.

I tried this, but it didn’t work

exists folders “$NtUninstall*” of windows folder

Thanks!

(imported comment written by SystemAdmin)

Try:

exists folder whose (name of it starts with “$NtUninstall”) of windows folder

(imported comment written by GregSa)

Thank you very much, that worked perfect!!!