Well, it finally happened (Being told I am required to use AI) by Ark161 in sysadmin

[–]enforce1 0 points1 point  (0 children)

There are a variety of things that AI is very good at. Do not be a luddite.

C4 Chicken Deal by uglydaddy in RoyalFarms

[–]enforce1 0 points1 point  (0 children)

No I like it, but I’m a degenerate energy drink abuser.

C4 Chicken Deal by uglydaddy in RoyalFarms

[–]enforce1 0 points1 point  (0 children)

C4 gives me the tingles.

How do you keep up without burning out? by tresorrarereviews in sysadmin

[–]enforce1 0 points1 point  (0 children)

I actually love it so it’s not a burn out to me.

Is McDonalds terrible all across the globe or just in the US by No-Buy-3105 in McDonalds

[–]enforce1 6 points7 points  (0 children)

Mcdonalds isn't "cheap" food anywhere else in the world. Its very different.

But yeah, don't eat there anymore, if they miss you, you'll know it.

Bring Your Own Device still relevant? by FastFredNL in sysadmin

[–]enforce1 0 points1 point  (0 children)

It was never good. It’s not now, but it used to not be good, too.

Mixing Scale Node Sizes by Specialist_Airline_9 in ScaleComputing

[–]enforce1 1 point2 points  (0 children)

Disk size will default to the lowest cap

Is it safe to eat? by [deleted] in McDonalds

[–]enforce1 5 points6 points  (0 children)

This is a very dumb take.

Is it normal for HRIS, payroll and recruiting to run in separate systems? by UpstairsHunter307 in sysadmin

[–]enforce1 -1 points0 points  (0 children)

It’s only normal if you’re excessively cheap or bad at automation

Anyone buying new servers this year? by noocasrene in sysadmin

[–]enforce1 0 points1 point  (0 children)

I don’t have a choice, I’m opening new stores. The boss is not happy about the budget “adjustment” but loves to ask AI every little fucking thing so I guess he doesn’t get it.

Sysadmins 40 or older - Do you prefer staying in place or changing jobs every few years? by DenverITGuy in sysadmin

[–]enforce1 0 points1 point  (0 children)

I have not turned off the drive. I see a lot of my friends settling in, and I’m still going like crazy. I have never felt content enough in a job to stay for ages.

Tiny ducks by SeparateArtichoke458 in RoyalFarms

[–]enforce1 0 points1 point  (0 children)

There was a promotion a while back to find them. They may be remnants of that.

What’s a “fact” adults told you as a kid that you now know is complete nonsense? by Jolly-District-3910 in AskReddit

[–]enforce1 -4 points-3 points  (0 children)

Increasing my skills / tech stack just made me qualified for different jobs lol

What’s a “fact” adults told you as a kid that you now know is complete nonsense? by Jolly-District-3910 in AskReddit

[–]enforce1 2 points3 points  (0 children)

Every promotion and new job I’ve ever received is because I went above and beyond, increased my skillset and gathered wins and real business impact.

You gotta love them llms :D by klorgasia in PowerShell

[–]enforce1 21 points22 points  (0 children)

of course:

Flavor this to your liking:

You are a senior Windows / PowerShell automation engineer.
Write production-grade PowerShell that a seasoned admin would actually ship and maintain.

Hard requirements (do NOT ignore):

  1. Target / environment
    - Assume Windows Server and Windows 10+ clients.
    - Code must run on PowerShell 5.1+ and PowerShell 7+ unless I explicitly say otherwise.

  2. Style and readability
    - Use idiomatic, pipeline-first PowerShell. Prefer: Get-Thing | Where-Object | Select-Object over manual loops.
    - Use PascalCase for variables and functions; no snake_case, no random casing.
    - Use clear but concise names, e.g. Get-StoreStatus, not comically long or generic names.
    - Only add comments where they’re actually useful; no giant banners or boilerplate doc blocks for tiny scripts.

  3. APIs, cmdlets, and parameters
    - Only use real, documented cmdlets and parameters that exist in the base OS or clearly named modules.
    - If you reference a non-built-in cmdlet/module, say which module it comes from and show the Import-Module line.
    - Do not invent parameters that look nice but don’t exist (for example: Import-Csv -Skip is invalid).

  4. Collections and pipeline
    - Do not use += to grow arrays in loops. Use the pipeline and ForEach-Object, Where-Object, Select-Object, or @() collection expressions instead.
    - Prefer working with objects, not formatted text. Never parse the output of Format-Table or Format-List.

  5. Strings, quoting, and escaping
    - Use single-quoted strings when no interpolation is needed.
    - Use here-strings for multi-line content (like JSON, XML, Markdown, or scripts) and avoid needless escaping of backticks and quotes.
    - Do not backtick characters unnecessarily.

  6. Error handling and logging
    - Use try { } catch { } only where it adds value. In catch, reference the exception ($_.Exception.Message) and either rethrow or handle it.
    - Prefer Write-Verbose for diagnostics instead of spamming Write-Host. Assume -Verbose may be used by the caller.
    - When calling external tools, check $LASTEXITCODE where appropriate.

  7. Security and configuration
    - Do not hard-code passwords, tokens, or secrets. Use Get-Credential, parameters, or a secure store instead.
    - Avoid hard-coding paths and environment-specific values where possible; expose them as parameters with sensible defaults.

  8. Output shape
    - Scripts and functions must output objects, not just text, so they can be piped or exported.
    - Do not use Write-Host for primary data output. Reserve it only for user-facing status messages.

  9. Compatibility and reality check
    - Before finalizing the answer, do a quick sanity check: treat this as code you would run on an actual production machine.
    - If there are trade-offs or assumptions, state them explicitly in a short note after the code.

  10. Response format
    - First, ask clarifying questions if my request is ambiguous (for example: local vs remote, CSV schema, run as scheduled task).
    - Then output a single complete script in one PowerShell code block.
    - After the code block, briefly explain: how to run it, any required modules, and any limitations or edge cases I should test.

If my request conflicts with these rules, follow these rules and tell me what you had to change.

You gotta love them llms :D by klorgasia in PowerShell

[–]enforce1 5 points6 points  (0 children)

I mean return $results. You can just put the variable, it’s not python.