brianlala / AutoSPInstaller

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

sharepoint pssnapin lose backend? #11

Open McAndersDK opened 6 years ago

McAndersDK commented 6 years ago

Hey I am having an issue with the installation of Sharepoint 2016 on Windows server 2016.

It Seems powershell randomly will lose the connection to Sharepoint, so the sharepoint Cmdlets dont return anything, not even an error. PS C:\Windows\system32> Get-SPWebApplication PS C:\Windows\system32> Get-SPWebApplication -Verbose VERBOSE: Leaving BeginProcessing Method of Get-SPWebApplication. VERBOSE: Leaving ProcessRecord Method of Get-SPWebApplication. VERBOSE: Leaving EndProcessing Method of Get-SPWebApplication. PS C:\Windows\system32>

I can then launche a new Sharepoint powershell window, and do the same, and get the expected result. removing and adding the pssnapin dont help.

McAndersDK commented 6 years ago

Okey, it just after the run-psconfig step. Something in that break the already added poweshell snapin. :(

brianlala commented 6 years ago

I'm noticing this too quite frequently. Only with SP2016, and possibly only on Server 2016 as well. Everything works fine in 2013. Even some of my other scripts (AutoSPUpdater) have issues where the "connection" to the PSSnapin gets lost and cmdlets no longer run. Also, frustratingly inconsistent!

Brian

McAndersDK commented 6 years ago

Hmm it seems to somehow connected to a language pack installationen that are not "done" correctly, the Danish language pack are not populating the da-dk in HKLM:\SOFTWARE\Microsoft\Office Server\16.0\InstalledLanguages\

So AutoSPInstaller try to installed it every time, and this will kick psconfig to run again, and break the snapin.

Do this ring a bell on ur side Brian? :)

brianlala commented 6 years ago

Unfortunately it doesn't - but I think the real question is, why does PSConfig break the snapin...?

McAndersDK commented 6 years ago

I have created a support case with microsoft :) lets see what they find out :)

All powershell windows that is open while psconfig run will stop working. Only new consoles after it finish will work.

brianlala commented 6 years ago

Excellent, let me know what happens!

Brian

Sent from Mail for Windows 10

From: McAndersDK Sent: October 20, 2017 9:32 AM To: brianlala/AutoSPInstaller Cc: Brian Lalancette; Comment Subject: Re: [brianlala/AutoSPInstaller] sharepoint pssnapin lose backend?(#11)

I have created a support case with microsoft :) lets see what they find out :)

All powershell windows that is open while psconfig run will stop working. Only new consoles after it finish will work.

MVH Anders Andersson

Den 20. okt. 2017 kl. 18.26 skrev Brian Lalancette notifications@github.com<mailto:notifications@github.com>:

Unfortunately it doesn't - but I think the real question is, why does PSConfig break the snapin...?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/brianlala/AutoSPInstaller/issues/11#issuecomment-338255553, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ANo3EpyMAhwOQE1L7rczvdUcwOBzx9tpks5suMmhgaJpZM4P-5CV.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

McAndersDK commented 6 years ago

They could reproduce the "bug", they wanted an Business Impact, for starting a potential fix for it. Still pending response on the BI.

Only workaround suggested is to start a new powershell session after PSconfig is done.

brianlala commented 6 years ago

Interesting! Do you have a case number by chance, so I can track it internally? You can email it to me if you prefer.

McAndersDK commented 6 years ago

Sure :) 117102016527014

brianlala commented 6 years ago

Found it, thanks!