Sep 10, 2009

Customize the My Site Portal Link

I’m waiting for two buttons from our designer, so I’ve got 10 minutes for trivial post…

One of our customers has already created hundreds of My Sites, but unfortunately all this sites are missing the portal link to the intranet. Two simple requirements: all new sites should have the portal link automatically and all existing sites should get the portal link too.

image

  1. Customizing the portal link of the root My Site site takes care that the portal link will automatically added to new my sites. You have to enter the url to the setting page directly (e.g. http://localhost:8020/_layouts/portal.aspx), otherwise you get routed to your My Site.
  2. To migrate all existing My Sites I’ve written a simple PowerShell script – what else ;-)
# Set-SPPortalLink.ps1
# e.g. . .\Set-SPPortalLink "http://localhost:81/" "Intranet" "http://intranet"

param($webAppUrl, $portalName, $portalUrl)

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")

$webApp = [Microsoft.SharePoint.Administration.SPWebApplication]::Lookup($webAppUrl)

foreach($site in $webApp.Sites)
{
$site.Url | Out-Host
#impersonate site to system user
$impSite = new-object Microsoft.SharePoint.SPSite($site.ID, $site.SystemAccount.UserToken)
$impSite.PortalName = $portalName
$impsite.PortalUrl = $portalUrl

$impSite.Dispose()
$site.Dispose()
}

13 comments:

Anonymous said...

Because the newest replica rolex watches inclusion for the desired Underwater Diver assortment, the particular African american Marine glass display cases Ulysse Nardin? ˉs advancement inside watchmaking engineering. The particularly taken care of stainless-steel circumstance, possessing rolex replica uk been through any intricate vulcanization method will be uncovered using a matte-black plastic covering, introducing any sporty cosmetic and also secure sense. The convention case-back unveils the particular self-winding movements. You can even use a swiss watcehs uk go through the highlighted goods just like Double Timer Guys Observe, Men’s Atomic Watches…etc. An individual can locate it is supplying the lowest priced value as compared to you might have at any time dreamed fake rolex watches just before. In addition, it will not acquire long to obtain the shipping and delivery with the goods which you buy on the web coming from Additionally it is achievable to obtain the finest Jump Timepieces and also replica watches sale there is no need to find any destination for a obtain it. Jump Timepieces allow you to seem extremely sporty and you also fake rolex would certainly definitely acquire excellent kind comments coming from each person about an individual.

digital signature Microsoft said...

Thank you so much for taking the time to share this information. A great read. I’ll certainly be back.

Hug Day said...

happy hug day 2016
happy hug day 2016 Date SMS Messages Quotes
How Hug Day Is Celebrated
Happy hug day sms

aksawy said...

عملاؤنا الكرام ان شركتنا بالرياض هى افضل شركات التنظيف التى تقدم اجود الخدمات وافضلها وبأرخص الاسعار والتكاليف فضلا عن استخدام الشركة لأجود المنظفات والمطهرات المستورده من الخارج والتى تعطى افضل نتائج للنظافة

شركة تنظيف كنب بالرياض
شركة تنظيف بالرياض
شركة تنظيف شقق بالدمام
شركة تنظيف شقق بجدة
شركة تنظيف شقق بالرياض
شركة تنظيف فلل بالرياض
شركة تنظيف منازل بالرياض
شركة تنظيف مجالس بالرياض
شركة جلي بلاط بالرياض
شركة تنظيف مسابح بالرياض
شركة تنظيف خزانات بالرياض
شركة صيانة خزانات بالرياض
شركة نقل اثاث بالرياض

, فسارعو بالاتصال بنا من اى مكان بالرياض لنرسل اليكم افضل مندوبينا لمعاينة المكان وتحديد ما يمكن فعله

asok kumar said...

good shareit apk

Fangyaya said...

nike roshe one
cheap oakley sunglasses
cheap oakleys
michael kors bags
coach outlet store online
retro jordan shoes
louis vuitton purses
coach outlet online
coach factory outlet
burberry sale
red bottom shoes
michael kors handbags
retro 11
coach factory outlet
louis vuitton outlet
louis vuitton
ghd hair straighteners
louis vuitton handbags
coach outlet
ralph lauren outlet
coach factory outlet online
cheap ray ban sunglasses
true religion jeans
louis vuitton bags
ray ban sunglasses outlet
cheap ray ban sunglasses
longchamp outlet
coach outlet online
ralph lauren
gucci belts
ray ban outlet
ray ban outlet
michael kors handbags
fitflop shoes
coach outlet clearance
montblanc pens
toms shoes uk
ralph lauren clearance outlet
timberlands
retro jordans 13
20168.8chenjinyan

Fangyaya said...

nike roshe one
cheap oakley sunglasses
cheap oakleys
michael kors bags
coach outlet store online
retro jordan shoes
louis vuitton purses
coach outlet online
coach factory outlet
burberry sale
red bottom shoes
michael kors handbags
retro 11
coach factory outlet
louis vuitton outlet
louis vuitton
ghd hair straighteners
louis vuitton handbags
coach outlet
ralph lauren outlet
coach factory outlet online
cheap ray ban sunglasses
true religion jeans
louis vuitton bags
ray ban sunglasses outlet
cheap ray ban sunglasses
longchamp outlet
coach outlet online
ralph lauren
gucci belts
ray ban outlet
ray ban outlet
michael kors handbags
fitflop shoes
coach outlet clearance
montblanc pens
toms shoes uk
ralph lauren clearance outlet
timberlands
retro jordans 13
20168.8chenjinyan

dada24 Xu said...

ysl outlet online
jordan shoes
vans outlet store
uggs sale
vans shoes
michael kors outlet
birkenstocks
ugg australia
borse gucci
celine outlet
2016921caiyan

dada24 Xu said...

ysl outlet online
jordan shoes
vans outlet store
uggs sale
vans shoes
michael kors outlet
birkenstocks
ugg australia
borse gucci
celine outlet
2016921caiyan

chenlina said...

adidas outlet
christian louboutin paris
ralph lauren polo
ugg outlet
minnesota vikings jerseys
oakley sunglasses
ugg boots
michael kors outlet
louis vuitton outlet
louis vuitton
chenlina20160923

aboshady said...

شركة تنظيف بالرياض
شركة تنظيف منازل بالرياض
شركة تنظيف شقق بالرياض
شركة كشف تسربات المياه بالرياض
كشف تسربات المياه بالرياض
شركة كشف تسربات بالرياض
كشف تسربات بالرياض
افضل شركة كشف تسربات بالرياض
شركة كشف تسربات بالرياض

Anne Lin said...

This 12th Man Banner for the Seattle Seahawks measures 28x40 inches and provides a 2 inch top sleeve for insertion of a flagpole or banner pole. Our 12th Man Banner for the Seattle Seahawks hangs vertically, is made of 100% thick polyester, features permanent Screen Printed Number 12 logos, and is Viewable and Readable Correctly on Both Sides.This house flag is Officially Licensed by the NFL and Seattle Seahawks and is a high quality item for hanging from your porch or as an interior wall banner.Hang your 12th Man Banner for the Seattle Seahawks with our banner pole or fly it with our 5' or 6' flagpoles and adjustable flag brackets.

nfl flags wholesale
nfl house divided flagsLions house divided flags
Houston Texans stars and stripes flagsnfl House Divided Flags
Sports flags and banners
Sports Flags 3x5
House Divided Flags

Anonymous said...

this article provide nice information on snapchat for pc: forpcshome.com