自动为每一位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();
}
博客提出自动为每一位AD用户创建个人站点的设想,无需用户手动点击“我的网站”来创建,还表示自己没试过,希望有朋友尝试后告知结果。
1万+

被折叠的 条评论
为什么被折叠?



