WNottsC
asked on
powershell stopped working on SBS 2011
I have just run Sharepoint 2010 management shell and it comes up with an error of powershell stopped working.
some of the details
InnermostExceptionType System.BadimageFormatExcep tion
some of the details
InnermostExceptionType System.BadimageFormatExcep
ASKER
none of these seem to work still comes up with powershell has stopped working
ASKER
do I need to restart any services
ASKER
this may actually not be a powershell issue.
If I navigate to Windows\System32\WindowsPo werShell\v 1.0 or the same but WOW64 and run powershell.exe then it loads fine it is just the SharePoint 2010 Management Shell
If I navigate to Windows\System32\WindowsPo
ASKER
At the same time the CompanyWeb has stopped working and also the Sharepoint 2010 Timer service and Sharepoint 2010 VSS Writer service have both stopped running and I get an error when trying to start them
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this has still not worked does it need the "\\" on "Registration\\sharepoint. ps1"
yes have you tried with "\\" ?
ASKER
yes and it still does not work.
If I change it so that it looks like this it at leasts opens sysWOW64
C:\Windows\sysWOW64\Window sPowerShel l\v1.0\pow ershell.ex e -Version 2.0 -NoExit " & ' C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\CONFIG\POWER SHELL\Regi stration\\ sharepoint .ps1 ' "
I know this is not correct could it be an issue with my profile because it is trying to open up
PS C:\Users\support
If I change it so that it looks like this it at leasts opens sysWOW64
C:\Windows\sysWOW64\Window
I know this is not correct could it be an issue with my profile because it is trying to open up
PS C:\Users\support
ASKER
I have just tried a few things and I am getting confused.
Other sites are saying that it is because Windows Management Framework 3.0 update has been applied.
http://msmvps.com/blogs/bradley/archive/2012/12/12/do-not-install-2506143-optional-wmf-3-0-patch-on-your-sbs-2011.aspx
http://blog.ronnypot.nl/?p=960
however I can not see this installed
I have also run get-host in powershell and it is showing the version as 2.0 so this sounds like the update is not installed.
The issue only happens in Sharepoint Management shell if I run this command in Powershell I get the powershell has stopped working
Add-PSSnapin Microsoft.Sharepoint.power shell
Any ideas
Other sites are saying that it is because Windows Management Framework 3.0 update has been applied.
http://msmvps.com/blogs/bradley/archive/2012/12/12/do-not-install-2506143-optional-wmf-3-0-patch-on-your-sbs-2011.aspx
http://blog.ronnypot.nl/?p=960
however I can not see this installed
I have also run get-host in powershell and it is showing the version as 2.0 so this sounds like the update is not installed.
The issue only happens in Sharepoint Management shell if I run this command in Powershell I get the powershell has stopped working
Add-PSSnapin Microsoft.Sharepoint.power
Any ideas
ASKER
The reason I have given this a B and not A is because it has not provided me with a Solution but has provided me with an idea of how to test things
From this site:
http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/4001dc42-8ce9-40df-b0d3-3d851696c9b5
then create powershell_ise.exe.config
From this site:
http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/9b6ae6cb-d146-478d-be1e-abfd02a25521
http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/04cb7c11-53c0-4753-a830-f9f02de97c99