Skip to content

Instantly share code, notes, and snippets.

@JohnLBevan
Created February 14, 2018 08:14
Show Gist options
  • Select an option

  • Save JohnLBevan/c14dbdeaea2177e9dc345eccc5b4bc62 to your computer and use it in GitHub Desktop.

Select an option

Save JohnLBevan/c14dbdeaea2177e9dc345eccc5b4bc62 to your computer and use it in GitHub Desktop.
When `Format-Table` has to truncate data / you need more screen width to output to, run this to create more space / enable horizontal scrolling
#show the current screen buffer size
$Host.UI.RawUI.BufferSize
#update the current screen buffer size
$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size (500, 0) #(width, height)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment