Created
December 1, 2021 20:38
-
-
Save JohnL4/d162ff631f3cef5031e172d62f7ebb98 to your computer and use it in GitHub Desktop.
Get file info including ownership in PowerShell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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