Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Set-PSDebug cmdlet runs incorrectly or Windows PowerShell scripts fail in Windows 8 or Windows Server 2012


View products that this article applies to.

This article describes issues that occur when you run the Set-PSDebug cmdlet or Windows PowerShell scripts in Windows 8, Windows RT, or Windows Server 2012. A hotfix is available to resolve this issue. Check out the list of issues that are fixed in this hotfix.

↑ Back to the top


Issues that are fixed in this hotfix

Issue 1

When you run Windows PowerShell scripts by using Task Scheduler tool, the scripts fail occasionally. 

Issue 2

Consider the following scenario:
  • You have a computer that is running Windows 8, Windows RT, or Windows Server 2012.
  • You add the Set-PSDebug cmdlet at the top of a Windows PowerShell script to trace the script lines.
In this scenario, the debug trace only shows for the line right after the Set-PSDebug cmdlet. If you use the Windows PowerShell command-line interface to run the script, the debug trace is correct after the script runs for the first time.  

↑ Back to the top


Resolution

To resolve this issue, install update rollup 2984005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2984005 September 2014 update rollup for Windows RT, Windows 8, and Windows Server 2012

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about the Set-PSDebug cmdlet, go to the following Microsoft website:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: kb, kbqfe, kbfix, kbsurveynew, kbexpertiseadvanced

↑ Back to the top

Article Info
Article ID : 2987854
Revision : 1
Created on : 1/7/2017
Published on : 9/9/2014
Exists online : False
Views : 279