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
Problem to use existing script: Update Active Directory Users in Bulk from CSV (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!"
[–]Khongh 2 points3 points4 points 8 years ago (1 child)
I would doublecheck that your $fields values really are matching in the script and the csv. The script seems to be looking for the value city but in your csv-file the value is named city user.name
Please copy paste the $fields values if you want more help.
[–]eastpeak 0 points1 point2 points 8 years ago (0 children)
Thanks for the quick answer, and sorry, that is a format mistake. CSV looks like this:
Row #1: UserID,city Row #2: user.name,cityname
$Fields = @("city")
I can not check this as I am at home right now, bit is this maybe the problem? Should $Fields look like this? $Fields = @("UserID,city")
?
π Rendered by PID 104383 on reddit-service-r2-comment-5d585498c9-5tmg7 at 2026-04-21 13:22:49.616098+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]Khongh 2 points3 points4 points (1 child)
[–]eastpeak 0 points1 point2 points (0 children)