Error: PowerShell ISE stopped working

PowerShell Integrated Scripting Environment is a very powerful and useful tool to create and debug PowerShell scripts. After installing some security patching and IRM component it stopped working and would crash:

The issue is related to the corrupt GlobalUserInterface.CompositeFont file. This causes PowerShell ISE. It also effects other WPF applications to fail as well. See this article: https://github.com/dotnet/announcements/issues/53.

We used the Solution 3:

Replace GlobalUserInterface.CompositeFont Manually

Manually replace corrupted font file with correct version.

  1. Download GlobalUserInterface.CompositeFont (default download for Windows 7 is %USERPROFILE%\Downloads).
  2. Launch cmd as Administrator and navigate to %windir%\Microsoft.NET\Framework\v4.0.30319\WPF\Fonts and run:
    xcopy /y %USERPROFILE%\Downloads\GlobalUserInterface.CompositeFont .
    (or copy and paste the GlobalUserInterface.Composite file through Windows Explorer to %windir%\Microsoft.NET\Framework\v4.0.30319\WPF\Fonts)
  3. Launch cmd as Administrator and navigate to %windir%\Microsoft.NET\Framework64\v4.0.30319\WPF\Fonts and run:
    xcopy /y %USERPROFILE%\Downloads\GlobalUserInterface.CompositeFont .
    (or copy and paste the GlobalUserInterface.Composite file through Windows Explorer to %windir%\Microsoft.NET\Framework64\v4.0.30319\WPF\Fonts).
  4. Re-launch the application.
  5. Reboot machine and re-launch application if you still have trouble.
##
##
xcopy /y GlobalUserInterface.CompositeFont %windir%\Microsoft.NET\Framework\v4.0.30319\WPF\Fonts
xcopy /y GlobalUserInterface.CompositeFont %windir%\Microsoft.NET\Framework64\v4.0.30319\WPF\Fonts
##
##

 

That was another page in the Chronicles of SharePoint Bits, happy scripting!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: