HCHTech
Well-Known Member
- Reaction score
- 4,153
- Location
- Pittsburgh, PA - USA
The Fabs thread made me want to make this post. I have been living in Powershell lately, writing a shed-load of new scripts for my RMM. While in days of old, I did some simple basic programming, tons of macro-driven spreadsheets in Lotus 123, several databases in Lotus Approach, and even a couple of Access databases, I was never trained as a programmer, and know enough about the craft to know that I just don't have the mind of a programmer. I've come to terms with that fact, and just remind myself that my talents lie elsewhere - haha.
More-recently (10 years ago?) I paid a couple of fiver folks to write some scripts, which I then was able to massage into something workable. Now, however, I have to say that both CoPilot and ChatGPT have been tremendous resources in my current task.
I was amazed to get actual working-first-time examples of scripts to pull some data or make some registry change, or report on a configuration. Just as an example, I now have a script that will fail (which alerts us) if the NIC isn't running at 1GbE. This was as simple as typing the instruction:
"Write a powershell script to check the connection speed of every network connection and exit with 1001 and write "NIC is not at 1GbE!" to the host if speed is not 1 gigabit per second. Exit with a 0 if all connections are 1 gigabit per second and write "All NICS are at 1GbE." to the host.
Both ChatGPT and CoPilot are capable of following the various decision branches and produce working scripts that give the desired result. Since the logic is pretty easy to follow in this example, it's easy for me to look at the code and see what it is doing exactly, and tweak to do something a little differently.
This doesn't make me feel like a programmer, but it sure makes it a whole bunch easier to try out ideas that I would have giving up on in the past just because I know "I could never program that".
So no questions here, just an affirmation of these tools and how pleasantly surprised I have been at their facility for my shop.
More-recently (10 years ago?) I paid a couple of fiver folks to write some scripts, which I then was able to massage into something workable. Now, however, I have to say that both CoPilot and ChatGPT have been tremendous resources in my current task.
I was amazed to get actual working-first-time examples of scripts to pull some data or make some registry change, or report on a configuration. Just as an example, I now have a script that will fail (which alerts us) if the NIC isn't running at 1GbE. This was as simple as typing the instruction:
"Write a powershell script to check the connection speed of every network connection and exit with 1001 and write "NIC is not at 1GbE!" to the host if speed is not 1 gigabit per second. Exit with a 0 if all connections are 1 gigabit per second and write "All NICS are at 1GbE." to the host.
Both ChatGPT and CoPilot are capable of following the various decision branches and produce working scripts that give the desired result. Since the logic is pretty easy to follow in this example, it's easy for me to look at the code and see what it is doing exactly, and tweak to do something a little differently.
This doesn't make me feel like a programmer, but it sure makes it a whole bunch easier to try out ideas that I would have giving up on in the past just because I know "I could never program that".
So no questions here, just an affirmation of these tools and how pleasantly surprised I have been at their facility for my shop.
Last edited: