I published a PowerShell Gallery script, that will get you through this headache in a jiffy....