Could I use a cpu from an all-in-one on a b250 motherboard?

Adam_183

Commendable
Dec 25, 2016
6
0
1,510
Would it be possible for me to take out the cpu (I5-6400) from a faulty hp 23 all-in-one and use it on my own motherboard? Would it cause any problems?

Thanks.