Since Microsoft 365 license prices increase in July, I put together a PowerShell script to audit license assignments, identify potential cost-saving opportunities, and remove unused licenses where needed.
It support 8 cost saving reports and 6 license removal options.
Sharing it here in case it helps others: GitHub link
Nothing. Cause my job basically disintegrated in the last months lol (takeover, all projects halted, etc.)
But I've found a new employer : so soon I will just do a Find & Replace on my custom company module. "Company X" > "Company Y" & lets go again. My module has a lot of custom scripts for mailboxes, intune, vm's, azure stuff. General IT.
Wrote a script that reads serial data coming in from a COM port and displays it in a nicely formatted WinForm. The serial data comes from a lithium battery BMS, which is capable of delivering the same info via bluetooth to your phone, but you have to download their app, and the BMS bluetooth function has a bug where once an iphone pairs with it, any Android device can no longer read the bluetooth data. So, now we can bring a laptop around and plug into a battery bank and pull all the information and display it all at once on a nice big screen.
PSBlitz - Added two new checks (Backups and Security), support for the ImportExcel PS module (so folks won't need Excel installed for the xlsx version of the report), and Excel COM app performance improvements.
Asus Router Config Decoder - still testing an option to allow users to re-encode decoded config files so that they can restore back on the router. This is useful when doing bulk changes (adding port forwarding rules, dhcp IP reservations, etc.)
I wrote a YubiKey initialization script that automatically generates a random PIN and PUK, updates them on the YubiKey, saves them to the password database, and then sends an email to the user with the generated PIN and a note to change it on first use.
A script to take in a couple hundred device names divide them up. Then take the existing 5 collections I have, remove the membership rules for them, and add new membership rules to each collection with the new devices. Then it updates the collection’s membership.
Just need to figure out scheduling deployments of a TS to each programmatically as well.
Taking all 1000 names dividing them up into 200 machines a collection per work day so I’m not just sending out an upgrade on a thousand machines in one night. Probably doesn’t need to be separated but 23h2 is EOL in October so I have some time.
Im using the built in commandlets for SCCM. It’s about time I learned some of it to be honest.
Script that pulls all users from MS365, strips out service accounts and such, sorts by license, creates various csv files based on the license, uploads to a custom form on JotForm to turn them into tables that can be used for their Reusable Dropdown Widget. Runs every morning at 0400. Part of the script also checks to see how many entries are left after the 24-hour cleanup, then deletes the remaining ones. Gives me a fresh list of employees every morning, so when a user has to enter a name/email address on one of our Jotforms they can just scroll through and find the user instead of mangling the information. Why? Because I wanted to see if I could.
I created an authentication script for my SCCM OSD task sequence that checks the user's account to see if it's a member of an allowed AD group, if it is, it allows them to proceed with the task sequence. While not very cool or clever in itself, it taught me about concepts like 'out of process powershell execution' and 'encoded payloads', and how not understanding these concepts can totally ruin your day if you have a script that simply refuses to work in the target environment, but everyone says 'oh, that's easy...just do this...', but their suggestions don't work...until I got the idea to ask Copilot to compare a very simple windows forms PS script that does seem to work in the WinPE+TS environment, with your own script, and ask to explain why my - it says I need to use this bit of code to allow my script to work in the script block, and in the winpe+TS environment: $bytes = [System.Text.Encoding]::Unicode.GetBytes($script.ToString())
This allows the script block to do what it does without misinterpreting my script! The -EncodedCommand parameter is used to pass a Base64-encoded UTF-16LE string containing the PowerShell commands - which makes me wonder - had I changed the script to something other than UTF-16LE encoded text..would THAT have fixed my issue?? I work mainly out of PS ISE, but sometimes copy/paste to and from Notepad++, or Notepad (which...I just learned...often saves as UTF-16LE with BOM...fuuuuuuudgggge.) Ah well, learning experience!
Used it to get a folder of files sorted by last modified dateTime and, in order, update the lastmodifieddate to now,move to target dir and wait 11 seconds for every file.
The new system polls the folder every 10 seconds but will only process one file at a time. We had no direct access to the Dev of the app and had to fight for details about the polling interval.
A new jobserver with new OS was spun up so I moved all the jobs and introduced our apprentice to PS by going through all my scripts for automation with her, and got her to generate some new certs with ps and debug everything that failed to run
Big update of my old “org-photos” script which removes as much junk as possible (based on name or extension) and then sorts pictures and videos in a date based structure:
moved it from onedrive to github; with some clean-up of the code as required (less hardcoded paths
leverages exiftool instead of .net to support HEIC files to fetch “date taken” information from metadata
I had a particular use case that I couldn't find a utility for, so I ended up just making it myself.
I ditched my desktop computer a while ago, so my laptop gets used both on the go (or just when I'm on the couch in the living room) as well as docked to the dual-monitor setup in my office.
When I'm at my desk, I tend to be getting up and moving around more, like stepping away to make some coffee. I've grown accustomed to my desktop computer staying on while I'm away from it unless explicitly turned off, and I wanted to replicate this behavior with my laptop.
The tricky part is that I'll also often be using my laptop plugged into a normal charger, and in those cases I usually don't want my screen to stay on perpetually. The native Windows power management settings can do different things when plugged vs. unplugged, but I couldn't find anything to distinguish docked from normal charging. After some searching I couldn't find an existing utility for this either, so I just ended up making exactly what I wanted.
Huge caveat: I'm an Android developer by trade but have very little experience with PowerShell. I hadn't done much AI-assisted coding outside of work, but I do have a Google One subscription, which now comes with Gemini Pro, so I used Antigravity (née Gemini CLI) to vibe-code this.
SmartAwake (as Claude Sonnet decided to dub it) is open-source on my personal GitHub, so hopefully anybody with the same needs as me can do their due diligence and verify that my script isn't doing something horrifically wrong. Any feedback or PRs from more experienced devs would be more than welcome
I have automated the Microsoft 365 user offboarding process. You can check out the script on GitHub and see if it meets your requirements. It supports 14 user offboarding best practices including reset password, revoke session, remove from group memberships, convert to shared mailbox, removing licenses, etc.
Took an older password reset script and started converting it to reusable modules and updating the help
Simple wrapping the onetime secret v1 API (also moving it out of eu to nz)
Wrapping of graph API to get a refresh token (based on passed app and creds)
Wrapping of graph API to send a mail (based on a returned token)
Function the querying the supplied ou for users, selecting user, resetting password, the emailing the user (these are for external contractors and means I never know the password)
Next step is to attempt some smarts and have a bot in teams channel looking for a password request but that's a loooong time away
Over the last few months, I've been working on a number of PowerShell projects and automation scripts. Most of them focus on system administration, Microsoft 365, networking, monitoring, and general IT automation tasks.
I've published several of them on my GitHub if anyone would like to take a look:
https://github.com/karanikn/netscan netscan is a WinForms PowerShell network scanner with DHCP rogue detection, port scanning, OUI vendor lookup, Ping Monitor, and Traceroute — powered by nmap.
https://github.com/karanikn/AD_Manager All-in-one Active Directory management tool built as a WPF GUI in PowerShell. Manage users, computers, groups, GPOs, shares, DNS, DHCP, network status, and more — from a single polished interface. No ADUC, no MMC snap-ins, no separate consoles.
https://github.com/karanikn/WinDiag-AI WinDiag-AI is a professional Windows diagnostics tool built as a WPF GUI in PowerShell. It collects 28 categories of system data — hardware, disk health, event logs, security, network, BSOD logs, driver status, and more — then sends the results to a locally running AI model (Ollama) for intelligent analysis.
https://github.com/karanikn/karanik_WinMaintenance_Online karanik_WinMaintenance is a professional Windows maintenance toolkit built as a WPF GUI launcher written entirely in PowerShell. It provides a clean, organized interface for running a curated collection of system administration scripts — without needing to open a terminal or remember command syntax.
Scripts are downloaded on demand from a remote server, cached locally, and executed in an elevated PowerShell session. The result is a tool that is always up to date: updating a script on the server instantly propagates to all users on the next run.
https://github.com/karanikn/FolderNTFS-Tool FolderNTFS-Tool is a single-file PowerShell WPF application that provides a clean, modern GUI for folder and NTFS permission management. Designed for IT administrators who need quick folder audits, permission reports, ACL backups, or pre-migration documentation without writing one-off scripts.
https://github.com/karanikn/PingTray PingTray is a lightweight Windows system tray tool that pings multiple hosts and alerts you when they go down — via color-coded tray icon, balloon notifications, Telegram, and SMTP email.
https://github.com/karanikn/AD-Export-Tool AD_Export-Tool is a single-file PowerShell WPF application that provides a clean, modern GUI for exporting Active Directory data. Designed for IT administrators who need quick, reliable AD reports without writing one-off scripts or navigating RSAT consoles.
https://github.com/karanikn/PSModuleManager PSModuleManager is a single-file PowerShell script that launches a full WPF GUI for managing, scanning, installing, and maintaining PowerShell modules. It runs on a dedicated STA thread via a PowerShell runspace and communicates between the GUI and background workers using thread-safe concurrent queues.
I'm always looking for ways to automate repetitive work and make day-to-day administration a little easier.
If you have any ideas for improvements, new features, or changes, I'd love to hear them. And if you happen to spot any bugs, issues, or areas that could be improved, I'd really appreciate your feedback when you have the time.
I coded a script that opens and closes the Blu-ray drive door
With a little help from AI in write the code ;). But before this i found some code in C++, C#, WMI, and other parts of the Windows API. I came up with some ideas and fed them to the AI. After some refinement with it, I ended up with a beautiful piece of C# code in PowerShell. The script detects whether the drive port is open, and if so, it closes it. If it’s closed, it opens it. In the code, I modified it for the drive letter I use for my Blu-ray drive, which is X:; please modify the code to use the drive letter for your optical drive. You can modify the script to automatically detect the drive letter; everything is commented out in the code.
Only notable thing was a script that will run regularly that will update named location in Entra with known phishing IPs from a provider we have, to use in a blocking CA.
Still in progress but I'm trying to write something that will filter items based on a specified string, put out a list of items in the directory and add a column to the list with a number from 1 on. Then have the user enter that number and run copy-item and then start the item for a software installation. I'm having some diffculty though, I'm not use to doing things like inserting new columns. I got the basics down and this is a little over my head.
There are other parts I need to do but that'll happen later on.
Also I am writing a script to copy my favorites to my cloud storage monthly. I have found out about join-path and I need to use that, I was a little confused about why I needed to use that over just copy-item -path -desination but I'll get use to it.
I just like adapting native commands, or getting output from them that normally would be irregular. You won't always get PS alternative. Also that particular style started with arp.exe where I wanted to adapt it "anonymously" without variable assignments, using ',' operator. It may be not the most readable style but it's fast to type if you can. This netstat also has process name which can be handy to quickly checking if the correct app is listening/connecting. I'll try later adding it to Get-NetTCPConnection with Add-Member.
Meanwhile I was thinking how to improve performance on process name lookup so I added some memoization:
I also just noticed that Get-NetTCPConnection is only TCP (I guess the hint was in the name :) ), where Get-NetUDPEndpoint is UDP so I guess there is a use case for netstat
Script which churned through our SP environment and identified 20TB of data which has not been accessed in over 6 months. Prime candidates to move to cheap cold storage.
Now we can all create local servers by writing a function like this:
function / { "<h1>This is the root</h1>" } function /my/page { "<h1> This is a custom page </h1>" } function /psVersion/ { [OutputType('application/json')]param() $psVersionTable | ConvertTo-Json } }
Currently writing a script to update the mods my friends and I use for Mechwarrior 5 Mercenaries. A friend of mine is did the Bash script for the Linux folks as well. It's been a pretty fun project, I think I have it working now for the most part. I'll post a link when finished if anyone needs it !
I have also found a way to do what I need with grep using powershell commands only. However, rg is nice for the pattern matching abilities using regex.
I installed the Chris Titus powershell profile. It has given me some great shortcuts. Combine that with oh-my-posh and I have a fancy looking prompt.
I need to find a way to edit the prompt function so I can add in a bit that changes tab title to current folder name.
Every time I installed Windows on a new machine or created a fresh VM, I found myself doing exactly the same things:
- installing PowerShell tools - configuring my profile - recreating aliases - installing fzf, bat, eza, zoxide... - setting up SSH - configuring my homelab control machine
After doing this dozens of times, I decided to automate the whole experience.
So I built ShellDeck.
The goal isn't just to install packages.
It bootstraps a complete PowerShell environment and can optionally become a small homelab control node.
Features include:
• interactive installer • PowerShell profile management • aliases & helper commands • SSH host management • dashboard showing infra status • Windows / Linux / macOS support • optional security hardening on Linux
I'm mainly looking for feedback from people using PowerShell daily.
What features would make this genuinely useful for you?
I 100% disagree, over at least the last 4 months those post have been updated right up-until the very last days of the month, going back looks similar too
I think you are likely basing it on you going to the post at the start and looking, then never going back until the next months post
There have been 84 posts in 5 days in this thread. There will be maybe 30 more over the next 25 days. Do you think the majority of PowerShell work is always done in the first few days of the month?
16
u/KavyaJune Jun 01 '26 edited Jun 01 '26 •
Since Microsoft 365 license prices increase in July, I put together a PowerShell script to audit license assignments, identify potential cost-saving opportunities, and remove unused licenses where needed.
It support 8 cost saving reports and 6 license removal options.
Sharing it here in case it helps others: GitHub link
11
u/TipIll3652 Jun 01 '26
Absolutely nothing, I just got in the door 15 minutes ago 🤣
9
u/Kwinza Jun 01 '26
I wrote a script to create 100ish folders for me.
The work month is like 4 hours old so thats it.
17
u/Pism0 Jun 01 '26
Shouldn’t this say last month or post a day earlier? Looks like it’s an automatic post so can that be updated?
7
u/WinterFamiliar9199 Jun 01 '26
Wrote a script to export a list of unused GPOs so we can get people to cleanup their mess.
13
u/DiggyTroll Jun 01 '26
"The same thing we do every month, Pinky—try to automate the world!"
4
u/kinky666hallo Jun 01 '26
Nothing. Cause my job basically disintegrated in the last months lol (takeover, all projects halted, etc.)
But I've found a new employer : so soon I will just do a Find & Replace on my custom company module.
"Company X" > "Company Y" & lets go again.
My module has a lot of custom scripts for mailboxes, intune, vm's, azure stuff. General IT.
4
u/tentoesdown7 Jun 01 '26
Nothing I’m burnt out
4
u/WirtThePegLeggedBoy Jun 05 '26
Wrote a script that reads serial data coming in from a COM port and displays it in a nicely formatted WinForm. The serial data comes from a lithium battery BMS, which is capable of delivering the same info via bluetooth to your phone, but you have to download their app, and the BMS bluetooth function has a bug where once an iphone pairs with it, any Android device can no longer read the bluetooth data. So, now we can bring a laptop around and plug into a battery bank and pull all the information and display it all at once on a nice big screen.
7
u/VladDBA Jun 01 '26
PSBlitz - Added two new checks (Backups and Security), support for the ImportExcel PS module (so folks won't need Excel installed for the xlsx version of the report), and Excel COM app performance improvements.
Asus Router Config Decoder - still testing an option to allow users to re-encode decoded config files so that they can restore back on the router. This is useful when doing bulk changes (adding port forwarding rules, dhcp IP reservations, etc.)
3
u/RingoFlamingo2000 Jun 01 '26
I wrote a YubiKey initialization script that automatically generates a random PIN and PUK, updates them on the YubiKey, saves them to the password database, and then sends an email to the user with the generated PIN and a note to change it on first use.
3
u/Cynomus Jun 08 '26
This is still a work in progress, but it's a PowerCli like module for oVirt/OLVM.
https://www.powershellgallery.com/packages/PoSh-oVirt
In case an Windows admins are using oVirt.
2
u/teethingrooster Jun 01 '26
A script to take in a couple hundred device names divide them up. Then take the existing 5 collections I have, remove the membership rules for them, and add new membership rules to each collection with the new devices. Then it updates the collection’s membership.
Just need to figure out scheduling deployments of a TS to each programmatically as well.
2
u/RadiantWhole2119 Jun 01 '26
Script for secure boot -.-
2
u/StartAutomating Jun 01 '26
Just dropped new bits of obs-powershell.
Added a bunch of new commands for pixel shaders, as well as
Start-OBSandStop-OBS.2
u/cabinetguy Jun 02 '26
Script that pulls all users from MS365, strips out service accounts and such, sorts by license, creates various csv files based on the license, uploads to a custom form on JotForm to turn them into tables that can be used for their Reusable Dropdown Widget. Runs every morning at 0400. Part of the script also checks to see how many entries are left after the 24-hour cleanup, then deletes the remaining ones. Gives me a fresh list of employees every morning, so when a user has to enter a name/email address on one of our Jotforms they can just scroll through and find the user instead of mangling the information. Why? Because I wanted to see if I could.
2
u/Regular-Ball8710 Jun 02 '26
Build an on and offboarding script (AD and entra-id) and deployed to a webbrowser UI and reporting to Topdesk ticketing system
2
u/Reaction-Consistent Jun 03 '26
I created an authentication script for my SCCM OSD task sequence that checks the user's account to see if it's a member of an allowed AD group, if it is, it allows them to proceed with the task sequence. While not very cool or clever in itself, it taught me about concepts like 'out of process powershell execution' and 'encoded payloads', and how not understanding these concepts can totally ruin your day if you have a script that simply refuses to work in the target environment, but everyone says 'oh, that's easy...just do this...', but their suggestions don't work...until I got the idea to ask Copilot to compare a very simple windows forms PS script that does seem to work in the WinPE+TS environment, with your own script, and ask to explain why my - it says I need to use this bit of code to allow my script to work in the script block, and in the winpe+TS environment:
$bytes = [System.Text.Encoding]::Unicode.GetBytes($script.ToString())
$encoded = [Convert]::ToBase64String($bytes)
Start-Process powershell.exe -ArgumentList "-NoProfile -EncodedCommand $encoded" -Wait
This allows the script block to do what it does without misinterpreting my script!
The
-EncodedCommandparameter is used to pass a Base64-encoded UTF-16LE string containing the PowerShell commands - which makes me wonder - had I changed the script to something other than UTF-16LE encoded text..would THAT have fixed my issue?? I work mainly out of PS ISE, but sometimes copy/paste to and from Notepad++, or Notepad (which...I just learned...often saves as UTF-16LE with BOM...fuuuuuuudgggge.) Ah well, learning experience!2
u/gjpeters Jun 03 '26
Used it to get a folder of files sorted by last modified dateTime and, in order, update the lastmodifieddate to now,move to target dir and wait 11 seconds for every file.
The new system polls the folder every 10 seconds but will only process one file at a time. We had no direct access to the Dev of the app and had to fight for details about the polling interval.
2
u/yoso-kuro Jun 03 '26
Still in progress, to get email notifs 3 days ahead before the validity based on the date column in excel.
2
u/Im_writing_here Jun 03 '26
A new jobserver with new OS was spun up so I moved all the jobs and introduced our apprentice to PS by going through all my scripts for automation with her, and got her to generate some new certs with ps and debug everything that failed to run
2
u/jrodsf Jun 03 '26
Replaced all the old HTA / vbscript used in our OSD task sequence with WPF and powershell. Long overdue but finally knocked it out.
2
u/Eddit13 Jun 03 '26
convert cisco lldp output to formatted config output - cdp info too.
2
u/randomthrowaway9313 Jun 05 '26
I wrote a tool for one of my admins that remotely updates computer descriptions, GUI and all.
2
u/Cayayu Jun 06 '26
Big update of my old “org-photos” script which removes as much junk as possible (based on name or extension) and then sorts pictures and videos in a date based structure:
2
u/PuzzleheadedStudio41 Jun 06 '26
I have a git repo, but not just this month's work
https://github.com/zzztttkkk/sys.utils/tree/master/pwsh
2
u/normanlee Jun 07 '26
I had a particular use case that I couldn't find a utility for, so I ended up just making it myself.
I ditched my desktop computer a while ago, so my laptop gets used both on the go (or just when I'm on the couch in the living room) as well as docked to the dual-monitor setup in my office.
When I'm at my desk, I tend to be getting up and moving around more, like stepping away to make some coffee. I've grown accustomed to my desktop computer staying on while I'm away from it unless explicitly turned off, and I wanted to replicate this behavior with my laptop.
The tricky part is that I'll also often be using my laptop plugged into a normal charger, and in those cases I usually don't want my screen to stay on perpetually. The native Windows power management settings can do different things when plugged vs. unplugged, but I couldn't find anything to distinguish docked from normal charging. After some searching I couldn't find an existing utility for this either, so I just ended up making exactly what I wanted.
Huge caveat: I'm an Android developer by trade but have very little experience with PowerShell. I hadn't done much AI-assisted coding outside of work, but I do have a Google One subscription, which now comes with Gemini Pro, so I used Antigravity (née Gemini CLI) to vibe-code this.
SmartAwake (as Claude Sonnet decided to dub it) is open-source on my personal GitHub, so hopefully anybody with the same needs as me can do their due diligence and verify that my script isn't doing something horrifically wrong. Any feedback or PRs from more experienced devs would be more than welcome
2
u/VarkeyParvam99 Jun 08 '26
Currently working on a PS script to offboard users and remove access
2
u/StartAutomating Jun 10 '26
Wrote some long reads for Reddit:
Still working on the one about writing servers (but also ended up writing a fun new server)
2
u/BlackV Jun 18 '26 edited Jun 18 '26
Took an older password reset script and started converting it to reusable modules and updating the help
Next step is to attempt some smarts and have a bot in teams channel looking for a password request but that's a loooong time away
2
u/karanikn Jun 18 '26 edited Jun 18 '26
Over the last few months, I've been working on a number of PowerShell projects and automation scripts. Most of them focus on system administration, Microsoft 365, networking, monitoring, and general IT automation tasks.
I've published several of them on my GitHub if anyone would like to take a look:
https://github.com/karanikn?tab=repositories
https://github.com/karanikn/netscan
netscan is a WinForms PowerShell network scanner with DHCP rogue detection, port scanning, OUI vendor lookup, Ping Monitor, and Traceroute — powered by nmap.
https://github.com/karanikn/AD_Manager
All-in-one Active Directory management tool built as a WPF GUI in PowerShell.
Manage users, computers, groups, GPOs, shares, DNS, DHCP, network status, and more — from a single polished interface. No ADUC, no MMC snap-ins, no separate consoles.
https://github.com/karanikn/WinDiag-AI
WinDiag-AI is a professional Windows diagnostics tool built as a WPF GUI in PowerShell. It collects 28 categories of system data — hardware, disk health, event logs, security, network, BSOD logs, driver status, and more — then sends the results to a locally running AI model (Ollama) for intelligent analysis.
https://github.com/karanikn/karanik_WinMaintenance_Online
karanik_WinMaintenance is a professional Windows maintenance toolkit built as a WPF GUI launcher written entirely in PowerShell. It provides a clean, organized interface for running a curated collection of system administration scripts — without needing to open a terminal or remember command syntax.
Scripts are downloaded on demand from a remote server, cached locally, and executed in an elevated PowerShell session. The result is a tool that is always up to date: updating a script on the server instantly propagates to all users on the next run.
https://github.com/karanikn/FolderNTFS-Tool
FolderNTFS-Tool is a single-file PowerShell WPF application that provides a clean, modern GUI for folder and NTFS permission management. Designed for IT administrators who need quick folder audits, permission reports, ACL backups, or pre-migration documentation without writing one-off scripts.
https://github.com/karanikn/PingTray
PingTray is a lightweight Windows system tray tool that pings multiple hosts and alerts you when they go down — via color-coded tray icon, balloon notifications, Telegram, and SMTP email.
https://github.com/karanikn/AD-Export-Tool
AD_Export-Tool is a single-file PowerShell WPF application that provides a clean, modern GUI for exporting Active Directory data. Designed for IT administrators who need quick, reliable AD reports without writing one-off scripts or navigating RSAT consoles.
https://github.com/karanikn/PSModuleManager
PSModuleManager is a single-file PowerShell script that launches a full WPF GUI for managing, scanning, installing, and maintaining PowerShell modules. It runs on a dedicated STA thread via a PowerShell runspace and communicates between the GUI and background workers using thread-safe concurrent queues.
I'm always looking for ways to automate repetitive work and make day-to-day administration a little easier.
If you have any ideas for improvements, new features, or changes, I'd love to hear them. And if you happen to spot any bugs, issues, or areas that could be improved, I'd really appreciate your feedback when you have the time.
Thanks! 😊
2
u/mastermindiz Jun 02 '26
I coded a script that opens and closes the Blu-ray drive door
With a little help from AI in write the code ;). But before this i found some code in C++, C#, WMI, and other parts of the Windows API. I came up with some ideas and fed them to the AI. After some refinement with it, I ended up with a beautiful piece of C# code in PowerShell. The script detects whether the drive port is open, and if so, it closes it. If it’s closed, it opens it. In the code, I modified it for the drive letter I use for my Blu-ray drive, which is X:; please modify the code to use the drive letter for your optical drive. You can modify the script to automatically detect the drive letter; everything is commented out in the code.
1
u/fatalicus Jun 01 '26
Not much last month realy.
Only notable thing was a script that will run regularly that will update named location in Entra with known phishing IPs from a provider we have, to use in a blocking CA.
1
u/Royal-Presentation19 Jun 01 '26
Wrote a script to remove preboot passwords from SEDs for Lenovo Laptops
1
u/imahe Jun 01 '26
Wrote some needed methods/functions for my webservice.
1
u/Effective_Carob5066 Jun 01 '26
Modularized my $PROFILE into different components for easier implementation and bug fixing, not sure if I can post the link to my GitHub project
1
u/DonL314 Jun 01 '26
Wrote a simple frontend using an XAML form for helping some of our customer service people.
Oh, and privately, some mapping software I use for Subnautica 2.
1
u/TKInstinct Jun 01 '26 edited Jun 01 '26
Still in progress but I'm trying to write something that will filter items based on a specified string, put out a list of items in the directory and add a column to the list with a number from 1 on. Then have the user enter that number and run copy-item and then start the item for a software installation. I'm having some diffculty though, I'm not use to doing things like inserting new columns. I got the basics down and this is a little over my head.
There are other parts I need to do but that'll happen later on.
Also I am writing a script to copy my favorites to my cloud storage monthly. I have found out about join-path and I need to use that, I was a little confused about why I needed to use that over just copy-item -path -desination but I'll get use to it.
1
u/dongledongledongle Jun 01 '26
Reroll suffix or prefix until I get the mod I want.
1
u/ThatMikeGuy429 Jun 01 '26
Pinged google
1
u/discgman Jun 01 '26
I am able to kill running exe programs remotely that are browser hijackers. My AV program quarantines them but doesn't delete them automatically.
1
u/andreglud Jun 01 '26
TeamViewer assignment deployment with automatic renaming! "USER | HOST"
It's been on my to-do for ages. No API key stored locally.
1
u/FearlessHuckleberry6 Jun 01 '26
nvidia-smi -i 0 -pl 150 because my pc keep crashing ya
1
u/life3_01 Jun 01 '26
Nothing.
1
u/Over_Dingo Jun 01 '26
This netstat.exe wrapper
Comment out Process Name for better performance
1
u/mwlktea Jun 02 '26
I customized it to my liking
1
u/ItsMeDoil Jun 02 '26
Automated signing and time stamping for office document macros, powershell scripts and msix files
1
u/ruun666 Jun 02 '26
Nothing. I don't have it on my Fedora.
1
u/xobeme Jun 02 '26
Has anyone seen how short the script is for converting a CSV to pipe-delimited file(quotes removed???) Amazing!
1
u/KerryBoehm Jun 02 '26
Script which churned through our SP environment and identified 20TB of data which has not been accessed in over 6 months. Prime candidates to move to cheap cold storage.
1
u/StartAutomating Jun 13 '26
Wrote a Fun Server in PowerShell, and then wrote a mid-length post about it on Reddit
Now we can all create local servers by writing a function like this:
function / { "<h1>This is the root</h1>" } function /my/page { "<h1> This is a custom page </h1>" } function /psVersion/ { [OutputType('application/json')]param() $psVersionTable | ConvertTo-Json } }
1
u/Riist138 Jun 14 '26
Currently writing a script to update the mods my friends and I use for Mechwarrior 5 Mercenaries. A friend of mine is did the Bash script for the Linux folks as well. It's been a pretty fun project, I think I have it working now for the most part. I'll post a link when finished if anyone needs it !
1
u/moonflower_C16H17N3O Jun 15 '26
I now use zoxide to hop around directories.
I have installed ripgrep for searching my files.
I have also found a way to do what I need with grep using powershell commands only. However, rg is nice for the pattern matching abilities using regex.
I installed the Chris Titus powershell profile. It has given me some great shortcuts. Combine that with oh-my-posh and I have a fancy looking prompt.
I need to find a way to edit the prompt function so I can add in a bit that changes tab title to current folder name.
1
u/paolgiacometti Jun 18 '26
powershell scripts that connects to sftp website download an xlsx file and ETL some worksheets to bulkdata into sql server db
1
u/StartAutomating Jun 23 '26
Wrote a bunch more Reddit long reads:
Also, made a Fun Server in PowerShell, and am updating it to support WebSockets and other fun.
0
u/Tasty_Voice5322 Jun 26 '26
Hi everyone,
Every time I installed Windows on a new machine or created a fresh VM, I found myself doing exactly the same things:
- installing PowerShell tools
- configuring my profile
- recreating aliases
- installing fzf, bat, eza, zoxide...
- setting up SSH
- configuring my homelab control machine
After doing this dozens of times, I decided to automate the whole experience.
So I built ShellDeck.
The goal isn't just to install packages.
It bootstraps a complete PowerShell environment and can optionally become a small homelab control node.
Features include:
• interactive installer
• PowerShell profile management
• aliases & helper commands
• SSH host management
• dashboard showing infra status
• Windows / Linux / macOS support
• optional security hardening on Linux
I'm mainly looking for feedback from people using PowerShell daily.
What features would make this genuinely useful for you?
GitHub:
https://github.com/adrienclaire/ShellDeck
46
u/[deleted] Jun 01 '26
[removed] — view removed comment