How disable a number of components of a gameobject via script?

How can I disable all components from a gameobject (Rigidbody, Scripts, MeshRenderer, etc) less a specific one (MeshCollider), via script.

Component” is the Base class for everything attached to GameObjects and “Behaviour” is Component that can be enabled or disabled.
So you can do:

Behaviour[] behaviours = gameObject.GetComponentsInChildren<Behaviour>();
foreach(var item in behaviours){
  item.enabled = false;
}

and if you are disabling all components, you might as well just disable the gameObject itself.

this.gameObject.SetActive(false);