50-year-old Alexander William Strachan Smith and Paul David Murray, 26, both from Elgin, appeared separately on petition on Monday.
Both were accused of being concerned in the supply of drugs. Smith also faces a charge of carrying an offensive weapon.
Murray also faces charges of behaving in a threatening and abusive manner and vandalism.
Neither of the men made any plea and both were committed for further examination and granted bail.