< Back

New-StorageFileServer

Wed Jan 30, 2019 6:03 pm

NAME New-StorageFileServer



SYNOPSIS

Creates a storage file server.





SYNTAX

New-StorageFileServer [-StorageSubSystemFriendlyName] <String[]> [-CimSession <CimSession[]>] [-FriendlyName <String>] [-ThrottleLimit <Int32>]

-HostNames <String[]> -Protocols <FileSharingProtocol[]> [<CommonParameters>]



New-StorageFileServer [-CimSession <CimSession[]>] [-FriendlyName <String>] [-ThrottleLimit <Int32>] -HostNames <String[]> -Protocols

<FileSharingProtocol[]> -StorageSubSystemUniqueId <String[]> [<CommonParameters>]



New-StorageFileServer [-CimSession <CimSession[]>] [-FriendlyName <String>] [-ThrottleLimit <Int32>] -HostNames <String[]> -Protocols

<FileSharingProtocol[]> -StorageSubSystemName <String[]> [<CommonParameters>]



New-StorageFileServer [-CimSession <CimSession[]>] [-FriendlyName <String>] [-ThrottleLimit <Int32>] -HostNames <String[]> -Protocols

<FileSharingProtocol[]> [<CommonParameters>]





DESCRIPTION

The New-StorageFileServer cmdlet creates a file server for a specified Storage subsystem exposed by a Storage provider. For Windows network-attached

storage (NAS), this cmdlet enables the necessary roles and features to implement a scale-out file server instance on a cluster.



Not all systems support file servers other than the default.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or

Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-FriendlyName [<String>]

Specifies a friendly name for the file server. A friendly name is not required to be unique.



Some Storage subsystems do not allow a friendly name when creating a file server. In this scenario, the file server may be assigned a friendly name

by this operation.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-HostNames <String[]>

Specifies an array of names of access points for the file server.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Protocols <FileSharingProtocol[]>

Specifies the file sharing protocol. Valid values are: SMB, NFS, or both.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-StorageSubSystemFriendlyName <String[]>

Specifies the friendly name of the Storage subsystem to host the file server.



Required? true

Position? 1

Default value none

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-StorageSubSystemName <String[]>

Specifies the name of the Storage subsystem to host the file server.



Required? true

Position? named

Default value none

Accept pipeline input? true(ByPropertyName)

Accept wildcard characters? false



-StorageSubSystemUniqueId <String[]>

Specifies the unique ID of the Storage subsystem to host the file server.



Required? true

Position? named

Default value none

Accept pipeline input? true(ByPropertyName)

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is

entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the

computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS











OUTPUTS

Microsoft.Management.Infrastructure.CimInstance#MSFT_StorageFileServer









Example 1: Create a file server



PS C:\\>New-StorageFileServer -FriendlyName "SalesFiles" -StorageSubSystemFriendlyName "Sales-cluster" -HostName "salesfiles" -Protocol SMB

-ContinuouslyAvailabe $True



This command creates a scale-out file server on the sales-cluster subsystem.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816435

Get-StorageFileServer

Remove-StorageFileServer

Set-StorageFileServer