Output options #21
Replies: 5 comments 5 replies
-
|
Do you mean an option to replace the Unicode (i.e. ├ and └) with ASCII (i.e.|- and `-)? If that's the case, I could tackle the implementation, would need to decide on a parameter. I could see using |
Beta Was this translation helpful? Give feedback.
-
|
@figueroadavid Can you share an example of how the characters look when pasted from clipboard? Really lazy to turn on a VM just to test 😅. I'd also like to know what GUI application are we talking about here, because even Notepad renders these characters just fine. Exporting to CSV / XLSX also works well. @poshAJ I'm fine with this as long as there is a valid reason to implement it. I think the Option 2 is the one that looks better but I'll let you decide which you like best... To implement this, we should probably change |
Beta Was this translation helpful? Give feedback.
-
|
I had tried it in Outlook - I piped the output to clip.exe and then pasted it into an email. The extended ASCII characters were showing up as question marks. I'll get a screenshot on Monday. I like @poshAJ 's suggestion.. those look great. Thanks! David F. |
Beta Was this translation helpful? Give feedback.
-
|
I tried it out this morning with Set-Clipboard and in someways it was better and in someways it was worse. With clip.exe it kept the basic structure, but the drawing characters were replaced with ? instead. I even pasted it into notepad++ and got the same results - clip kept the structure and lost the drawing characters while set-clipboard lost the structure and only pasted the list of dn's. |
Beta Was this translation helpful? Give feedback.
-
|
With (Get-ADTreeStyle).OutputRendering = 'PlainText' # No ANSI
(Get-ADTreeStyle).RenderingStyle = 'Classic' # No Unicode
|
Beta Was this translation helpful? Give feedback.



Uh oh!
There was an error while loading. Please reload this page.
-
The output uses the ASCII drawing characters to delineate the tree which is great for onscreen display. However, these don't copy/paste well into normal GUI applications. I'd love to see an option to output the tree using more "normal" characters that would display better. Ideally, I'm thinking characters from the "standard" Courier New font would be a good way. I would pipe it into the clipboard and paste it.
But thanks for the great module 🙂
Beta Was this translation helpful? Give feedback.
All reactions