1
PowerShellコマンドSPをruningて: http://blogs.msdn.com/b/opal/archive/2010/04/13/generate-sharepoint-2010-sitemap-with-windows-powershell.aspxは、私はこの例から、PowerShellコマンドを使用してサイトマップを作成しようとしています2010
私の行動:私は、私は開いたNew-SPSiteMap
という名前のファイルにコードをコピー
The term 'New-SPSiteMap' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name,
or if a path was included, verify that the path is correct and try again.
At line:1 char:14
+ New-SPSiteMap <<<< -Url http://mossdev2010 -SavePath C:\inetpub\wwwroot\wss\VirtualDirectories\80\sitemap.xml
+ CategoryInfo : ObjectNotFound: (New-SPSiteMap:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
:PowerShellは私が手にエラーがある
New-SPSiteMap –Url http://centerportal –SavePath C:\inetpub\wwwroot\wss\VirtualDirectories\80\sitemap.xml
を書き、あなたが関数を含むスクリプトを実行する必要が利用可能New-SPSiteMap
機能を持たせるために
何それはRUではありませんあなたがコードに私はファイル内に入れなければならないサイトに書き留めることができる場合サイトマップを作成していない – user554672
は、答えにスクリプトの内容をコピー... – Stefan
私は PS C:\>。\ New- SPSiteMap.ps1 -Url http:// centerportal/-SavePath C:\ sitemap.xml とエラーが発生する 「New-Xml」という用語は、コマンドレット、関数、スクリプト ファイルの名前として認識されません。操作可能なプログラム。名前のスペルを確認するか、パスに が添付されている場合は、パスが正しいことを確認してから、もう一度やり直してください。 C:\ New-SPSiteMap.ps1:11 char:16 + $ list |新-XML <<<< -RootTag urlset -ItemTag URL -ChildItems LOC -SavePath $関数savepath + CategoryInfo:ObjectNotFound:(新-XML:文字列)[]、CommandNotF oundException + FullyQualifiedErrorId:CommandNotFoundExcepti – user554672