PowerShell kullanarak SharePoint Üst Gezinme Menüsüne veya Hızlı Başlatmaya Bağlantı Ekleme


Gereksinim: PowerShell'i kullanarak SharePoint Genel Gezinti'ye (Üst Bağlantı Çubuğu) veya Hızlı Başlat'a yeni bir bağlantı ekleyin.

PowerShell'i kullanarak SharePoint Üst Gezintisi'ne bir bağlantı ekleyin:

PowerShell'i kullanarak SharePoint Üst Gezinti'nize veya Hızlı Başlatma'nıza bağlantılar eklemek ister misiniz? Size bunu nasıl yapacağınızı göstereyim:


Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Variables for processing
$WebURL="https://sharepoint.crescent.com/teams/marketing"
$NavigationTitle="Employee Profile"
$NavigationLink="https://peoplesoft.crescent.com/employee/profile.aspx"

#Get the Web
$Web= Get-SPWeb $WebURL

#Get Top Navigation
$TopNavigation = $Web.Navigation.TopNavigationBar
#For Quick Launch, Use: Navigation.QuickLaunch

#Create a New Top Navigation Node
$node = New-Object Microsoft.SharePoint.Navigation.SPNavigationNode($NavigationTitle, $NavigationLink, $true)

#Add the Node
$TopNavigation.AddAsLast($node)

#Set the Target Property - Will work only when Publishing features is enabled
$node.Properties["Target"] = "_blank"

$node.Update

Bir site koleksiyonundaki tüm sitelere yeni bir bağlantı eklemek için komut dosyasını değiştirebilirsiniz.

İlgili makaleler