Hi,
The type of $ClusterIP is System.Net.IPAddress and it has to be System.String.
$Clustername=Read-Host "What is the Failover Cluster Name "
[string]$ClusterIP=Read-host "What is the Failover Cluster IP"
$Hostname=[System.Net.Dns]::GetHostName()
New-Cluster -Name $Clustername -Node $Hostname -StaticAddress $ClusterIP
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.