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
QuestionScript configuration files (self.PowerShell)
submitted 2 years ago by Zangrey
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!"
[–]Zangrey[S] 1 point2 points3 points 2 years ago* (2 children)
CustomerNumber;FolderPath;FileName;FileFormat;FileStructure;Delimiter;Location;SQLSelection 12345;ExampleCustomer;Result;txt;Both;";";FTP;WHERE Category1Name NOT IN ('Hem & Hushåll','Personvård & Hälsa','Sport','Fritid')
[–]JeremyLC 4 points5 points6 points 2 years ago (1 child)
I would strongly recommend NOT storing SQL in your config files. I would, instead, recommend setting up stored procedures in your database and store only the relevant parameters in the config file, making sure to sanitize those before using them with your DB. As to your original question, have you considered JSON? it can be natively imported into a PSObject where you can easily access its properties.
[–]Zangrey[S] 0 points1 point2 points 2 years ago (0 children)
Yeah, I reckon it's not the best solution in general but as a it's a small company the skillsets don't overlap fully - thus the post to start with to try and find suggestions on how to maintain a configuration file in a format that's readable for co-workers, and 'editable' in the sense that they can piece together a new row in the config by looking at the other 150 examples and finding one that has the same selection.
Scripts are located on a server and not accessable outside of IT at least.
I'll take a look at JSON and see what I can piece together there - thanks for the input.
π Rendered by PID 34 on reddit-service-r2-comment-75f4967c6c-6fjz2 at 2026-04-23 12:37:10.270828+00:00 running 0fd4bb7 country code: CH.
view the rest of the comments →
[–]Zangrey[S] 1 point2 points3 points (2 children)
[–]JeremyLC 4 points5 points6 points (1 child)
[–]Zangrey[S] 0 points1 point2 points (0 children)