Comments for Keith Hill's Blog https://rkeithhill.wordpress.com Just another WordPress.com site Mon, 02 Dec 2024 19:49:16 +0000 hourly 1 http://wordpress.com/ Comment on Make-PS1ExeWrapper by Roy Elliott https://rkeithhill.wordpress.com/2010/09/21/make-ps1exewrapper/#comment-28782 Mon, 02 Dec 2024 19:49:16 +0000 http://rkeithhill.wordpress.com/2010/09/21/make-ps1exewrapper#comment-28782 Lovely posst

]]>
Comment on Effective PowerShell Item 7: Understanding “Output” by PowerShell doesn’t return an empty array as an array – w3toppers.com https://rkeithhill.wordpress.com/2007/09/16/effective-powershell-item-7-understanding-output/#comment-28745 Mon, 15 May 2023 11:09:24 +0000 http://rkeithhill.wordpress.com/2007/09/16/effective-powershell-item-7-understanding-output#comment-28745 […] function doesn’t work because PowerShell returns all non-captured stream output, not just the argument of the return statement. An empty array is mangled into $null in the […]

]]>
Comment on Windows PowerShell 2.0 String Localization by Temporarily change powershell language to English? – w3toppers.com https://rkeithhill.wordpress.com/2009/10/21/windows-powershell-2-0-string-localization/#comment-28727 Thu, 27 Apr 2023 05:45:26 +0000 http://rkeithhill.wordpress.com/2009/10/21/windows-powershell-2-0-string-localization#comment-28727 […] The code was gratefully adapted from this venerable blog post; it is […]

]]>
Comment on Effective PowerShell Item 16: Dealing with Errors by How to stop a PowerShell script on the first error? - ErrorsFixing https://rkeithhill.wordpress.com/2009/08/03/effective-powershell-item-16-dealing-with-errors/#comment-27335 Sun, 19 Dec 2021 03:33:13 +0000 http://rkeithhill.wordpress.com/2009/08/03/effective-powershell-item-16-dealing-with-errors#comment-27335 […] exit code. Most follow the UNIX standard of 0 indicating success but not all do. Check out the CheckLastExitCode function in this blog post. You might find it […]

]]>
Comment on Minidump Crash Analysis with PowerShell by rkeithhill https://rkeithhill.wordpress.com/2006/08/14/minidump-crash-analysis-with-powershell/#comment-26987 Thu, 19 Aug 2021 17:40:26 +0000 http://rkeithhill.wordpress.com/2006/08/14/minidump-crash-analysis-with-powershell#comment-26987 In reply to Altaf.

I wasn’t sure I’d be able to find that script from **15** years ago but I did. Here’s that function:

function ExtractExceptionCode([string[]]$output) {
    $ndx = -1
    $xml = ""
    for ($i = 0; $i -lt $cdbOutput.Length; $i++) {
        if ($i -eq $ndx) {
            $cdbOutput[$i] -match "code\s+(?[a-fA-F0-9]{8})" > $null
            if ($?) {
                $xml += $matches.code
                break;
            }
        }
        elseif ($cdbOutput[$i] -match "accessed via \.ecxr\.") {
            $ndx = $i + 1;
        }
    }
    $xml += ""
    $xml
}
]]>
Comment on Minidump Crash Analysis with PowerShell by Altaf https://rkeithhill.wordpress.com/2006/08/14/minidump-crash-analysis-with-powershell/#comment-26986 Thu, 19 Aug 2021 12:54:34 +0000 http://rkeithhill.wordpress.com/2006/08/14/minidump-crash-analysis-with-powershell#comment-26986 What is the code in ExtractExceptionCode function?

]]>
Comment on Windows PowerShell and Named Pipes by Inter-Process Communication with Named Pipes between Python and PowerShell – Majornetwork https://rkeithhill.wordpress.com/2014/11/01/windows-powershell-and-named-pipes/#comment-26781 Sat, 22 May 2021 15:46:11 +0000 http://rkeithhill.wordpress.com/?p=360#comment-26781 […] Windows PowerShell and Named Pipes by Keith Hill […]

]]>
Comment on Scripting Guys Blog Posts on Using Visual Studio Code for PowerShell Development by schizofrenico https://rkeithhill.wordpress.com/2017/02/19/scripting-guys-blog-posts-on-using-visual-studio-code-for-powershell-development/#comment-26765 Sat, 24 Apr 2021 01:53:45 +0000 http://rkeithhill.wordpress.com/?p=589#comment-26765 … and do you know something about Richard Siddaway? Is he still safe and healthy?

]]>
Comment on Scripting Guys Blog Posts on Using Visual Studio Code for PowerShell Development by rkeithhill https://rkeithhill.wordpress.com/2017/02/19/scripting-guys-blog-posts-on-using-visual-studio-code-for-powershell-development/#comment-26738 Sat, 27 Mar 2021 19:20:30 +0000 http://rkeithhill.wordpress.com/?p=589#comment-26738 In reply to schizofrenico.

Yes! 🙂 Just spend my considerably less free time contributing to the posh-git module.

]]>
Comment on Scripting Guys Blog Posts on Using Visual Studio Code for PowerShell Development by schizofrenico https://rkeithhill.wordpress.com/2017/02/19/scripting-guys-blog-posts-on-using-visual-studio-code-for-powershell-development/#comment-26736 Sat, 27 Mar 2021 10:33:55 +0000 http://rkeithhill.wordpress.com/?p=589#comment-26736 are you still alive?

]]>