Sounds fishy... I made a UDF in the past that I know was created while on Windows 7 and it used DefaultNamingContext. You might give it a shot and see if you get the same results.

GetPrimaryGroup()
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=204238#Post204238