I am trying to clear out the local SMS client cache on several machines, but the VB script I am using doesnt seem to work. I created a SMS Advertisement to download the package and run locally. The script I have is:
on error resume next
set oUIResManager = createobject("UIResource.UIResourceMgr")
if oUIResManager is nothing then
wscript.echo "Couldn't create Resource Manager - quitting"
if oCache is nothing then
wscript.echo "Couldn't get cache info - quitting"
for each oCacheElement in oCacheElements
I save the above in a VB fileclearcache2.vbs and set the CMD to run on the local client as:
Can anyone see why it might be failing? This should be pretty easy I thought&..