It's been a royal bastard to get working but I finally completed an Azure automation to run daily and disable all accounts which haven't been used for 45 days.
All secrets are stored in a key vault so there's only configuration information, not secrets or passwords in the script.
Managers of suspended standard users get emails or of the user has no manager it goes to IT security. Privileged users are summarised in a csv delivered to IT security.
Would have been done days ago but for some unknown reason connect-azaccount behaves badly in some scenarios.
I did this too last month. I didn’t have any issues with connect-azaccount my issue was entirely with connect-mggraph. What did you end up having to do for yours to fix yours?
Mine was versioning on the Microsoft.graph modules. I ended up downgrading to 2.25.0.
are you doing this for members or guests or both? We went down the rabbit hole of doing this for guest objects but the sign in data for them was not reliable, confirmed by MS support.
What if: Performing the operation "log in" on target "ManagedService account in environment 'AzureCloud'".
In Azure Automation: nothing.
So when you turn on whatif mode at the top of your script, so you can run your script without disabling every account in the tenant, the code 300 lines away doesn't effing print anything (check the docs, it's supposed to) and everything AFTER that says "call Connect-AzAccount first". Which you did, but it won't work ever.
$Deity only knows why Connect-AzAccount needs to handle ShouldProcess, since it doesn't make changes.
Root cause: WhatIf in Azure Automation doesn't print anything because it's apparently a separate stream.
Note that I'm calling REST APIs directly and Invoke-RestMethod won't natively handle ShouldProcess - so the specific calls check status. Didn't expect the Connect call to fail in this way.
✔ Built a gaming optimization engine that auto-detects GPU vendor (NVIDIA/AMD/Intel) and cleans shader caches accordingly ✔ Implemented reversible Windows service tuning (profiles + automatic rollback) ✔ Added a process-scanning module to detect CPU hogs during gaming sessions ✔ Built safe RAM flushing using memory APIs (no risky “standby list nuking”) ✔ Integrated DNS/network stack reset routines for latency optimization
Also wrapped the whole PS project into an EXE and published a trial + pro version.
I used PowerShell Universal to build a simple web app to lookup the location of recent (or even active) 9-1-1 calls and plot their location (or route as they move!) on a map. It's meant to be a tool of last resort if better, more feature complete tools aren't available. I was even able to use a little CSS to seamlessly extend the built-in zoom control to include additional buttons to control map behavior. It looks fairly simple, but has a fair amount of work going on under the hood. Also, it's (mostly) mobile friendly.
PowerShell Universal - You can build quite a bit with it. I definitely recommend you look into it. It's useful for building UIs for automations, building automations, and even building programmable web APIs. It has Github integration, SSO integration, multiple backend DB options, and a LOT more. I have no affiliation with Iron Man or Devolutions, I'm just a very happy user.
For it to get the activity logs we need the MicrosoftGraphActivityLogs From diagnostic settings in Entra this part requires an entra id P1 or P2 tenant license unfortunately
oh awesome, I see the events in my log analytics. I had previously connected the workbook but guess I didn't give it time to populate. I'll play around with your module when I get chance. I'm guessing it queries the logs, compares used perms to assigned perms and spits out unused perms.
I didn't create anything new, but I did shove several scripts I previously wrote into Gemini and ChatGPT to see what it fixed/edited in them. Spent some time going through the new code to figure out how it works and I've learned a few new tips.
Its basically my first every script. Its simple but I'm proud of it.
I've got a share drive with lots of folders with numerical names. The main feature is that the script navigates me to the folder that I specify in the parameter
It's been fun trying to figure out how to video edit, work on my audio and finding my voice
Trying to make content that teaches actually useful automation and what tools to use. And it isn't just another course that teaches the basics was my main goal with the series.
Still a long journey to go before I have the content built to the point I want with more useful scripts on these platforms.
Built an http/https listening service, it listens for traffic on a specific port, it authenticates the incoming request (not storing them in plain text on script too which is nice 🤣). It then responds to the sending service (or denies them… if it’s incorrect) the service then sends specific data through, in pieces usually as JSON files, the powershell service, parses the incoming JSON data, organises and sticks them back together again and exports them into a CSV data set to be ingested by another set of automations.
I’m quite proud of this one, I built this service to accept and ingest data from multiple customers who use the same vendor, so it’s ‘modular’ and ‘customer agnostic’ too.
Nah, it runs as a scheduled task in Windows, and it uses the API to create new packages in Tanium. It only runs Winget to search for new version, and then it passes the version, package name and URL to Tanium.
Writing an Electron wrapper for PowerShell functions that allow any Sysadmin to create a PowerShell function and it can be exposed to a front end. The intention is for Juniors and Service Desk to be able to use custom scripts, and start poking around with writing functions, and lowering the barrier of entry.
Currently it supports AD Auth, Connect-EXO and does Graph authentication.
When I get something I can be a bit more proud of, I will send it your way. I am working out weird bugs right now, and its a hot mess haha. Lots of trial and error. I am not a front end guy by any stretch so this is me getting out of my comfort zone.
This inspired me to update the PS listener to use a named pipe, and a MMF request, as well as json. And hopefully what will be cool is I hooked that up to a Ollama ai and numerous other super cool features. I just have to fix the Kpopup ClipSaver in my KPopup listener, so it is auto-saving captured ai output in the correct text format (It was working perfectly, now I have to fix it again before release(.
Ingest and modify an SVG file using both simple text replacement and the PS XML tooling (to modify styles, filters, etc) based on data from 4 separate APIs, save said SVG file as a PNG, overlay that onto an RTSP stream and output to MPEG2 TS via multicast using ffmpeg, and then re-mux it (and also transcode to x264 using VLC because our IPTV STBs are super sensitive to codec/format/etc and VLC "just works") and pump out a different UDP MC TS. Also logging and error handling and reporting for each.
We have a client facing Excel report that I have to sort and format. I've been toying with Import-Excel for a couple of years and scripting took the process from 10-15 minutes down to around 3. I'm constantly amazed what I can do with Powershell as it pertains to Office Apps.
I've been getting prepped for Secure Boot certificate expiration next year, and Microsoft's Make2023BootableMedia.ps1 script does not appear to work on WinPE. I could not find a tool for updating an existing WinPE ISO to use the 2023 Secure Boot certificate. So I decided to reverse engineer what "MakeWinPEMedia.cmd /bootex" does to add boot manager files signed by 'Windows UEFI CA 2023'. Then I made a PowerShell script that updates an existing WinPE ISO rather than generate a completely new WinPE ISO.
i have created a script using AI (ofcorse), wich will show all installed apps on windows, it will show with gray the non removable apps and options to uninstall, uninstall for all users and uninstall for future users. the script needs admin runing https://github.com/romeotaranu/windows-debloat-script-GUI/tree/main
I put together a script that checks for all of the information related to the secure boot CA certificates being updated. That includes if it needs the update or if it's already done, if it needs a BIOS update first, if there are any errors and if so, translate the error code. Then it stores it all in WMI for SCCM to collect.
Here you go. I think Microsoft has one out there, but I wrote this prior to that. You also then need to add the new WMI class this creates (SecureBoot_UEFICA2023) to the SCCM hardware inventory.
I said fuck it and installed the cross-platform shell environment on Ubuntu, rather than dick around with learning bash from scratch to do basic things. Besides that, I used it to mock a prototype for a .NET crawler to download a few hundred thousand log files from a remote server.
I used it to interface with zabbix to generate a daily report. Powershell is one of the worst script languages ever created, its powerful but thats about it.
I recently built a small gaming optimizer in PowerShell as a side project — it cleans shader caches, does safe RAM flushing, tweaks a few Windows services, and has some network latency fixes. Ended up wrapping it all into a little EXE with a trial + full version just for fun.
For System Engineers managing ovirt or OLVM from Windows I was finally able to get PoSh-oVirt made officially available on the Oracle github samples website.
Created a set of functions for array manipulation to replace a bunch of processes that I'd use sheets or excel for.
-Concatenation
-Merging
-Cleaning
-Searching
-Patching (This one wouldn't be an excel equivalent, it just lets you specify a replacement/override for the value of a particular record, in the event that everything works perfect except for one thing and you don't want to change the everything for the one thing)
Had gemini put together a function for generating sampledata which has been super helpful to evaluate the above.
created a win32 package for intune to automate the registration process of an app thats used in our call center so the user can install the app and is ready to go (with custom credentials for every user)
started working on an script that creates outlook signature templates for outlook classic (retrieving data via Invoke-RestRequest from graph api)
and some minor cleanup scripts for the clients
generally learned a lot about working with api's, retrieving data from azure in safe way and how to handle scripts running under different users on a client
Working on creating an Unified GUI tool for ITAM group. Previously worked on individual GUIs and now clubbing them all together in one tool, just like browser tabs
I created offers the possibility to customize the office 365 installation. i can choose which applications to install, outlook classic or new cannot be removed, one of them must be installed otherwise I received some errors just run the script in powershell and a GUI will show up. anyone can edit the script and make updates and optimisations. https://github.com/romeotaranu/office-365-custom-install.git
Published a couple PowerShell projects this month:
LoraxMod - Tree-sitter AST parsing via PowerShell cmdlets. Built it because I wanted semantic diffs and structured code extraction across a bunch of languages. Uses TreeSitter.DotNet for native parsing - no Node.js dependency.
Also working on pwsh-repl - an MCP server for Claude Code that keeps PowerShell sessions alive. Variables persist across tool calls, includes AgentBlocks module with regex patterns for parsing build output (MSBuild, pytest, ESLint, etc.), and handles background processes with stdin control. Built it because Claude Code on Windows spawns a fresh pwsh instance every command - this gives it a proper REPL instead.
Ben... Pas grand chose. Je suis novice en la matière, et vraiment, j'ai du mal, j'ai beau faire, la plupart des commandes Power Shell que je cherche à utiliser sont régulièrement en erreur, sans que je comprenne pourquoi, parce que ces commandes sont reconnues et testées par ailleurs, et sont inscrites en copié collé via les sites sur lesquels je cherche à résoudre mes soucis informatique.
Pour le moment, je cherche à utiliser ViVeTool avec Power Shell, mais sans grande réussite. Pourtant, j'avais déjà réussi à désactiver une id de mise à jour Windows 11 pour me permettre de continuer d'utiliser QTTabBar. Là je retente la même opération avec une autre id sans succès. Je pêche quelque part, sans savoir où ...
14
u/VladDBA Dec 01 '25
More improvements to PSBlitz (currently finishing up the latest release).
Extract-SSMSSavedCredentials.ps1 - a script to extract and decrypt saved connection information from SQL Server Management Studio 21 and 22
Import-SSMS21ConnectionsToSSMS22.ps1 - a script to import saved connection information from SQL Server Management Studio 21 to 22.
11
u/VTi-R Dec 01 '25
It's been a royal bastard to get working but I finally completed an Azure automation to run daily and disable all accounts which haven't been used for 45 days.
All secrets are stored in a key vault so there's only configuration information, not secrets or passwords in the script.
Managers of suspended standard users get emails or of the user has no manager it goes to IT security. Privileged users are summarised in a csv delivered to IT security.
Would have been done days ago but for some unknown reason connect-azaccount behaves badly in some scenarios.
6
u/Healthy_Builder6471 Dec 01 '25
Mostly PowerShell automation work:
✔ Built a gaming optimization engine that auto-detects GPU vendor (NVIDIA/AMD/Intel) and cleans shader caches accordingly ✔ Implemented reversible Windows service tuning (profiles + automatic rollback) ✔ Added a process-scanning module to detect CPU hogs during gaming sessions ✔ Built safe RAM flushing using memory APIs (no risky “standby list nuking”) ✔ Integrated DNS/network stack reset routines for latency optimization
Also wrapped the whole PS project into an EXE and published a trial + pro version.
Learned a ton and PowerShell is still underrated.
5
u/JeremyLC Dec 01 '25
I used PowerShell Universal to build a simple web app to lookup the location of recent (or even active) 9-1-1 calls and plot their location (or route as they move!) on a map. It's meant to be a tool of last resort if better, more feature complete tools aren't available. I was even able to use a little CSS to seamlessly extend the built-in zoom control to include additional buttons to control map behavior. It looks fairly simple, but has a fair amount of work going on under the hood. Also, it's (mostly) mobile friendly.
4
u/-Mynster Dec 01 '25
I released a new module to audit your MSGRAPH application permission based on usage.
Module name:
LeastPrivilegedMSGraph
Linkedin post:
https://www.linkedin.com/posts/mortenmynster_powershell-bestsellertech-mggraph-activity-7399416766080204800-dlNL?utm_source=share&utm_medium=member_desktop&rcm=ACoAACHMLkMB23fOg-wqKD9C0uIVe252G5cWi9Y
Github Repo:
https://github.com/Mynster9361/Least_Privileged_MSGraph
PSGallery:
https://www.powershellgallery.com/packages/LeastPrivilegedMSGraph
Github Pages:
https://mynster9361.github.io/Least_Privileged_MSGraph/
Sample html report that can be downloaded to see if it is worth your time ;)
https://github.com/Mynster9361/Least_Privileged_MSGraph/blob/main/data/report_anonymized.html
4
u/PoniardBlade Dec 01 '25 edited Dec 01 '25
I didn't create anything new, but I did shove several scripts I previously wrote into Gemini and ChatGPT to see what it fixed/edited in them. Spent some time going through the new code to figure out how it works and I've learned a few new tips.
Edit: added a /edited
4
u/Feezec Dec 01 '25
Its basically my first every script. Its simple but I'm proud of it.
I've got a share drive with lots of folders with numerical names.
The main feature is that the script navigates me to the folder that I specify in the parameter
>open-folder.ps1 -FolderNumber 1111
Silly question, what name(s) would be compliant with Approved Verbs for PowerShell Commands - PowerShell | Microsoft Learn ?
The script name is open-folder.ps1
it contains functions
open-fileExplorer, which uses ii to open the specified folder in Windows File Explorer
open-Powershell, which uses cd to open the specified folder in Powershell
3
u/AdeelAutomates Dec 02 '25
Made a youtube channel for using PowerShell with M365/Azure.
Adeel Automates - YouTube
It's been fun trying to figure out how to video edit, work on my audio and finding my voice
Trying to make content that teaches actually useful automation and what tools to use. And it isn't just another course that teaches the basics was my main goal with the series.
Still a long journey to go before I have the content built to the point I want with more useful scripts on these platforms.
3
u/No_Flight_375 Dec 15 '25
Built an http/https listening service, it listens for traffic on a specific port, it authenticates the incoming request (not storing them in plain text on script too which is nice 🤣). It then responds to the sending service (or denies them… if it’s incorrect) the service then sends specific data through, in pieces usually as JSON files, the powershell service, parses the incoming JSON data, organises and sticks them back together again and exports them into a CSV data set to be ingested by another set of automations.
I’m quite proud of this one, I built this service to accept and ingest data from multiple customers who use the same vendor, so it’s ‘modular’ and ‘customer agnostic’ too.
2
u/jkaczor Dec 01 '25
Wrote a URL hyperlink remapper for modernizing SharePoint pages as the “ConvertTo-PnPPage” results left alot to be desired…
2
u/8-16_account Dec 01 '25
I made a script for Tanium, that checks Winget and Github for non-Tanium managed applications, and updates them in Tanium.
Works great for all applications that are either in Winget or Github.
2
u/id0lmindapproved Dec 01 '25
Writing an Electron wrapper for PowerShell functions that allow any Sysadmin to create a PowerShell function and it can be exposed to a front end. The intention is for Juniors and Service Desk to be able to use custom scripts, and start poking around with writing functions, and lowering the barrier of entry.
Currently it supports AD Auth, Connect-EXO and does Graph authentication.
2
u/Rocket_Clone_74 Dec 02 '25
Winform powershell scripts to make AzurAD user creation/modify.
I love it but it's such a nightmare to think of all scenario's 😬
2
u/BackgroundExternal22 Dec 02 '25
I wrote a Powershell listener to catch json requests from my Excel VBA scripts so I could trigger Windows TOAST messages.
https://github.com/HowdyKeith/VBA-Toast-MSHTA-Notifications
This inspired me to update the PS listener to use a named pipe, and a MMF request, as well as json. And hopefully what will be cool is I hooked that up to a Ollama ai and numerous other super cool features. I just have to fix the Kpopup ClipSaver in my KPopup listener, so it is auto-saving captured ai output in the correct text format (It was working perfectly, now I have to fix it again before release(.
2
u/Soopercow Dec 03 '25
Tidied up my downloaded comic book collection
2
u/boli99 Dec 03 '25
Small script for retrieving basic SMART data from storage devices to run in a remote powershell session.
Hopefully I'll never need Crystal Disk Info ever again.
2
u/esoterrorist Dec 04 '25
Ingest and modify an SVG file using both simple text replacement and the PS XML tooling (to modify styles, filters, etc) based on data from 4 separate APIs, save said SVG file as a PNG, overlay that onto an RTSP stream and output to MPEG2 TS via multicast using ffmpeg, and then re-mux it (and also transcode to x264 using VLC because our IPTV STBs are super sensitive to codec/format/etc and VLC "just works") and pump out a different UDP MC TS. Also logging and error handling and reporting for each.
2
u/Jarvicious Dec 05 '25
We have a client facing Excel report that I have to sort and format. I've been toying with Import-Excel for a couple of years and scripting took the process from 10-15 minutes down to around 3. I'm constantly amazed what I can do with Powershell as it pertains to Office Apps.
2
u/Gakamor Dec 09 '25
I've been getting prepped for Secure Boot certificate expiration next year, and Microsoft's Make2023BootableMedia.ps1 script does not appear to work on WinPE. I could not find a tool for updating an existing WinPE ISO to use the 2023 Secure Boot certificate. So I decided to reverse engineer what "MakeWinPEMedia.cmd /bootex" does to add boot manager files signed by 'Windows UEFI CA 2023'. Then I made a PowerShell script that updates an existing WinPE ISO rather than generate a completely new WinPE ISO.
https://github.com/gakamor/public-scripts/blob/main/Make2023BootableWinPEmedia.ps1
I tested the ISOs generated by this script on a VM where the 2011 Secure Boot certificate is revoked.
2
u/Technical-Phrase-311 Dec 22 '25 edited Dec 22 '25
i have created a script using AI (ofcorse), wich will show all installed apps on windows, it will show with gray the non removable apps and options to uninstall, uninstall for all users and uninstall for future users.
the script needs admin runing
https://github.com/romeotaranu/windows-debloat-script-GUI/tree/main
1
u/Jaded-Term-8614 Dec 01 '25
run gulp tasks to package and deploy multiple SPFx solutions
1
u/aoldotcumdotcom Dec 01 '25
Changed the amount of time it takes before shutting down. IT actually had my laptop set up so it actually shuts down fully after 15 minutes.
1
u/blowuptheking Dec 01 '25
I put together a script that checks for all of the information related to the secure boot CA certificates being updated. That includes if it needs the update or if it's already done, if it needs a BIOS update first, if there are any errors and if so, translate the error code. Then it stores it all in WMI for SCCM to collect.
1
u/Federal_Ad2455 Dec 01 '25
Found out how to activate pim role requiring fido key (as auth strength requirement) via api call.
1
u/fdeyso Dec 01 '25
Just disabled some bs that MS rolled out as on-by-default that no one asked for.
1
u/FireLockLp Dec 01 '25
I Build an Exchange EWS "Reporting" Tool for Marketing purposes.
Base Function: Analyzing Tables in E-Mails for KV-Pairs - used an db Connection to store them in a Table for further Reporting Purposes.
Also implemented some Parameters and validation for reusing the script.
Also wrote a parameter documentation for Get-Help for the first time.
1
u/metekillot Dec 02 '25
I said fuck it and installed the cross-platform shell environment on Ubuntu, rather than dick around with learning bash from scratch to do basic things. Besides that, I used it to mock a prototype for a .NET crawler to download a few hundred thousand log files from a remote server.
1
u/RobertDeveloper Dec 02 '25
I used it to interface with zabbix to generate a daily report. Powershell is one of the worst script languages ever created, its powerful but thats about it.
1
u/Healthy_Builder6471 Dec 03 '25
I recently built a small gaming optimizer in PowerShell as a side project — it cleans shader caches, does safe RAM flushing, tweaks a few Windows services, and has some network latency fixes. Ended up wrapping it all into a little EXE with a trial + full version just for fun.
If anyone wants to try the free trial, I uploaded it here:
https://medamineosm.itch.io/gamesurge-pro-windows-gaming-optimizer
Still improving it, but it was a cool learning project. Happy to share bits of the scripts if anyone’s curious.
1
u/Cynomus Dec 03 '25
For System Engineers managing ovirt or OLVM from Windows I was finally able to get PoSh-oVirt made officially available on the Oracle github samples website.
https://github.com/oracle-samples/posh-ovirt
1
u/Future-Remote-4630 Dec 11 '25
Created a set of functions for array manipulation to replace a bunch of processes that I'd use sheets or excel for.
-Concatenation
-Merging
-Cleaning
-Searching
-Patching (This one wouldn't be an excel equivalent, it just lets you specify a replacement/override for the value of a particular record, in the event that everything works perfect except for one thing and you don't want to change the everything for the one thing)
Had gemini put together a function for generating sampledata which has been super helpful to evaluate the above.
1
u/Frequent_Bee_6943 Dec 16 '25
created a win32 package for intune to automate the registration process of an app thats used in our call center so the user can install the app and is ready to go (with custom credentials for every user)
started working on an script that creates outlook signature templates for outlook classic (retrieving data via Invoke-RestRequest from graph api)
and some minor cleanup scripts for the clients
generally learned a lot about working with api's, retrieving data from azure in safe way and how to handle scripts running under different users on a client
1
u/ConsistentPace3842 Dec 24 '25
Working on creating an Unified GUI tool for ITAM group. Previously worked on individual GUIs and now clubbing them all together in one tool, just like browser tabs
1
u/Technical-Phrase-311 Dec 25 '25
I created offers the possibility to customize the office 365 installation. i can choose which applications to install, outlook classic or new cannot be removed, one of them must be installed otherwise I received some errors just run the script in powershell and a GUI will show up. anyone can edit the script and make updates and optimisations.
https://github.com/romeotaranu/office-365-custom-install.git
1
u/kajyHD Dec 28 '25
Published a couple PowerShell projects this month:
LoraxMod - Tree-sitter AST parsing via PowerShell cmdlets. Built it because I wanted semantic diffs and structured code extraction across a bunch of languages. Uses TreeSitter.DotNet for native parsing - no Node.js dependency.
Also working on pwsh-repl - an MCP server for Claude Code that keeps PowerShell sessions alive. Variables persist across tool calls, includes AgentBlocks module with regex patterns for parsing build output (MSBuild, pytest, ESLint, etc.), and handles background processes with stdin control. Built it because Claude Code on Windows spawns a fresh pwsh instance every command - this gives it a proper REPL instead.
Both MIT licensed.
1
u/Garotapi Feb 24 '26
Bonjour
Ben... Pas grand chose. Je suis novice en la matière, et vraiment, j'ai du mal, j'ai beau faire, la plupart des commandes Power Shell que je cherche à utiliser sont régulièrement en erreur, sans que je comprenne pourquoi, parce que ces commandes sont reconnues et testées par ailleurs, et sont inscrites en copié collé via les sites sur lesquels je cherche à résoudre mes soucis informatique.
Pour le moment, je cherche à utiliser ViVeTool avec Power Shell, mais sans grande réussite. Pourtant, j'avais déjà réussi à désactiver une id de mise à jour Windows 11 pour me permettre de continuer d'utiliser QTTabBar. Là je retente la même opération avec une autre id sans succès. Je pêche quelque part, sans savoir où ...