Uncategorized

Powershell Has Stopped Working

I recently installed windows updates on our XenApp PVS 6.1 images.  This was on Server 2008 r2, there was probably about 40 of them.  I booted the images up and over the weekend and had no issues.  Then again the number of people using it was very low.

Then comes Monday and everyone starts using the servers and the reports of the error messages start coming in.  We tried rebooting the servers and the errors would go away for about an hour and half.  Then they would start again.

Image

What made this even more of an issue is we have a scheduled task that runs every 10 min for each user that logs in and backs up specific files to a unc path.

So now every 10 min user’s were getting this message.  It took a little while to find the issue because I was searching for a problem with windows updates.  While I’m still not sure which windows update triggered any issue with powershell I was able to find the solution based on the specific powershell error.

Solution is as follows:

Create a file “powershell.exe.config” in the C:\Windows\System32\WindowsPowerShell\v1.0

In the file include the following.  It did not require me to reboot.  Also the file did not exist for me either.  If it does exist, edit it and make sure the contents is the same.

<?xml version="1.0"?>
<configuration>
	<startup useLegacyV2RuntimeActivationPolicy="true">
		<supportedRuntime version="v4.0.30319"/>
		<supportedRuntime version="v2.0.50727"/>
	</startup>
</configuration>

– TG

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s