PowerLookを使用してサイトにQuickLaunchリンクを追加します。SharePointサイトの新しいクイックスタートナビゲーションリンクを追加してください
私が現在使用しているスクリプトは次のとおりです。
次のエラーになり$web = Get-SPWeb http://sp_3/Deps
$node = New-Object -TypeName Microsoft.SharePoint.Navigation.SPNavigationNode
-ArgumentList "LinkTitle", "http://sp_3/Deps/SUP"
$web.Navigation.QuickLaunch.Add($node);
$web.Update()
:
Can not find an overload for the "Add" and the number of arguments: "1." line: 1 char: 32
+ $ Web.Navigation.QuickLaunch.Add <<<< ($ node);
+ CategoryInfo: NotSpecified: (:) [], MethodException
+ FullyQualifiedErrorId: MethodCountCouldNotFindBest
は私が間違って何をしているのですか?
ありがとう! '$ web = Get-SPWeb http:// sp_3/Deps $ node = New-Object -TypeName Microsoft.SharePoint.Navigation.SPNavigationNode -ArgumentList "LinkTitle"、 "http:// sp_3/Deps/SUP"、1 $ web.Navigation.QuickLaunch.Add($ node); 'このコードを使用する私はあなたのサイトへの太いリンクを取得します。 (私のリンクは離れて、孤独なクイック起動バーにあります) 質問:私のリンクは「サイト」というタイトルの下にあったのですか? – spbsmile
私はあなたが私を理解してくれることを願っています – spbsmile
サイトはリンクとリンクグループです。子供のリンクを追加する方法の私の答えの更新を見てください。 –