سؤال

I'm trying to get an output from a powershell command. However The output is truncated.

[PS] >Get-QADGroup "admins"

Name                           Type            DN
----                           ----            --
Admins                         group CN=Admins,OU=Profiles,OU=Groups,OU=Sw...

How do I tell this shell wannabe not to truncate its data?

هل كانت مفيدة؟

المحلول

Get-QADGroup "admins" | Ft -autosize -wrap

If space console is to small try:

Get-QADGroup "admins" | Fl name,type,dn

edit:

Get-QADGroup "admins" | Ft -autosize | out-string -width 4096 

نصائح أخرى

This will prevent all output result truncating -

  • Run this and first to view the default enumeration limit.
    $FormatEnumerationLimit

  • Set the above to -1 to avoid truncating $FormatEnumerationLimit=-1

I had the same issue - I increased the buffer size and window size of the powershell window I was running the commands in. It did not truncate in the powershell window nor the output file.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top