Inclusion-Exclusion, as used in Robert Shore's answer, is generally the best approach, for this type of problem. That is because Inclusion-Exclusion generalizes well. See this article for an introduction to Inclusion-Exclusion.
Then, see this answer for an explanation of and justification for the Inclusion-Exclusion formula.
Alternative approach.
For this specific problem, the numbers are small enough that the direct approach is also viable. In effect, this approach rehabilitates the approach taken in the posted question.
Based on the posted question, I am assuming that the computers are distinguishable, and the schools are distinguishable.
Shown below are all of the different ways of Integer Partitioning the number $~6~$ into exactly $~3~$ positive terms:
$$4 + 1 + 1, ~~~~3 + 2 + 1, ~~~~2 + 2 + 2. \tag1 $$
These $~3~$ partitions are mutually exclusive with each other. So, you can enumerate the number of different distributions associated with each partition, and then add these computations together.
$\underline{4 + 1 + 1}$
There are $~\displaystyle \binom{6}{4} = 15~$ ways of selecting which $~4~$ computers will be grouped together, and then $~3~$ ways of determining which of the $~3~$ schools will receive these $~4~$ computers.
Then, there are $~2~$ ways of distributing the $~2~$ remaining computers to the other $~2~$ schools, so that each school receives exactly $~1~$ of the $~2~$ computers.
So, the enumeration here is
$$15 \times 3 \times 2 = 90.$$
$\underline{3 + 2 + 1}$
There are $~\displaystyle \binom{6}{3} = 20~$ ways of selecting which $~3~$ computers will be grouped together, and then $~3~$ ways of determining which of the $~3~$ schools will receive these $~3~$ computers.
Then, there are $~\displaystyle \binom{3}{2} = 3~$ ways of selecting which $~2~$ of the remaining computers will be grouped together, and then $~2~$ ways of determining which of the $~2~$ remaining schools will receive these $~2~$ computers.
Then, there is only $~1~$ computer remaining, which must go to the $~1~$ remaining school.
So, the enumeration here is
$$20 \times 3 \times 3 \times 2 = 360.$$
$\underline{2 + 2 + 2}$
Avoiding over-counting here is tricky.
Assume that School-1 will receive whichever $~2~$ computers are the first $~2~$ selected.
Then, assume that School-2 will receive whichever $~2~$ computers are the next $~2~$ selected.
Then, assume that School-3 will receive whichever $~2~$ computers are the last $~2~$ selected.
There are $~\displaystyle \binom{6}{2} = 15 ~$ ways of selecting the $~2~$ computers that will go to School-1.
Then, there are $~\displaystyle \binom{4}{2} = 6 ~$ ways of selecting the $~2~$ computers that will go to School-2.
Then, the remaining $~2~$ computers must go to School-3.
So, the computation here is
$$15 \times 6 = 90$$
$\underline{\text{Final Computation}}$
$$90 + 360 + 90 = 540.$$