ChatGPT Plus, VS Code, PowerShell Daily

โ€”

by

in

Iโ€™ve been in a whirl wind of mind blowing opportunities while using these three tools DAILY!

I havenโ€™t shared my GitHub repository (repo) to #PowerShell yet. I was hesitant to get feedback. I wanted to control it and be happy with the layout. Iโ€™ve built quite an extensive collection of scripts that Iโ€™ve created based on different needs of my job.

Iโ€™m taking about #ChatGPT, VS code (aka Microsoft Visual Studio Code) and #PowerShell (specifically 7+, now 7.5.3). I mentioned them in that order because that is how I use them. Sometimes I start with VS Code, depending on the need and my technical knowledge of the task at hand. As Iโ€™ve learned more #PowerShell, I now try to start with VS code. Then, I give a prompt to #ChatGPT for clarification or corrections. #ChatGPT is built into VS Code with an extension. I stay in that app. But, Iโ€™ve found myself preferring a separate window in Chrome. I can also use my own prompt history and preferences on the Chrome page. I havenโ€™t found a way to link my #PowerShell project in #ChatGPT with VS Code.

https://jasr.me/gp

That link will take you to my GitHub #PowerShell Repository. From there, you can explore the organization structure Iโ€™ve put in place for the many types of scripts Iโ€™ve created. I donโ€™t take full cl#aim, of course #ChatGPT assisted with probably each of them.

Iโ€™ve tried to keep a consistent header on each file with revision, description, author, date.

Example below:


# Revision : 1.0
# Description : Compare two directories and export results to CSV # Rev 1.0
# Author : Jason Lamb (with help from #ChatGPT)
# Created Date : 2025-08-20
# Modified Date : 2025-08-20

This helps me and any one else, hopefully, keep track of what Iโ€™m doing in the future

DISCLAIMER: NEVER use anyone’s code unless you can vet and test it before going to a production environment. That includes my code. I canโ€™t confirm all of it works right now, thatโ€™s not the purpose of why I post/share it. Iโ€™m NOT a #PowerShell expert or developer. I work in IT. I have discovered the amazing features of a tool. I wish I knew these features a long time ago.

Back to the repo. Iโ€™ve structured this in two types of folders. Script folders that are useful for that type of management. File-Management-Scripts is a folder of #PowerShell scripts for managing files. The scripts can parse a TXT or CSV file. They can also merge multiple CSV files or use robocopy to move or copy files from one location to another.

Another type of folder is more project tool or fun focused. Tic-Tac-Toe is a just a text based game I decided to develop with my son one day after playing Ultimate Tic-Tac-Toe and wondering if I could make this work in Powershell.

The Track-Package folder of scripts holds multiple scripts. These scripts take a vendor tracking number and open a browser. The browser then displays tracking information for that tracking number. The merged file identifies which tracking service and sends you to the appropriate shipperโ€™s site.

The Dell script under Miscellaneous takes a Dell equipment service tag. It launches a browser page to that specific equipment support page. The page provides warranty and model info.

Both the track and dell scripts work as functions. You can load the script in your $Profile. When you type โ€˜dell abc1234โ€™ it will kick off that script. It will then launch the page. (abc1234 would be an example Dell service tag, 7 digits alpha numerical)

PRO TIP: I HIGHLY advise setting up a \$Profile script and if you want to be just a little extra, you should setup a \$CommonVariables script to which all your $Profile scripts point to. Iโ€™ll expl#ain that and the importance in a different post. Itโ€™s important and very handy.

Note: this was typed on my phone, so there may be errors. I need to proofread it, but Iโ€™m going to post it now. Iโ€™ll add graphics later. I want to get back in the habit of writing more. I should not focus on w#aiting until Iโ€™m completely ready to share. I need to know what to write. Just do it! -Nike

EDIT: I’ve


Comments

2 responses to “ChatGPT Plus, VS Code, PowerShell Daily”

  1. Jeremy Lamb Avatar
    Jeremy Lamb

    I was coincidentally using GPT to code the past few days. 1 script was an automatic trading bot that a friend created, I was simply dissecting it. The other was a script to test my Wi-Fi speeds and log them in a file, or text me if they fall under a certain number.

    Also curious how this website blog is more advantageous than a Facebook post. If community engagement is what you’re after, I would think that platform would be exponentially higher. If it’s intended to be just a personal log of thoughts…. ok.

  2. I like to post the whole content on my own website for archival and control and then share that link to any other social media as desired/needed/appropriate.

    I would love to see your WiFi and stock scripts.

Leave a Reply to JasonCancel reply