Skip to content

Instantly share code, notes, and snippets.

@Jackbennett
Created April 22, 2015 08:33
Show Gist options
  • Save Jackbennett/e25a7d255d8df471d630 to your computer and use it in GitHub Desktop.
Save Jackbennett/e25a7d255d8df471d630 to your computer and use it in GitHub Desktop.
$dir
<#
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 4/22/2015 8:41 AM 1067 unameA - Shortcut.lnk
-a--- 4/22/2015 8:35 AM 1060 unameB - Shortcut.lnk
-a--- 4/22/2015 8:39 AM 1067 unameC - Shortcut.lnk
-a--- 4/22/2015 8:40 AM 1060 unameD - Shortcut.lnk
#>
$list
<#
givenname surname samaccountname
--------- ------- --------------
foo Bar unameA
junk name unameB
test data unameC
example also unameD
#>
# Combine the lists to result in;
gci -filter *.lnk
<#
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 4/22/2015 8:41 AM 1067 foo bar.lnk
-a--- 4/22/2015 8:35 AM 1060 junk name.lnk
-a--- 4/22/2015 8:39 AM 1067 test data.lnk
-a--- 4/22/2015 8:40 AM 1060 example also.lnk
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment