Peter Kriegel

Results 11 comments of Peter Kriegel

@mklement0 I even thank you very much for your excellent post. @all thank you for the high quality discussion. I came here on my research of PowerShell event Logging (especially...

@iSazonov I do not understand why you pointing me to the PowerShell Repo. I am fully aware that I am here in the **Docs** section and the topic is >...

@iSazonov O now i see! Thank you very much, for the welcome and your kind words to me! Back to topic... :-)

I found 2 Documents that can help us with this topic. We can link or reuse the content of those writings: PowerShell Practice and Style, Best-Practices, Error-Handling https://github.com/PoshCode/PowerShellPracticeAndStyle/blob/master/Best-Practices/Error-Handling.md An Introduction...

@mklement0 thank you for your response. Because I had read ALL cross references out of this discussion thread I am aware of most of your facts inside your response. In...

The choice Feature was there ever since PowerShell and will be stay (forever) i think, because it is console the native runtime Environment of PowerShell. So i think it makes...

Hi Dan, If I understand correctly, your Module rely on the "old" .NET Tokenizer!? [System.Management.Automation.PSParser:]:Tokenize() This .NET Tokenizer, knows only 20 different token types. Since in PowerShell 3, a new...

I had even no luck with Get-Content :-( The following produces only chaos with or without -readcount `Invoke-Formatter -ScriptDefinition (Get-Content -Path 'C:\MyFile.ps1' -ReadCount 0)`

@bergmeister Thank you! -raw does it! This works even fine fo me: ``` # Replace whole text in current file with formatted text $psise.CurrentFile.Editor.Text = Invoke-Formatter $psise.CurrentFile.Editor.Text ``` testing with...

I can now live with Get-Content -Raw but it is ugly and was not intuitively to find out. I work often with code found on the Internet even with Modules...