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