Home
%3CLINGO-SUB%20id%3D%22lingo-sub-755797%22%20slang%3D%22en-US%22%3EHelp!%20My%20Powershell%20script%20isn't%20working!%20Can%20you%20fix%20it%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755797%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20AskPerf%20blog%2C%20Travis%20Gradert%20here%20from%20Microsoft%20Customer%20Services%20and%20Support.%20I%20handle%20quite%20a%20number%20of%20Powershell%20cases%20for%20our%20support%20team%2C%20and%20have%20noticed%20that%20we%20get%20a%20lot%20of%20cases%20where%20customers%20are%20asking%20for%20help%20with%20things%20that%20we%20do%20not%20support.%20I%20wanted%20to%20write%20here%20to%20help%20explain%20what%20we%20do%20and%20do%20not%20handle%20in%20our%20support%20team%20when%20it%20comes%20to%20Powershell.%20The%20easy%20part%20of%20this%20is%20that%20we%20do%20not%20support%20custom%20or%203%3CSUP%3Erd%3C%2FSUP%3Eparty%20scripts.%20There%20is%20no%20support%20for%20the%20creation%20of%20a%20script.%20CSS%20representatives%20may%20put%20in%20a%20best%20effort%20to%20you%20as%20the%20customer%2C%20however%20engineers%20may%20not%20have%20the%20expertise%20required.%3C%2FP%3E%0A%3CP%3EInstead%20of%20engaging%20a%20Customer%20Services%20and%20Support%20team%2C%20if%20you%20are%20a%20premier%20customer%20and%20have%20a%20Technical%20Account%20Manager%2C%20they%20should%20be%20contacted%20to%20engage%20Microsoft%20Consulting%20Services%20for%20the%20creation%20or%20debugging%20of%20a%20custom%20or%203%3CSUP%3Erd%3C%2FSUP%3Eparty%20script.%3C%2FP%3E%0A%3CP%3E%5Bnote%20scripts%20found%20in%20the%20Powershell%20Gallery%20are%20not%20supported%20scripts.%20Issues%20with%20scripts%20need%20to%20be%20addressed%20with%20the%20author%2C%20found%20on%20the%20page%20where%20the%20script%20was%20downloaded.%5D%3C%2FP%3E%0A%3CP%3ESo%20what%20is%20and%20is%20not%20supported%3F%20If%20a%20specific%20cmdlet%2C%20or%20the%20Powershell%20engine%20itself%20seems%20to%20be%20having%20an%20unexpected%20failiure%2C%20Customer%20Support%20and%20Services%20will%20be%20able%20to%20assist%20and%20work%20towards%20resolution%20of%20the%20failure.%20Below%20are%20some%20examples%20of%20supported%20requests.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EA%20specific%20Powershell%20cmdlet%20with%20appropriate%20parameters%20returns%3A%3COL%3E%0A%3CLI%3ENo%20result%3C%2FLI%3E%0A%3CLI%3EAn%20unexpected%20result%20(missing%20or%20extraneous%20data)%3C%2FLI%3E%0A%3CLI%3EAn%20error%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EThe%20engine%2Fconsole%20fails%20to%20load%20or%20crashes%3C%2FLI%3E%0A%3CLI%3EConfiguration%20and%20Customization%20of%20the%20console%3C%2FLI%3E%0A%3CLI%3ERemote%20Connectivity%20and%20Authentication%3C%2FLI%3E%0A%3CLI%3EMicrosoft-Provided%20DSC%20Resources%20fail%20unexpectedly%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EExamples%20of%20Unsupported%20requests%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ECreate%20script%20to%20perform%20%E2%80%9CX%E2%80%9D%20action.%3C%2FLI%3E%0A%3CLI%3EReview%20%E2%80%9CX%E2%80%9D%20script%20to%20determine%20a%20cause%20of%20a%20failure.%20No%20script%20debugging%20has%20been%20performed%2C%20issue%20hasn%E2%80%99t%20been%20isolated%20to%20a%20specific%20commandlet.%3C%2FLI%3E%0A%3CLI%3ECreate%20DSC%20configuration%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%E2%80%99d%20like%20to%20provide%20some%20links%20that%20I%20think%20are%20helpful%20when%20looking%20for%20assistance%20with%20Powershell%20Scripts%3A%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1792500478%22%20id%3D%22toc-hId-1792501153%22%3EScript%20Debugging%20Resources%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FH2%3E%0A%3CP%3E%3CSTRONG%3EUsing%20ISE%20to%20debug%20scripts%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fcomponents%2Fise%2Fhow-to-debug-scripts-in-windows-powershell-ise%3Fview%3Dpowershell-6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fscripting%2Fcomponents%2Fise%2Fhow-to-debug-scripts-in-windows-powershell-ise%3Fview%3Dpowershell-6%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ERemote%20Runspace%20Debugging%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2Fpowershell-runspace-debugging-part-1%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2Fpowershell-runspace-debugging-part-1%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ETranscription%20and%20Logging%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fblogs.technet.microsoft.com%2Fashleymcglone%2F2017%2F03%2F29%2Fpractical-powershell-security-enable-auditing-and-logging-with-dsc%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fblogs.technet.microsoft.com%2Fashleymcglone%2F2017%2F03%2F29%2Fpractical-powershell-security-enable-auditing-and-logging-with-dsc%2F%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.host%2Fstart-transcript%3Fview%3Dpowershell-6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.host%2Fstart-transcript%3Fview%3Dpowershell-6%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EMeasuring%20Command%20Performance%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.utility%2Fmeasure-command%3Fview%3Dpowershell-6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fmicrosoft.powershell.utility%2Fmeasure-command%3Fview%3Dpowershell-6%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-755797%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3EScript%20review%20and%20script%20creation%20requests%3C%2FFONT%3E%2C%20and%20supportability%20within%20Microsoft%20Customer%20Services%20and%20Support%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

Hello AskPerf blog, Travis Gradert here from Microsoft Customer Services and Support. I handle quite a number of Powershell cases for our support team, and have noticed that we get a lot of cases where customers are asking for help with things that we do not support. I wanted to write here to help explain what we do and do not handle in our support team when it comes to Powershell. The easy part of this is that we do not support custom or 3rd party scripts. There is no support for the creation of a script. CSS representatives may put in a best effort to you as the customer, however engineers may not have the expertise required.

Instead of engaging a Customer Services and Support team, if you are a premier customer and have a Technical Account Manager, they should be contacted to engage Microsoft Consulting Services for the creation or debugging of a custom or 3rd party script.

[note scripts found in the Powershell Gallery are not supported scripts. Issues with scripts need to be addressed with the author, found on the page where the script was downloaded.]

So what is and is not supported? If a specific cmdlet, or the Powershell engine itself seems to be having an unexpected failiure, Customer Support and Services will be able to assist and work towards resolution of the failure. Below are some examples of supported requests.

  1. A specific Powershell cmdlet with appropriate parameters returns:
    1. No result
    2. An unexpected result (missing or extraneous data)
    3. An error
  2. The engine/console fails to load or crashes
  3. Configuration and Customization of the console
  4. Remote Connectivity and Authentication
  5. Microsoft-Provided DSC Resources fail unexpectedly

Examples of Unsupported requests

  1. Create script to perform “X” action.
  2. Review “X” script to determine a cause of a failure. No script debugging has been performed, issue hasn’t been isolated to a specific commandlet.
  3. Create DSC configuration

 

I’d like to provide some links that I think are helpful when looking for assistance with Powershell Scripts:

Script Debugging Resources

Using ISE to debug scripts

https://docs.microsoft.com/en-us/powershell/scripting/components/ise/how-to-debug-scripts-in-windows...

Remote Runspace Debugging

https://devblogs.microsoft.com/powershell/powershell-runspace-debugging-part-1/

Transcription and Logging:

https://blogs.technet.microsoft.com/ashleymcglone/2017/03/29/practical-powershell-security-enable-au...
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.host/start-transcript?view=p...

Measuring Command Performance:

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/measure-command?view...