Install-SCStorageFileServer

Installs failover clustering and a file server on a set of computers.

Syntax

Install-SCStorageFileServer -AddExistingComputer <String[]> [-JobVariable <String>] [-PROTipID <Guid>]
 [-RunAsynchronously] [-SkipClusterValidation] -StorageFileServer <StorageFileServer> [<CommonParameters>]
Install-SCStorageFileServer -AddExistingComputer <String[]> [-ClusterIPAddress <String[]>]
 -ClusterName <String> [-EnableS2D] [-JobVariable <String>] [-PROTipID <Guid>] -RunAsAccount <RunAsAccount>
 [-RunAsynchronously] -ScaleoutFileServerName <String> [-SkipClusterValidation] [<CommonParameters>]
Install-SCStorageFileServer [-ClusterIPAddress <String[]>] -ClusterName <String> [-EnableS2D]
 [-JobVariable <String>] [-PROTipID <Guid>] -PhysicalComputerConfig <PhysicalComputerConfig[]>
 [-RunAsynchronously] -ScaleoutFileServerName <String> [-SkipClusterValidation] [<CommonParameters>]
Install-SCStorageFileServer [-JobVariable <String>] [-PROTipID <Guid>]
 -PhysicalComputerConfig <PhysicalComputerConfig[]> [-RunAsynchronously] [-SkipClusterValidation]
 -StorageFileServer <StorageFileServer> [<CommonParameters>]

Description

The Install-SCStorageFileServer cmdlet installs failover clustering and a file server on a set of computers. The computers can be provisioned by Virtual Machine Manager (VMM) by using an Open Software Descriptor (OSD) or they can already have an operating system installed.

Examples

Example 1: Create file server with shared storage

PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> Install-SCStorageFileServer -ClusterName "Cluster01" -ScaleoutFileServerName "SOFS01" -RunAsAccount $RunAsAcct -AddExistingComputer @("node1", "node2") -RunAsynchronously

The first command gets the Run As account named RunAsAccount01, and then stores it in the $RunAsAcct variable.

The second command creates file server with the cluster named Cluster01 and file server role SOFS01.

Example 2: Create file server with storage spaces direct

PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> Install-SCStorageFileServer -ClusterName "Cluster01" -ScaleoutFileServerName "SOFS01" -RunAsAccount $RunAsAcct -AddExistingComputer @("node1", "node2") -RunAsynchronously -EnableS2D

The first command gets the Run As account named RunAsAccount01, and then stores it in the $RunAsAcct variable.

The second command creates a file server with the cluster named Cluster01 and file server role SOFS01. The command includes the EnableS2D parameter.

Parameters

-AddExistingComputer

Specifies an array of computers that this cmdlet adds. Specify the fully qualified domain names (FQDN), NetBIOS names, or IP addresses of servers on the network that have an operating system.

Type:String[]
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClusterIPAddress

Specifies an array of IP addresses to use as a cluster IP address.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClusterName

Specifies the name for the cluster.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableS2D
Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobVariable

Specifies a variable in which job progress is tracked and stored.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PhysicalComputerConfig

Specifies an array of host configuration objects. For information about host configuration objects, see the New-SCVMHostConfig cmdlet.

Type:PhysicalComputerConfig[]
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsAccount

Specifies a Run As account that contains credentials with permission to perform this action.

Type:RunAsAccount
Required:True
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.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ScaleoutFileServerName

Specifies the name of a scale-out file server role.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SkipClusterValidation

Indicates that this cmdlet skips cluster validation tests when it creates a cluster.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StorageFileServer

Specifies a storage file server object.

Type:StorageFileServer
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

StorageFileServer

This cmdlet returns a **StorageFileServer** object.