What is the average installation time?
You have a few minutes, which is on the installation screen.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
I checked here, the error was the name of the cluster, after the fix worked perfectly.
@gabrielluizbh Thanks for confirming that your issue was resolved!
Did the script just hand with the incorrect cluster name, or did it throw an error? If we can improve the error handling, we will.
After several attempts to try to run the script, we find that we must first execute script unlock on all nodes in the cluster.
I ran the following commands on all nodes in the cluster.
Get-ExecutionPolicy -List
Get-ExecutionPolicy -ScopeMachine
Set-ExecutionPolicy Unrestricted -Scope LocalMachine
More information:
Today repeat the same procedure of executing scipt but unfortunately, again the script does not perform correct form. Please Jeff Woolslayer take away my doubt about what can be running because one hour the script performs correctly another time does not run.
for those where the Installation just gets stuck, it's because of the following line:
$process = [System.Diagnostics.Process]::Start($processSInput)
change it to:
$process = Start-Process msiexec.exe -ArgumentList ('/I ' + $processSInput.FileName + ' ' + $processSInput.Arguments).ToString() -Wait -NoNewWindow -Passthru
Somehow the script is not able sometimes to find the MS Installer.
Also make sure you enable Script execution as mentioned above (if it still doesnt work):
Set-ExecutionPolicy Unrestricted -Scope LocalMachine
Set-ExecutionPolicy Unrestricted -Scope Process