【问题标题】:PowerShell script to get the ShowInEditForm property for a site column. i do not want to use PnP PowerShell用于获取网站栏的 ShowInEditForm 属性的 PowerShell 脚本。我不想使用 PnP PowerShell
【发布时间】:2023-02-06 17:54:53
【问题描述】:

我正在尝试使用此脚本获取网站栏的 ShowInEditForm 属性,然后将其设置为 False:-

Connect-SPOService -Url https://****-admin.sharepoint.com/

Get-SPOSite -Identity https://***.sharepoint.com/


$column = Get-SPOField -Identity "CarNumber"

但我收到此错误:-

Get-SPOField : The term 'Get-SPOField' 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.
any advice please?

【问题讨论】:

    标签: powershell sharepoint-online


    【解决方案1】:

    Get-SPOField 不是有效的 cmdlet,您应该使用 Get-PnPField cmdlet 获取字段。

    【讨论】:

    • 谢谢,但 PnP 不允许在客户端环境中使用,因为它是一种开源技术。还有其他选择吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-02
    • 2017-09-30
    • 2019-12-10
    相关资源
    最近更新 更多