I do Technical Support for two businesses; a small ISP and a large University. On the side I run a Minecraft server, fiddle in various Linux distros, and program (mostly Ruby).
|
Jun
13 |
|
comment |
How can I summarize an object the same way Format-List does? How many times must you ignore the portion of the comment that says Threads is just one of many examples. I need a function that reads the formatting metadata stored in the format documents and can print many different objects in a clear and succinct way. Threads is not even one of them! It's just an easy example that everyone has access to (I'm actually more intereted in AD, Exchange, and O365 objects). I do not want to write 50 special cases when the work has already been done... but I do not know how to use that metadata to do the output formatting that Format-List does. |
|
Jun
13 |
|
comment |
How can I summarize an object the same way Format-List does? Definitely useful, but the goal is to have a way to retrieve that text after the colon directly, without text hacks and Format-List. Most of the objects I would like to manipulate already have good formatting information... but there is no function that reads that metadata except the Format-* cmdlets.
|
|
Jun
13 |
|
revised |
How can I summarize an object the same way Format-List does? typo |
|
Jun
13 |
|
revised |
How can I summarize an object the same way Format-List does? significant additional details and clarified |
|
Jun
12 |
|
comment |
How can I summarize an object the same way Format-List does? Get-Process is a cmdlet, but Threads is not. I am not sure you are understanding the difference between a command and the data it returns. |
|
Jun
12 |
|
comment |
How can I summarize an object the same way Format-List does? I'm a bit confused by your terminology; Threads is not a cmdlet, it is a collection of objects. It has no code associated with it directly. The Format-List cmdlet is somehow capable of reformatting a wide variety of collections of objects. Is this functionality externally available? Your workaround has a lot of extra unrelated text. |
|
Jun
12 |
|
comment |
How can I summarize an object the same way Format-List does? That would work for this specific case only... I cannot imagine that Format-List has 500 methods to handle all the different types of collections used in the various cmdlets. I specifically need to be able to pass an arbitrary collection; Threads is just an example. |
|
Jun
12 |
|
asked | How can I summarize an object the same way Format-List does? |
|
Jun
10 |
|
awarded | Enlightened |
|
Jun
10 |
|
awarded | Nice Answer |
|
Jun
6 |
|
comment |
Why does Remove-ADGroupMember default to requiring confirmation? I'm aware of how to pass a parameter to a switch... but the question is why are they using a switch parameter in the first place? Switch parameters are meant to be absent (off) or present (on). That is their function, and because of that the :$parameter syntax is (rightfully) rarely used and poorly documented.
|
|
Jun
6 |
|
comment |
Why does Remove-ADGroupMember default to requiring confirmation? I should also note @TheCleaner that a -Switch that does nothing (when present it has the same behavior as when absent) is far more confusing than a switch with a negative name such as -NoConfirm.
|
|
Jun
6 |
|
revised |
Why does Remove-ADGroupMember default to requiring confirmation? Edited to add mention of -Force switch, as mentioned in a comment. |
|
Jun
6 |
|
comment |
Why does Remove-ADGroupMember default to requiring confirmation? Thank you MDMoore, that is an excellent re-phrasing of my question, and quite accurate. |
|
Jun
5 |
|
comment |
Why does Remove-ADGroupMember default to requiring confirmation? This does explain how to pass a value to a switch parameter. It does not explain the reasoning for a command to include a switch parameter that does nothing unless you use an unusual syntax that is never used except in this odd case of a bad default setting. |
|
Jun
5 |
|
comment |
Why does Remove-ADGroupMember default to requiring confirmation? Both answers are relevant. I am asking why the AD cmdlet requires an obscure (passing values to switch arguments is obscure) syntax to work normally. Was it deliberate? Is there a reason they chose not to have a -NoConfirm? I am just annoyed and frustrated wasting a few hours hunting down an answer to a problem that shouldn't have been an issue in the beginning. Why bother with a -Switch parameter that cannot even be used as a straight switch parameter? |
|
Jun
5 |
|
awarded | Popular Question |
|
Jun
5 |
|
asked | Why does Remove-ADGroupMember default to requiring confirmation? |
|
May
23 |
|
answered | How do I decode the x500 address in a bounce message, so I can add it to a user's account? |
|
May
23 |
|
comment |
Most recent message on top in a Gmail conversation I didn't tell him he should never change it; only that he should give it a try before asking immediately to change it, since Gmail has unique usability enhancements to chronological ordering that many other clients do not. |