Step by Step Windows Server 2019 File Server Clustering With PowerShell or GUI

Installing the Cluster is easy now days. But just this I post a little blog on do this, In my blog stats it shows that the 2012 post is still very active , so time for an update to 2019. in the creation there isn't much changed, it gets only easier. but If you still not in PowerShell you got more clicks to do an less Coffee. And Windows is also a great addition to manage a cluster. This blog post is also usable in Azure Only you need to add Storagespacesdirect and a CSV file share.

Just install a bare metal (VM) 2019 and do a domain join and the fun can start.

Installing the Cluster Feature in powershell

Install-WindowsFeature –Name Failover-Clustering –IncludeManagementTools

#Create cluster validation report
Test-Cluster -Node MVP19-01,MVP19-02

#Create new Cluster
New-Cluster -Name MVP1911-27 -Node MVP19-01,MVP19-02 -NoStorage -StaticAddress ""

#place witness file on USB device from my router

Set-ClusterQuorum -FileShareWitness SERVERSHARE -Credential $(Get-Credential)

Now that the basic cluster is ready we start with the HA share


File share witness enhancements We enabled the use of a file share witness in the following scenarios:

  • Absent or extremely poor Internet access because of a remote location, preventing the use of a cloud witness.
  • Lack of shared drives for a disk witness. This could be a Spaces Direct hyperconverged configuration, a Always On Availability Groups (AG), or an * Exchange Database Availability Group (DAG), none of which use shared disks.
  • Lack of a domain controller connection due to the cluster being behind a DMZ.
  • A workgroup or cross-domain cluster for which there is no cluster name object (CNO). Find out more about these enhancements in the following post in Server & Management Blogs: Failover Cluster File Share Witness and DFS.We now also explicitly block the use of a DFS Namespaces share as a location. Adding a file share witness to a DFS share can cause stability issues for your cluster, and this configuration has never been supported. We added logic to detect if a share uses DFS Namespaces, and if DFS Namespaces is detected, Failover Cluster Manager blocks creation of the witness and displays an error message about not being supported.

that's it the cluster is created, we can start with the File server

Next is installation of the file server role


A restart is needed! After the restart we can build the cluster with the HA file share

$servers = ("MVP19-01", "MVP19-02") 
foreach ($server in $servers) {Install-WindowsFeature -Name file-services -ComputerName $server}

Now that the File Server Role is added we can add the Disk. Or use a disk that you already added before.

First we need to add a disk this can be done in the Failover Cluster manager or with PowerShell

image image

Get-ClusterAvailableDisk | Add-ClusterDisk


The Roles are there and the Disk is added


Next step is adding the File server Role to the Cluster and add the HA File Share.

In this case I have a fail over disk and I use the File Server for general use.


image image

So when adding the Disk it is not showing the disk. This is The disk is added to the cluster but the disk isn't formatted!


Keep in mind that formating the cluster disk while it is online is not possible. You need to set the disk in maintenance mode else the format will fail.

image image

So after the disk format we will see the Disk appear and can be added to the File server


After this the File server is up and running. As you can see the setup is screen intense, building this with PowerShell is a lot faster.


add-ClusterFileServerRole -Storage "Cluster Disk 1" -Name MyFiles

New-SmbShare -Name "Data" -Path "J:Data" -EncryptData $True

Quick steps with powershell and even the share is created and


Next step is adding the file share.


go for the Quick setup


Pick the disk and select the folder with the data on the disk, if there is no data then create a folder that will hold the data later.


as you can see the UNC path from the File Server.

image image

As you can see the settings can be adjusted for you needs and also set the right access, and keep in mind this needs to be don on the Cluster Level!


All Done


So creating a File Server and 2 file shares is Click intensive if you don't use PowerShell.

But What about Windows Admin Center ? yes that would be an option also except here you can't create a cluster role.

cluster management in Windows Admin Center


You can create a new role but no file server /share etc.

But when the share is created and running like now you can use Windows for migration the data to the file share.


But more and more options are coming in Windows below are some links that you can use to add your request to the UserVoice

More Coming

Failover cluster management in Windows Admin Center is actively under development and new features will be added in the near future. You can view the status and vote for features in UserVoice:

Feature Request

Show more clustered disk info

Support additional cluster actions

Support converged clusters running Hyper-V and Scale-Out File Server on different clusters

View CSV block cache

See all or propose new feature


Follow Me on Twitter @ClusterMVP

Follow My blog

Linkedin Profile Robert Smit MVP Linkedin profile

Google  : Robert Smit MVP profile


This article was originally published by Microsoft's Secure Blog. You can find the original article here.