Ive always wondered, what can we do if a virus or worm happens to affect the main file server?

What if from the file server the clients get infected by said worm/virus?

How would you clean it up? Where would you even start in a compromised environment that has anti-virus in place?