Set-SPRemoteShareBlobStore
配置指定的远程共享 BLOB 存储。
语法
Set-SPRemoteShareBlobStore
-RemoteShareBlobStore <SPRemoteShareBlobStorePipeBind>
[-Location <String>]
[-BlobStoreCredential <PSCredential>]
[-PoolCapacity <Int32>]
[-AssignmentCollection <SPAssignmentCollection>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
“Set-SPRemoteShareBlobStore”cmdlet 更改已重新创建远程共享 BLOB 存储的设置。
示例
--------------示例 1--------------
Set-SPRemoteShareBlobStore -RemoteShareBlobStore "RemoteStore" -Location "\\storage_name\blobstore\"
本示例将远程共享 BLOB 存储“RemoteStore”的位置设置为“\\storage_name\blobstore”
--------------示例 2--------------
Set-SPRemoteShareBlobStore -RemoteShareBlobStore "RemoteStore" -BlobStoreCredential (Get-Credential)
此示例提示用户为指定的远程共享 BLOB 存储“RemoteStore”提供 BLOB 存储凭据。
参数
-AssignmentCollection
管理对象以便正确进行处理。 使用 SPWeb 或 SPSite 等对象可能会耗用大量内存,而且在 Windows PowerShell 脚本中使用这些对象需要正确管理内存。 通过使用 SPAssignment 对象,可以将对象分配给变量,然后在不需要这些对象时对它们进行处理,以释放内存。 在使用 SPWeb、SPSite 或 SPSiteAdministration 对象时,如果不使用分配集合或 Global 参数,则会自动处理这些对象。 注意:使用 Global 参数时,所有对象都包含在全局存储中。 If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-BlobStoreCredential
指定用于连接到 BLOB 存储的凭据。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Confirm
提示你在运行 cmdlet 之前进行确认。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-Location
指定此 BLOB 存储将使用的 SMB 存储的路径。 必须使用通用命名约定 (UNC) 共享路径。 例如:\\storage_name\blobstore。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-PoolCapacity
每个 BLOB 池中的 BLOB 中继数。
如果未指定此参数,则不会更改当前值。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-RemoteShareBlobStore
指定要注销的远程共享 BLOB 存储的标识。
它可以是远程共享 BLOB 存储对象或远程共享 BLOB 存储名称。
Type: | SPRemoteShareBlobStorePipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |
-WhatIf
显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server Subscription Edition |