Windows PowerShell command on Get-command New-StorageFileServer
MyWebUniversity

Windows PowerShell command on Get-command New-StorageFileServer

NAME

New-StorageFileServer

SYNOPSIS

Creates a storage file server.

SYNTAX

New-StorageFileServer [-StorageSubSystemFriendlyName] [-CimSession ] [-FriendlyName

] [-ThrottleLimit ] -HostNames -Protocols []

New-StorageFileServer [-CimSession ] [-FriendlyName ] [-ThrottleLimit ] -HostNames

-Protocols -StorageSubSystemUniqueId []

New-StorageFileServer [-CimSession ] [-FriendlyName ] [-ThrottleLimit ] -HostNames

-Protocols -StorageSubSystemName []

New-StorageFileServer [-CimSession ] [-FriendlyName ] [-ThrottleLimit ] -HostNames

-Protocols []

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

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

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

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

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

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

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

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

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



Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 OurUNIX.com ™