If you want to work with ExcludeVolumes you have to use it outside the VolumeSelect:
/* Exclude SSDs */
ExcludeVolumes( Name("I:") or Name("C:") )
/* Select and process the volumes one by one. */
VolumeSelect
all
VolumeActions
Or you could simply replace "ExcludeVolmes" with "Not":
/* Select and process the volumes one by one. */
VolumeSelect
Not ( Name("I:") or Name("C:") )
VolumeActions