Set-SPOSite
设置或更新网站集的一个或多个属性值。
语法
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-AllowSelfServiceUpgrade <Boolean>]
[-Confirm]
[-DenyAddAndCustomizePages <Boolean>]
[-LocaleId <UInt32>]
[-LockState <String>]
[-MediaTranscription <MediaTranscriptionPolicyType>]
[-NoWait]
[-Owner <String>]
[-ResourceQuotaWarningLevel <Double>]
[-SandboxedCodeActivationCapability <SandboxedCodeActivationCapabilities>]
[-BlockDownloadLinksFileType <BlockDownloadLinksFileTypes>]
[-SharingCapability <SharingCapabilities>]
[-StorageQuota <Int64>]
[-StorageQuotaWarningLevel <Int64>]
[-Title <String>]
[-WhatIf]
[-AllowDownloadingNonWebViewableFiles <Boolean>]
[-CommentsOnSitePagesDisabled <Boolean>]
[-SocialBarOnSitePagesDisabled <Boolean>]
[-DisableAppViews <AppViewsPolicy>]
[-DisableCompanyWideSharingLinks <CompanyWideSharingLinksPolicy>]
[-DisableFlows <FlowsPolicy>]
[-LoopDefaultSharingLinkScope <String>]
[-LoopDefaultSharingLinkRole <String>]
[-RestrictedToGeo <RestrictedToRegion>]
[-SharingAllowedDomainList <String>]
[-SharingBlockedDomainList <String>]
[-SharingDomainRestrictionMode <SharingDomainRestrictionModes>]
[-ShowPeoplePickerSuggestionsForGuestUsers <Boolean>]
[-StorageQuotaReset]
[-DefaultSharingLinkType]
[-DefaultLinkPermission]
[-DefaultLinkToExistingAccess]
[-ConditionalAccessPolicy <SPOConditionalAccessPolicyType>]
[-AuthenticationContextName <String>]
[-LimitedAccessFileType <SPOLimitedAccessFileType>]
[-AllowEditing <Boolean>]
[-AnonymousLinkExpirationInDays <Int32>]
[-OverrideTenantAnonymousLinkExpirationPolicy <Boolean>]
[-OverrideTenantExternalUserExpirationPolicy <Boolean>]
[-ExternalUserExpirationInDays <Int32>]
[-SensitivityLabel <String>]
[-RequestFilesLinkExpirationInDays <Int32>]
[-RequestFilesLinkEnabled <Boolean>]
[-RemoveLabel]
[<CommonParameters>]
Set-SPOSite
[-Identity] <SpoSitePipeBind>
-EnablePWA <Boolean>
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-Confirm]
[-DisableSharingForNonOwners]
[-WhatIf]
[<CommonParameters>]
Set-SPOSite
[-Identity] <SpoSitePipeBind>
[-AllowSelfServiceUpgrade <Boolean>]
[-Confirm]
[-DenyAddAndCustomizePages <Boolean>]
[-LocaleId <UInt32>]
[-LockState <String>]
[-NoWait]
[-Owner <String>]
[-ResourceQuotaWarningLevel <Double>]
[-SandboxedCodeActivationCapability <SandboxedCodeActivationCapabilities>]
[-SharingCapability <SharingCapabilities>]
[-StorageQuota <Int64>]
[-StorageQuotaWarningLevel <Int64>]
[<CommonParameters>]
说明
对于传入的任何参数, Set-SPOSite
cmdlet 设置或更新由参数 Identity 标识的网站集的设置。
你必须既是 SharePoint Online 管理员或全局管理员又是网站集管理员才能运行 cmdlet。
有关适用于 SharePoint Online 的 Windows PowerShell 的权限和最新信息,请参阅在线文档简介 SharePoint Online 命令行管理程序的简介。
对于OneDrive for Business网站集,唯一有效的参数是 Identity、AllowDownloadingNonWebViewableFiles、AllowEditing、ConditionalAccessPolicy、DefaultLinkPermission、DefaultSharingLinkType、DisableCompanyWideSharingLinks、LimitedAccessFileType、LockState、Owner、SharingAllowedDomainList、SharingBlockedDomainList、SharingCapability、SharingDomainRestrictionModeShowPeoplePickerSuggestionsForGuestUsers、StorageQuota 和 StorageWarningLevel。
对于组网站集,唯一有效的参数是 Identity、AllowSelfServiceUpgrade、DefaultLinkPermission、DefaultSharingLinkType、DenyAddAndCustomizePages、 DisableCompanyWideSharingLinks、DisableSharingForNonOwners、LockState、Owner、ResourceQuota、ResourceQuotaWarningLevel、SandboxedCodeActivationCapability、SharingCapability、ShowPeoplePickerSuggestionsForGuestUsers、SocialBarOnSitePagesDisabled、StorageQuota、StorageQuotaReset 和 StorageQuotaWarningLevel。
示例
示例 1
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -Owner joe.healy@contoso.com -NoWait
示例 1 将网站集 https://contoso.sharepoint.com/sites/site1 的所有者更新为电子邮件地址为 joe.healy@contoso.com的人员。 此 cmdlet 将立即执行而不会延迟。
示例 2
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -StorageQuota 1024
示例 2 更新网站集 https://contoso.sharepoint.com/sites/site1. 的设置:存储配额已更新为 1024 兆字节 (1 GB) 。
示例 3
Set-SPOSite -Identity https://contoso.sharepoint.com -StorageQuota 1500 -StorageQuotaWarningLevel 1400
此示例更新网站集 https://contoso.sharepoint.com. 的设置:存储配额已更新为 1500 兆字节,存储配额警告级别已更新为 1400 兆字节。
示例 4
Set-SPOSite -Identity https://contoso.sharepoint.com -DisableSharingForNonOwners
示例 4 可防止非网站所有者邀请新用户访问网站。
示例 5
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/groupname -StorageQuota 3000 -StorageQuotaWarningLevel 2000
此示例设置站点的配额。
注意
如果为租户启用了网站集存储管理,则你将无法设置配额,并返回一个一般性错误。 若要解决此问题,请暂时将网站集存储管理设置为“手动”,设置配额,然后将网站集存储管理设置重新设置为原始设置。
示例 6
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -EnablePWA $true
示例 6 使网站“site1”能够 (PWA) 创建 Project Web 应用程序。
示例 7
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -SharingCapability ExternalUserSharingOnly
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -SharingDomainRestrictionMode AllowList -SharingAllowedDomainList "contoso.com"
示例 7 将“共享功能”设置为允许接受共享邀请并作为经过身份验证的用户登录的外部用户,然后指定允许与外部协作者共享的电子邮件域。
示例 8
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/research -AddInformationSegment a17efb47-e3c9-4d85-a188-1cd59c83de32
本示例将 InformationSegment'a17efb47-e3c9-4d85-a188-1cd59c83de32'添加到网站。
示例 9
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/research -RemoveInformationSegment a17efb47-e3c9-4d85-a188-1cd59c83de32
例如,从网站中删除 InformationSegment“a17efb47-e3c9-4d85-a188-1cd59c83de32”。
示例 10
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/research -ConditionalAccessPolicy AuthenticationContext -AuthenticationContextName "MFA"
在此示例中,名为 MFA 的身份验证上下文附加到站点。
参数
-AddInformationSegment
此参数允许您将段添加到 SharePoint 网站。 此参数仅适用于已启用 Microsoft 365 信息屏障功能的租户。 请阅读文 https://learn.microsoft.com/sharepoint/information-barriers 档,了解 SharePoint Online 中的信息障碍。
注意: 此参数仅在 SharePoint Online 命令行管理程序版本 16.0.19927.12000 或更高版本中可用。
Type: | GUID |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-AllowDownloadingNonWebViewableFiles
指定是否可以下载非 Web 可查看文件。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-AllowEditing
阻止用户在浏览器中编辑 Office 文件,以及将 Office 文件内容复制和粘贴到浏览器窗口之外。
参数值:$true | $false
Type: | Boolean |
Position: | Named |
Default value: | True |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-AllowSelfServiceUpgrade
确定网站集管理员是否能升级其网站集。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-AnonymousLinkExpirationInDays
指定 (创建或将要创建的所有匿名/任何人链接,) 将在设置的天数后过期。 仅当 OverrideTenantAnonymousLinkExpirationPolicy 设置为 true 时适用。
若要删除过期要求,请将此值设置为零 (0)。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-AuthenticationContextName
条件访问身份验证上下文名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-BlockDownloadLinksFileType
有效值为:
- WebPreviewableFiles
- ServerRenderedFilesOnly
注意:ServerRendered(仅限 Office)和 WebPreviewable(所有受支持的文件)。
网站的值与租户级别设置进行比较,较严格的设置获胜。 例如,如果租户设置为 ServerRenderedFilesOnly,则即使网站设置为 WebPreviewableFiles,也会使用该租户。
Type: | BlockDownloadLinksFileTypes |
Position: | Named |
Default value: | WebPreviewableFiles |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-CommentsOnSitePagesDisabled
使用此参数可禁用“网站页面”上的“注释”部分。 参数不能用于组网站集。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ConditionalAccessPolicy
请在此处阅读控制来自非托管设备的访问》一文,了解 SharePoint Online 中的条件访问策略使用情况。
可能的值:
- AllowFullAccess:允许从桌面应用、移动应用和 Web 进行完全访问。
- AllowLimitedAccess:允许受限的仅限 Web 的访问。
- BlockAccess:阻止访问。
- AuthenticationContext:分配 Azure AD 身份验证上下文。 必须添加 AuthenticationContextName。 请阅读 配置身份验证上下文。
Type: | SPOConditionalAccessPolicyType |
Position: | Named |
Default value: | AllowFullAccess |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Confirm
提示你在运行 cmdlet 之前进行确认。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DefaultLinkPermission
网站集的默认链接权限
参数值:None | View | Edit
- 无 - 尊重组织默认链接权限
- 视图 - 将网站的默认链接权限设置为“查看”权限
- Edit -将网站的默认链接权限设置为“编辑”权限
Type: | SharingPermissionType |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DefaultLinkToExistingAccess
设置为 TRUE 时,将覆盖 DefaultSharingLinkType,默认共享链接将人员与现有访问链接 (不修改权限) 。 (默认) 设置为 FALSE 时,默认共享链接类型由 DefaultSharingLinkType 参数控制
参数值:$true | $false
Type: | SharingLinkType |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DefaultSharingLinkType
网站集的默认链接类型
PARAMVALUE:无 |AnonymousAccess |内部 |直接
- None - 遵守组织的默认共享链接类型
- AnonymousAccess - 将此网站的默认共享链接设置为“匿名访问”或“任何人”链接
- 内部 - 将此网站的默认共享链接设置为“组织”链接或公司可共享链接
- Direct - 将此网站的默认共享链接设置为“特定人员”链接
Type: | SharingLinkType |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DenyAddAndCustomizePages
确定Add And Customize Pages权限是否在网站集上被拒绝。 有关权限级别的详细信息,请参阅 SharePoint 中的用户权限和权限级别。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DisableAppViews
注意:此参数已停用,不再有效。
禁用“Power Apps”按钮。 可能的值:
- Disabled
- NotDisabled
- 未知 (不可设置)
Type: | AppViewsPolicy |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DisableCompanyWideSharingLinks
禁用组织链接中的人员。 有关详细信息,请参阅组织中的人员共享链接。 可能的值
- Disabled
- NotDisabled
- 未知 (不可设置)
Type: | CompanyWideSharingLinksPolicy |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DisableFlows
注意:此参数已停用,不再有效。
禁用“Power Automate”按钮。 可能的值
- Disabled
- NotDisabled
Type: | FlowsPolicy |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-DisableSharingForNonOwners
此参数可防止非所有者邀请新用户加入网站。
此参数仅适用于 SharePoint Online Management Shell 版本 16.0.4613.1211 或更高版本。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-EnablePWA
确定站点是否可以包含Project Web App。 有关Project Web App的详细信息,请参阅在 Project Server 中规划 SharePoint 组。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ExternalUserExpirationInDays
指定将在设置的天数后过期的所有外部用户过期。 仅当 OverrideTenantExternalUserExpirationPolicy 设置为 true 时适用。
若要删除过期要求,请将此值设置为零 (0)。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Identity
指定要更新的网站集的 URL。
Type: | SpoSitePipeBind |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-LimitedAccessFileType
对于组织范围的设置和网站级别设置,以下参数可与 -ConditionalAccessPolicy AllowLimitedAccess 一起使用。
OfficeOnlineFilesOnly:仅允许用户在浏览器中预览 Office 文件。 此选项可提高安全性,但可能会影响用户的工作效率。
LimitedAccessFileType WebPreviewableFiles (默认) :允许用户在浏览器中预览 Office 文件和其他文件类型 (,例如 PDF 文件和图像) 。 请注意,除 Office 文件以外的文件类型的内容在浏览器中进行处理。 此选项可针对用户工作效率进行优化,但对非 Office 文件的安全性较低。
LimitedAccessFileType OtherFiles:允许用户下载无法预览的文件,如 .zip 和 .exe。 此选项提供的安全性较低。
Type: | SPOLimitedAccessFileType |
Position: | Named |
Default value: | WebPreviewableFiles |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-LocaleId
指定此网站集的语言。 有关详细信息,请参阅 MS-OE376、LCID。
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-LockState
设置网站的锁定状态。
有效值为:NoAccess、ReadOnly 和 Unlock。
当站点的锁定状态为 ReadOnly 时,站点上将显示一条消息,指出站点正在维护并且它是只读的。
当网站的锁定状态为 NoAccess 时,将阻止发送到此网站的所有通信。
如果设置了 cmdlet 中的 Set-SPOTenant
参数 NoAccessRedirectUrl,则发向具有锁定状态 NoAccess 的站点的流量将重定向到该 URL。
如果未设置参数 NoAccessRedirectUrl,则将返回 403 错误。
无法在根网站集上设置锁定状态。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-LoopDefaultSharingLinkRole
获取或设置站点上 fluid 的默认共享链接角色
有效值为:
- 编辑
- LimitedEdit
- LimitedView
- ManageList
- 无
- 所有者
- RestrictedView
- 审阅
- 提交
Type: | SharingCapabilities |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-LoopDefaultSharingLinkScope
获取或设置网站上 fluid 的默认共享链接范围。
有效值为:
- 任何人
- 组织
- SpecificPeople
- 初始 化
Type: | SharingCapabilities |
Position: | Named |
Default value: | Uninitialized |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-MediaTranscription
启用该功能后,视频可以按需生成脚本,或者在某些情况下自动生成脚本。 这是默认值,因为策略默认启用。 如果视频所有者决定他们不需要脚本,他们始终可以隐藏或删除该视频中的脚本。 可能的值:
- 已启用
- Disabled
Type: | MediaTranscriptionPolicyType |
Position: | Named |
Default value: | Enabled |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-NoWait
指定立即继续执行脚本。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-OverrideTenantAnonymousLinkExpirationPolicy
选择是覆盖此网站上的匿名链接过期策略还是任何人链接过期策略
PARAMVALUE:无 |False |真
- 无 - 尊重组织级针对匿名或任何人链接过期的策略
- False - 遵守组织级别针对匿名或任何人链接过期的策略
- True - 覆盖匿名或任何人链接过期的组织级别策略, (可能或多或少限制)
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-OverrideTenantExternalUserExpirationPolicy
选择是否覆盖此网站上的外部用户过期策略
可能的值:
- 无:遵守组织级别的外部用户过期策略。
- False:遵守组织级别的外部用户过期策略。
- True:针对外部用户过期 (可以或多或少限制) 重写组织级策略。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Owner
指定网站集的所有者。 不支持更改 OneDrive 的所有者,这会导致许多体验中断。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-RemoveInformationSegment
此参数允许您从 SharePoint 网站中删除段。 此参数仅适用于已启用 Microsoft 365 信息屏障功能的租户。 请阅读 https://learn.microsoft.com/sharepoint/information-barriers 文档以了解 SharePoint Online 的信息屏障。
注意: 此参数仅在 SharePoint Online 命令行管理程序版本 16.0.19927.12000 或更高版本中可用。
Type: | GUID |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveLabel
此参数允许删除网站上分配的敏感度标签。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RequestFilesLinkEnabled
启用或禁用网站上的“请求文件”链接。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-RequestFilesLinkExpirationInDays
指定站点的“请求文件”链接过期之前的天数。
该值可以是 0 到 730 天。
Type: | Int32 |
Position: | Named |
Default value: | -1 |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ResourceQuotaWarningLevel
指定网站集的警告级别(以 MB 为单位)以警告网站集管理员网站即将达到资源配额。
Type: | Double |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-RestrictedToGeo
PARAMVALUE: NoRestriction |BlockMoveOnly |BlockFull |未知
Type: | RestrictedToRegion |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SandboxedCodeActivationCapability
PARAMVALUE:Unknown | Check | Disabled | Enabled
Type: | SandboxedCodeActivationCapabilities |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SensitivityLabel
用于指定 SensitivityLabel (GUID) 的唯一标识符。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SharingAllowedDomainList
指定允许与外部协作者共享的电子邮件域的列表。 使用空格字符作为分隔符来输入多个值。 例如,“contoso.com fabrikam.com”。
有关如何限制域共享的其他信息,请参阅 按域限制 SharePoint 和 OneDrive 内容的共享。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SharingBlockedDomainList
指定被阻止或禁止与外部协作者共享的电子邮件域的列表。 使用空格字符作为分隔符来输入多个值。 例如,“contoso.com fabrikam.com”。
有关如何限制域共享的其他信息,请参阅 按域限制 SharePoint 和 OneDrive 内容的共享。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SharingCapability
确定网站可用的共享级别。 可能的值包括:Disabled - 不允许在组织外部共享、ExistingExternalUserSharingOnly - 仅允许与组织目录中已存在的外部用户共享、ExternalUserSharingOnly - 允许接受共享邀请并作为经过身份验证的用户登录的外部用户,或者 ExternalUserAndGuestSharing - 允许与所有外部用户共享,并使用匿名访问链接。
有关共享的详细信息,请参阅打开或关闭 SharePoint Online (https://learn.microsoft.com/sharepoint/turn-external-sharing-on-or-off) 的外部共享。
Type: | SharingCapabilities |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SharingDomainRestrictionMode
指定外部域的共享模式。
可能的值是:
- 无 - 不限制按域共享
- AllowList - 仅允许在 -SharingAllowedDomainList 中指定的域上拥有帐户的外部用户共享
- BlockList - 允许在 -SharingBlockedDomainList 中指定的域之外的所有域中与外部用户共享
有关如何限制域共享的其他信息,请参阅 按域限制 SharePoint 和 OneDrive 内容的共享。
Type: | SharingDomainRestrictionModes |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ShowPeoplePickerSuggestionsForGuestUsers
若要启用在网站集级别搜索现有来宾用户的选项,请将此参数设置为 $true。
Type: | Boolean |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SocialBarOnSitePagesDisabled
禁用或启用网站集的社交栏。
社交栏将显示在除网站主页外的所有新式 SharePoint 页面上。 它使用户能够点赞页面、查看页面上的观看、点赞和评论数量,以及查看点赞过页面的人员。
参数值:$true | $false
Type: | Boolean |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-StorageQuota
指定网站集的存储配额(以 MB 为单位)。
Type: | Int64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-StorageQuotaReset
将OneDrive for Business存储配额重置为租户的新默认存储空间。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-StorageQuotaWarningLevel
指定网站集的警告级别(以 MB 为单位)以警告网站集管理员网站即将达到存储配额。
Type: | Int64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Title
指定网站集的标题。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WhatIf
WhatIf 开关在此 cmdlet 上不起作用。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |