Export (0) Print
Expand All
Expand Minimize

Set-SCStorageFileServer

Updated: April 29, 2014

Applies To: System Center 2012 R2 Virtual Machine Manager

Set-SCStorageFileServer

Adds or removes a storage file share from VMM management.

Syntax

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>]




Detailed Description

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

Parameters

-AddDiskWitnessFromStoragePool<StoragePool>

Specifies a storage pool object.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

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.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-AddStorageFileShareToManagement<StorageFileShare[]>

Specifies an array of storage file share objects.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Description<String>

States a description for the specified object.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobVariable<String>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RemoveExistingComputer<StorageFileServerNode[]>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RemoveStorageFileShareFromManagement<StorageFileShare[]>

Removes the specified storage file share array from VMM management.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RunAsynchronously

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SkipClusterValidation

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StorageClassificationAssociation<StorageClassification[]>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StorageFileServer<StorageFileServer>

Specifies a storage file server object.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • StorageFileServer

Examples

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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft