iRon7
iRon7
See: https://github.com/PowerShell/PowerShell/issues/20126 For objects like: `$a = '[[1, 2], [3, 4],[5,6]]' | ConvertFrom-Json` Instead of: ```PowerShell $a = '[[1, 2], [3, 4],[5,6]]' | ConvertFrom-Json $a[0] | Join $a[1] | Join...
Stackoverflow: https://stackoverflow.com/questions/76721639/compare-arrays-in-powershell ```PowerShell $Array1 = ConvertFrom-SourceTable ' Srvname Loginname sid passwordhash Srv1 L1 0xdbc 0xfsfhdfh Srv2 L2 0xdbe 0xfsfhdfe Srv3 L3 0xdbc 0xfsfhdfd' $Array2 = ConvertFrom-SourceTable ' Srvname Loginname sid...
See; https://stackoverflow.com/questions/76534806/parsing-files-and-replacing-matching-entries-based-on-single-element Feature #43 should exclude ScriptBlocks (or only include strings): ```PowerShell $File1 = @' 2 "Key1" "ContentAASD#@!" | 3 "Key2" "Conte111111#@!" | 4 "Key112" "Keep me" | '@ -Split...
Based on feature #43 Actual: ```PowerShell 1,2,3 | FullJoin 2,3,4 -On Left -eq Right Left Right ---- ----- 1 1 2 2 3 3 4 4 ``` Expected: ```PowerShell 1,2,3...
### Prerequisites - [X] Write a descriptive title. - [X] Make sure you are able to repro it on the [latest released version](https://github.com/PowerShell/PowerShell/releases) - [X] Search the existing issues. -...
The **PowerShell practice and style** guide has a rule for: [Avoid Using Semicolons (`;`) as Line Terminators](https://poshcode.gitbook.io/powershell-practice-and-style/style-guide/code-layout-and-formatting#avoid-using-semicolons-as-line-terminators). I wonder whether there is a general readability recommendation for **avoid Using Semicolons...
**Summary of the new feature** `[ScriptBlock]`s might contain both single and double quotes therefore it would makes sense to accept a `ScriptBlock` for the `-ScriptDefinition` parameter so that it isn't...
**Summary of the new feature** Currently the `-Fix` parameter is mutual exclusive with the `-ScriptDefinition` parameter: ```PowerShell Invoke-ScriptAnalyzer -ScriptDefinition 'GCI *' -Fix ``` > `Invoke-ScriptAnalyzer: Parameter set cannot be resolved...
**Summary of the new feature** Strings are immutable. Each addition to the string actually creates a new string big enough to hold the contents of both the left and right...