brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
170 stars 80 forks source link

Adjusted ServerRole when using SingleServerFarm #84

Closed farapholch closed 2 years ago

farapholch commented 2 years ago

Wrong serveRole specified, it should be 'SingleServer' not 'SingleServerFarm'.

brianlala commented 2 years ago

Hmm I haven't tested this yet, but according to this documentation it should still be "SingleServerFarm": https://docs.microsoft.com/en-us/sharepoint/administration/role-conversion-using-minrole-in-sharepoint-server-2016#how-to-change-a-server-role

farapholch commented 2 years ago

Hmm I haven't tested this yet, but according to this documentation it should still be "SingleServerFarm": https://docs.microsoft.com/en-us/sharepoint/administration/role-conversion-using-minrole-in-sharepoint-server-2016#how-to-change-a-server-role

Thanks for reply :)

I was unable to launch psconfig when the value SingleServerFarm was set for the registry key "Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0\WSS\ServerRole" but when I set this to "SingleServer" the wizard starts and I can proceed with the configuration.

See image below:

image

brianlala commented 2 years ago

What version of SharePoint is this happening on? Are you trying to run PSConfig manually, or in the context of AutoSPInstaller?

farapholch commented 2 years ago

What version of SharePoint is this happening on? Are you trying to run PSConfig manually, or in the context of AutoSPInstaller?

Hi, we are running SPSE and this fails both if I run it in the AutoSP Context (null reference value) or manually when starting psconfigUI.

brianlala commented 2 years ago

OK I'll try to repro now, stay tuned.

brianlala commented 2 years ago

If you do a Set-SPServer -Role and then tab through the options you should see BOTH SingleServer and SingleServerFarm. I'm assuming they're both valid and equivalent.

I just built a farm using SingleServerFarm and it worked fine. image

And when I checked the registry, my server role actually was listed as APPLICATION even though central admin and PowerShell both report Single-Server Farm.

I'm running Subscription Edition with the January PU.

farapholch commented 2 years ago

If you do a Set-SPServer -Role and then tab through the options you should see BOTH SingleServer and SingleServerFarm. I'm assuming they're both valid and equivalent.

I just built a farm using SingleServerFarm and it worked fine. image

And when I checked the registry, my server role actually was listed as APPLICATION even though central admin and PowerShell both report Single-Server Farm.

I'm running Subscription Edition with the January PU.

Thanks for looking into this. The Registry made me confused about this (Application) and I thought the value would be the same as the actual min role.

Not sure why we got the error in the first place but we can close this by now.