did you do a fresh install of windows on a hard drive or used a hard drive with windows already on it? (never put a hard drive out of another machine with windows on it on a new machine the chipsets wont match and will cause problems!)
Fresh machine, fresh install.
also, i have google'd around a bit and found other people with the same problem with realtek onboard sound. never a solution. just orphaned posts on other forums.