Set-SCStorageFileServer

Set-SCStorageFileServer

Adds or removes a storage file share from VMM management.

構文

Parameter Set: ManageFileShares
Set-SCStorageFileServer [-StorageFileServer] <StorageFileServer> [-AddDiskWitnessFromStoragePool <StoragePool> ] [-Description <String> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RemoveStorageFileShareFromManagement <StorageFileShare[]> ] [-RunAsynchronously] [ <CommonParameters>]

Parameter Set: AddFileServerToCluster
Set-SCStorageFileServer -AddExistingComputer <String[]> -StorageFileServer <StorageFileServer> [-Description <String> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-SkipClusterValidation] [ <CommonParameters>]

Parameter Set: EnableFileShareManagement
Set-SCStorageFileServer [-StorageFileServer] <StorageFileServer> -AddStorageFileShareToManagement <StorageFileShare[]> [-Description <String> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RemoveStorageFileShareFromManagement <StorageFileShare[]> ] [-RunAsynchronously] [-StorageClassificationAssociation <StorageClassification[]> ] [ <CommonParameters>]

Parameter Set: RemoveFileServerFromCluster
Set-SCStorageFileServer -RemoveExistingComputer <StorageFileServerNode[]> -StorageFileServer <StorageFileServer> [-Description <String> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

詳細説明

The Set-SCStorageFileServer cmdlet adds or removes a storage file share from Virtual Machine Manager (VMM) management.

パラメーター

-AddDiskWitnessFromStoragePool<StoragePool>

Specifies a storage pool object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AddExistingComputer<String[]>

Specifies an array that includes the fully qualified domain name (FQDN), NetBIOS, or IP address of a server on the network with an operating system.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AddStorageFileShareToManagement<StorageFileShare[]>

Specifies an array of storage file share objects.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Description<String>

States a description for the specified object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoveExistingComputer<StorageFileServerNode[]>

Specifies an array containing the FQDN, NetBIOS, or IP address of a server on the network with an operating system.

エイリアス

none

必須?

true

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoveStorageFileShareFromManagement<StorageFileShare[]>

Removes the specified storage file share array from VMM management.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SkipClusterValidation

Indicates that this cmdlet skips cluster validation tests when creating a cluster.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-StorageClassificationAssociation<StorageClassification[]>

Specifies an array of storage classification objects that is associated with a storage pool.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-StorageFileServer<StorageFileServer>

Specifies a storage file server object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • StorageFileServer

Example 1: Add a storage file share to VMM management

The first command gets the storage file server objet named FileServer01, and then stores the object in the $FileServer variable.

The second command gets the storage file share object named FileShare01, and then stores the object in the $FileShare variable.

The last command brings FileShare01 under VMM management.

PS C:\> $FileServer = Get-SCStorageFileServer -Name "FileServer01.Contoso.com"
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> Set-SCStorageFileServer -StorageFileServer $FileServer -AddStorageFileShareToManagement $FileShare

Example 2: Remove a storage file share from VMM management

The first command gets the storage file server objet named FileServer01, and then stores the object in the $FileServer variable.

The second command gets the storage file share object named FileShare01, and then stores the object in the $FileShare variable.

The last command removes FileShare01 from VMM management.

PS C:\> $FileServer = Get-SCStorageFileServer -Name "FileServer01.Contoso.com"
PS C:\> $FileShare = Get-SCStorageFileShare -Name "FileShare01"
PS C:\> Set-SCStorageFileServer -StorageFileServer $FileServer -RemoveStorageFileShareFromManagement $FileShare

関連トピック

Get-SCStorageFileServer

Get-SCStorageFileShare

Install-SCStorageFileServer

Uninstall-SCStorageFileServer