PowerShell-添加"LinkFilenameNoMenu"字段到SharePoint文档库视图 [英] PowerShell - add "LinkFilenameNoMenu" field to SharePoint Document Library view

查看:115
本文介绍了PowerShell-添加"LinkFilenameNoMenu"字段到SharePoint文档库视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要添加"LinkFilenameNoMenu"列(名称(通过编辑菜单链接到文档) )到文档库中多个站点的指定视图.我在下面提供了到目前为止的脚本片段:</label>

I am needing to add the "LinkFilenameNoMenu" column (Name (linked to document with edit menu) ) to a specified view within a Document Library for multiple sites. I have included a snippet of the script I have so far below:</label>

<标签为=""ShouldDisplayLinkFilename"></label>

<label for="ShouldDisplayLinkFilename"></label>

执行此脚本时,出现此错误:

When I execute this script, I get this error:

如果我将脚本更新为具有名称"在 $ field = $ List.Fields ["LinkFilenameNoMenu"]行中列出 脚本成功执行,并且名称(用于表单)"列已添加到视图中.我该如何修改以便添加我需要的那个?预先谢谢你!

If I update the script to have "Name" listed in the line for $field = $List.Fields["LinkFilenameNoMenu"] the script executes successfully and the "Name (for use in forms)" column is added to the view. How can I modify this so that the one I need is added? Thank you in advance!

推荐答案

尝试使用下面的PowerShell脚本添加"LinkFilenameNoMenu";字段进入文档库视图:

Try to use the PowerShell script below to add the "LinkFilenameNoMenu" field into Document Library View:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue


WebURL =" http://sp/"
WebURL="http://sp/"


ListName =文档"
ListName="Documents"


这篇关于PowerShell-添加"LinkFilenameNoMenu"字段到SharePoint文档库视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆