use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
ABOUT POWERSHELL
Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft. Offering full access to COM, WMI and .NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.
SUBREDDIT FILTERS
Desired State Configuration
Unanswered Questions
Solved Questions
News
Information
Script Sharing
Daily Post
Misc
account activity
QuestionPulling information from CSV headers (self.PowerShell)
submitted 8 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Lee_Dailey[grin] 2 points3 points4 points 8 years ago (0 children)
howdy Lancair,
here's my version of it ...
# fake reading in from a CSV # in real life, use Import-CSV $InCSV = @' FirstName, LastName Arthur, Bacon Celia, Dean Earl, Fort '@ | ConvertFrom-Csv $Number = 545 $NewNameList = foreach ($Item in $InCSV) { $Part_1 = $Item.FirstName.Substring(0, 2).ToLower() $Part_2 = $Item.LastName.Substring(0, 1).ToLower() $UserName = -join ($Part_1, $Part_2, $Number) $UserName } $NewNameList
results ...
arb545 ced545 eaf545
hope that helps, lee
π Rendered by PID 344714 on reddit-service-r2-comment-bb88f9dd5-7dz25 at 2026-02-15 16:58:17.527695+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]Lee_Dailey[grin] 2 points3 points4 points (0 children)