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.
Specifies a storage pool object.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
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 |
States a description for the specified object.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Specifies a storage file server object.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
- StorageFileServer
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
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