Skip to content

Instantly share code, notes, and snippets.

@JohnLBevan
Created October 21, 2014 15:47
Show Gist options
  • Save JohnLBevan/4ca2138aea2785fbcad9 to your computer and use it in GitHub Desktop.
Save JohnLBevan/4ca2138aea2785fbcad9 to your computer and use it in GitHub Desktop.
Reverse an array in powershell
$a = ipconfig
$a
# Reverse array contents and then output it again:
[array]::Reverse($a)
$a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment