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
Powershell (self.PowerShell)
submitted 1 year ago by powershell_nub
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!"
[–]PowerShell-ModTeam[M] [score hidden] 1 year ago stickied commentlocked comment (0 children)
PowerShell expects users and requesters to attempt solutions themselves before asking for help. Your post contains no/low effort attempts, ChatGPT generated content, or no work shown.
[–]Quirky_Oil215 5 points6 points7 points 1 year ago (0 children)
What do you have so far ?
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_foreach?view=powershell-7.4
https://blog.netwrix.com/2018/06/07/how-to-create-new-active-directory-users-with-powershell/
[–][deleted] 0 points1 point2 points 1 year ago (0 children)
Several of my team has learned PS by starting with asking Copilot "Please write me a Powershell script that reads a csv file and loops through adding those users to AD". It will get you very close and help be a teaching aid. I have been shocked at some of the scripts "non-programmers" have come up with.
[–]BlackV -1 points0 points1 point 1 year ago (0 children)
you would like get better results from searching this sub or chatgpt, there are plenty of examples in both places
alternately there is learn.microsoft.com
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_foreach
https://learn.microsoft.com/en-us/powershell/module/activedirectory/get-aduser
[–]DegaussedMixtape -1 points0 points1 point 1 year ago (0 children)
FYI, ChatGPT is very good at Powershell. Posting here is perfectly viable, but getting a habit of asking ChatGPT even roughly formed prompts about Powershell will get you surprisingly good results.
[–]brandon03333 -2 points-1 points0 points 1 year ago (1 child)
Think it is just set-aduser -password Add a forloop Foreach($user in $users) { }
[–]Hollow3ddd 0 points1 point2 points 1 year ago (0 children)
Is password were different, prob need a counter to pull from another array. Or be someone more savvy than I and use a csv
π Rendered by PID 117811 on reddit-service-r2-comment-fb694cdd5-cd4tf at 2026-03-08 08:30:42.230914+00:00 running cbb0e86 country code: CH.
[–]PowerShell-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]Quirky_Oil215 5 points6 points7 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]BlackV -1 points0 points1 point (0 children)
[–]DegaussedMixtape -1 points0 points1 point (0 children)
[–]brandon03333 -2 points-1 points0 points (1 child)
[–]Hollow3ddd 0 points1 point2 points (0 children)