Are shock collars (temporary) cruel to use on dogs? Please read

My husband and I are moving into apartments in a month, and we need to find a quick solution to get our dog to stop barking every time he hears someone outside. Our apartment has a strict policy on animals and our dog is large and can look intimidating to a stranger. We need to nip the barking in the butt ASAP. The last thing we need is a neighbor calling on us. We are responsible owners, he was trained not to bark for many years, until we moved in with family for the past 6 months that have dogs that constantly bark and he’s picked up on the habit. I’m not really looking for other suggestions, just would like to know your opinion on shock collars as I am on the fence if it’s the right thing to do. It would hopefully only be a temporary solution until he can settle and be how he was before moving in with family. Thanks in advance!

Vote below to see results!