Michael Klement
Michael Klement
There's something usual going on on your system, given that the `Microsoft.PowerShell.Archive` module is _bundled_ with PowerShell 7 and the bundled version should be auto-loaded when you call `Expand-Archive`, for...
When I run `"C:\Program Files\PowerShell\7\pwsh.exe" -noprofile -c $env:PSModulePath` on my 7.4.5 system from `cmd.exe`, my `$env:PSModulePath` entries are ordered differently: ``` C:\Users\jdoe\Documents\PowerShell\Modules C:\Program Files\PowerShell\Modules c:\program files\powershell\7\Modules C:\Program Files\WindowsPowerShell\Modules C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules ```...
If `$PSHome` is `C:\Windows\System32\WindowsPowerShell\v1.0` in your PowerShell 7 session, i.e. if it is the `$PHSOME` value of _Windows PowerShell_ rather than what it should be, `'C:\Program Files\PowerShell\7'`, there is something...
Given your lack of responses on Stack Overflow, I'm personally not interested in helping you any further.
@theking2: I didn't think I needed to spell it out: Just as on Stack Overflow, my contributions here are voluntary. You ignored my attempts to help you on Stack Overflow,...
@237dmitry, the point is that applying `-WhatIf` to `Test-Tee` by design is translated into a function-local copy of `$WhatIfPreference` with value `$true`, and that the latter causes the subsequent call...
@Chirishman, the original issue, #6920, was tagged as `Up-for-Grabs`. While, unfortunately, community PRs can languish for a long time too, submitting one for issues tagged this way is still the...
@237dmitry, your code directly contradicts your claim that the common parameter and the preference variable _aren't_ related: It shows that `-WhatIf` is translated into a function-local `$WhatIfPreference` copy with (what...
Yes, but I'd frame it slightly differently: `Tee-Object` is designed _not_ to support `-WhatIf` and therefore is meant _not_ to be affected by `$WhatIfPreference`, but - due to an _implementation_...
Some interesting ideas, for sure. As for your terminology question: I think _object graph_ or _nested objects_ would work. Conceptually related with respect to interchangeable use of `IDictionary`-implementing types and...