I fixed this error by logging onto the forest root DC as domain admin and running the command in Admin powershell