Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created December 1, 2021 20:38
Show Gist options
  • Save JohnL4/d162ff631f3cef5031e172d62f7ebb98 to your computer and use it in GitHub Desktop.
Save JohnL4/d162ff631f3cef5031e172d62f7ebb98 to your computer and use it in GitHub Desktop.
Get file info including ownership in PowerShell
ls Collabor8*/*Collabor8*.ecube -rec | sel LastWriteTime,Length,@{N="Owner";E={$_.GetAccessControl().Owner}},FullName | ft -au -wr
# Note the nested {} on the expr value (code block?).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment