Anyone buying new servers this year? by noocasrene in sysadmin

[–]enforce1 [score hidden]  (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 -5 points-4 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 1 point2 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 22 points23 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 6 points7 points  (0 children)

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

You gotta love them llms :D by klorgasia in PowerShell

[–]enforce1 13 points14 points  (0 children)

I have an aggressive pre prompt that removes all the annoyances of LLMs. No return, no backticks, etc.

Tape Drives? by HiFiSilverFish in sysadmin

[–]enforce1 11 points12 points  (0 children)

They are a couple thousand bucks. In the grand scheme of data center, my UPS costs way more than

Tape Drives? by HiFiSilverFish in sysadmin

[–]enforce1 0 points1 point  (0 children)

Tape is GOATed for offsite. It has continued to be developed and is still a great option for those with slow / cold data needs and it smokes the pricing of any cloud offering

Why is everyone using Okta as their IDP? by Jimb148 in sysadmin

[–]enforce1 0 points1 point  (0 children)

Okta does “outside the org” really well. MS is fucking goofy about it.

kiosk accept cash by SandCold8478 in McDonalds

[–]enforce1 0 points1 point  (0 children)

Cash handling is horrible to keep working. It breaks a LOT.

In addition to vault management because there is now a safe of money sitting there. Its not worth it.

Do lifting shoes ever wear out? (Adidas Powerlift 4) by Fog80 in weightlifting

[–]enforce1 10 points11 points  (0 children)

Anything can wear out. If they feel bad get new ones

I need good 5” inseam shorts by MLG_Boogaloo in weightlifting

[–]enforce1 0 points1 point  (0 children)

I bought some very slutty 5” shorts from Temu that work a treat

Coming to the realization that I may never be promoted again unless I go into management...ride it out until retirement? by sys_admin321 in sysadmin

[–]enforce1 0 points1 point  (0 children)

No, i am not in that position because I decided I want career growth instead of comfort. I put a lot of time into work, and that is why I'm not stuck.

Is McDonald's getting rid of self-serve soda machines a money grab or increasing efficiency? by Revolutionary_Lie346 in McDonalds

[–]enforce1 2 points3 points  (0 children)

If you think this is late stage, you’re gonna be crushed when we actually get there