r/SCCM • u/noaccess • 1d ago
Anyone using Claude code?
Anyone using Claude code with powershell for sccm or other sys admin roles?
I've been fairly impressed with what it can do, assuming you have the proper read access and start off carefully. Just curious what the community has been doing with it because I don't see much online about it.
13
Upvotes
47
u/Soltkr-admin 1d ago
I haven’t allowed Claude to actively do anything yet but it’s really great at reading my SCCM logs and pinpointing issues I am troubleshooting.
8
u/SuperMangMang 1d ago
I'm not allowed to use anything agentic in my real work but I have it doing lots of admin on my home network including configmr lab.
I've been building a gateway as a control point and to manage credentials, log all actions etc. Using it as an opportunity to learn how to implement agentic tools securely.
Its all honestly amazing
14
u/An0mymou5 1d ago
Yeah, it's been a massive, massive help for SCCM, AD and general sysadmin work. Been giving some of our older scripts a some polish and smarts. Most recently I completely revamped our patch remediation script to give it a lot of smarts that apply a different set fixes based on the SCCM error code, as well as giving it a fancy GUI dashboard - which also doubles up as a replacement for the Monitoring tab (which is slow and clunky and doesn't summarize the whole deployment).
In terms of SCCM, I've written a whole bunch of functions/modules that are way, way faster than the official powershell module which is slow and a PITA to use (like... why do I even need to switch to a "site:" drive first, completely pointless).
Have also used it to troubleshoot WMI corruption issues on devices. In the past I'd blow away the whole repository (when /salvage fails) which is less than ideal of course, but now I'm able to do surgical fixes like recompiling the exact MOFs/dlls that's broken.
Wrote scripts that do proper clean driver uninstalls for some tricky drivers, scripts that pull up the driver versions and paths for a particular class of device (like audio, graphics etc) which makes it easy to compare and verify driver versions. Bunch of scripts for secure boot CA2023 remediation. Bunch of scripts to do a clean uninstall and reinstall of tricky apps like Teams. And several other, way too many to name.
13
u/tabris-angelus 1d ago
I'm thinking about getting Claude to create a SCCM MCP server.
I've connected the Microsoft learn connector to Claude and it's real good at creating scripts for SCCM
4
u/Maleficent-Umpire201 1d ago
Im running a custom system management portal on top of wsus with backend powershell. Connected claude code in VS code and acting as a IDE.
So I have my entire fleet(azure and onprem) servers and vms in control.
I also have made a agent which is running on these servers for patch control, automatic software deployment, monitoring and reporting.
Ultimately its a vibe coded app but tested by internal red team.
4
u/Reaction-Consistent 1d ago
I run claude with no restrictions in a hyper-v lab, with the Microsoft 0365 windows deployment hydration kit. I have it develop various tools for me in there, test them in a moc environment, then I sync the code with my github, and finally deploy it in my prod environment, after approval. I have made a CM maintenance app (to help identify/remove old/unused apps, packages, collections, etc.) a driver packaging automation tool (similar to modern driver management...but the difference is, this one works with our security apps with no problems or adjustments.) I made an OS patching tool - again, similar to others, but tailored to a wider variety of OS versions and with a few other enhancements that we needed. I'm working on a 3rd party app packaging tool (yep, those are out there as well..but they all have some aspect that presents a challenge or complexity we just don't want to deal with or work around because it requires additional security adjustments.) Claude works fast, spits out working code every time...tested, ready to go. It's been an amazing tool to work with for sure!
12
u/redvelvet92 1d ago
Uhhh yeah and at this point I’m thinking I’ll use it to build a better SCCM.
3
u/Xrora 1d ago
Not Claude but after I fed it the proper logs, copilot told me the reason sccm can't patch 2025 with offline servicing is that the label for the image is another product code and that's why it can't find any patches for it.
3
u/dgmayor 23h ago
I use Claude daily, but I'm not quite ready to use Claude code and connect it with anything.. I still do everything in the base Claude on the web and copy/paste any code into a new file.
It's been remarkable, to be honest. I'm just not going to hand it the keys to anything directly.
5
u/FactorFear74 1d ago
No
2
u/turboturbet 1d ago
Yes being used Claude and gemini with psadt v4 app packaging and task sequences like driver scripts, variables, front-end for naming etc and bios management
2
u/Tilt23Degrees 22h ago
anyone who isn't doing this at this point is going to be without a job in a year
2
u/eqtitan 16h ago edited 16h ago
Yes, daily, for about a year. Enterprise Windows environment: ConfigMgr + Intune co-management, PSADT, GPO/AD. Some of what it's helped with:
Infrastructure
Packaging / deployment
Troubleshooting
Run books / docs
What makes it work
Biggest lesson: it's great at log parsing and building scripts with guardrails. Still review every line. It will confidently assume things about your environment until you correct it.
2
u/siconic 9h ago
It's AMAZING for day to day SCCM and Powershell. You won't regret it. At $30/minth, I almost never cap out my tokens.
1
u/74Yo_Bee74 1d ago
What level Claude are you using.
1
u/meesersloth 1d ago
It’s helpful for niche stuff I use.
1
u/Incrediblecodeman 1d ago
Can Claude connect to sccm or ?
1
u/bearded-beardie 1d ago
I use GitHub Copilot and Google Antigravity extensions to write code and scripts frequently. It's definitely sped up my workflow considerably as it can type a lot faster than I can. I've generally found the coding works best if you actually know what you're doing and can accurately describe what you need to do. Also need to know what you're doing so you can see when it's wrong. I spend a not insignificant amount of time arguing with the AI models why they're wrong, or why it has overcomplicated a script. Especially as I'm iterating and see it leave code in there that's not actually being used after changes.
I also find that almost every time I would logically add a parameter to powershell script it doesn't do it the first go, but it'll almost always add one when I don't care about having one.
ETA: the big benefit is I can multitask while it's writing the script. Or I can fire off quick edit prompts while in a meeting.
1
u/SevenandahalfBatmans 1d ago
heck yeah. Built a new front end for my task sequences to replace UI++ that lets me set the computername, the OU, the department (listing the software that will be installed because of it), and add any misc. software needed.
Also built a wrapper for the USMT tools that lets us remotely back up profile(s) and restore them to a new computer, along with custom XMLs for those weird edge cases.
Also built a web front end so techs could track the status of their task sequences and see if any steps failed. This one is admittedly the weakest of the three tools I've built so far, having a hard time with CM consistently returning the final status of the TS.
1
u/Usual-Chef1734 23h ago
Are you kidding? I have automated ALL of that category of work.
1
u/Duffield_Najuf 23h ago
The thing that worries me is not the model being wrong. it is that we approve these scripts in about the time it takes to skim them. A two hundred line baseline script that goes out to eleven thousand machines gets a yes because it looks like the last one
In sccm the blast radius is the whole estate and there is no undo, so i am fine with it reading logs, and i am not fine with it writing anything that runs on a machine it did not build in a lab first
1
u/globalrebel 17h ago
I've been using it only in a ask it a question read its output and make a decision situations.
I can provide logs from time to time, but I would never allow it access or give it control in any way shape or form. I just don't trust any agent at this point within the access in a corporate environment.
could just be me though.
1
u/absoluteczech 1d ago
Yes it’s great but I use it for personal stuff and vibe coding personal projects. I don’t use it at work though.
-8
u/h0serdude 1d ago
I built a better version of SCCM from scratch using Claude. It's basically the best parts of PDQ and SCCM combined. Agent based, handles inventory, ACME, software deployment, and lots of other useful things.
And no, I didn't so this recklessly. Started small, constantly testing security and hardening it as I went along adding features.