自动为每一位AD用户创建一个人站点(downmoon),而不需要用户去点一下“我的网站”才创建。 应该像这样的! (没试过)哪位朋友试了, 告诉我! 呵呵 System.Uriuri = new System.Uri( " http://myportalsiteurl " ); TopologyManagertopMan = new TopologyManager(); PortalSitepsite = topMan.PortalSites[uri]; PortalContextportalContext = PortalApplication.GetContext(psite); UserProfileManageruman = new UserProfileManager(portalContext); foreach (UserProfileprof in uman) ... { prof.CreatePersonalSite(); }