Anyone playing with Chat GPT for things like writing scripts?


hsehestedt

Well-known member
Pro User
VIP
Local time
5:20 AM
Posts
2,619
Location
Texas, USA
OS
Win11 Pro 23H2
I was a little slow to the party, but the other day I was having some nasty problems with my system and I realized that a couple of scripts could help me in my troubleshooting.

The problem is that I was going to need PowerShell to do what I needed to do and I'm just not well versed in PowerShell at all. So, I decided that now might be the time to see if all this noise I was hearing about Chat GPT was more than just a lot of hype.

I created an account, and asked it to write a script...

Holy sh*t! It spit back out a script that did exactly what I wanted along with an explanation of how it worked.

Next, I said something to the effect of "modify that script so that it does this and that". Once again, a flawless script.

I've got to say that this really weirds me out. I had always thought that actually writing code or scripts was a truly "human" thing, that the machines would not write their own code. I guess it shows how completely unimaginative I was.

How about everyone else here? Anyone else exploring this? I'd love to hear what all of you are doing with this tech.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
I've been dabbling with Chat GPT for scripting too! It's crazy how it can whip up scripts like nobody's business. Totally blew my mind too. It's like having a coding buddy who never sleeps. Loving it so far!
 

My Computer

System One

  • OS
    Mac OS
    Computer type
    Laptop
    Manufacturer/Model
    Apple MacBook Pro 14-inch (2022)
    CPU
    Apple M2 Pro
    Memory
    256gb
AI is really good for scripting, however its important to understand what the script does before running it. I have seen very rare cases of it messing up and creating a wrong script that messes something up, but for the most part it is indeed quite accurate and very good. I suggest you start a new chat every now and then to keep it from hallucinating.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell G15 5525
    CPU
    Ryzen 7 6800H
    Memory
    32 GB DDR5 4800mhz
    Graphics Card(s)
    RTX 3050 4GB Vram
    Screen Resolution
    1920 x 1080
    Hard Drives
    2TB Solidigm™ P41 Plus nvme
    Internet Speed
    800mbps down, 20 up
  • Operating System
    Windows 11
    Computer type
    Tablet
    Manufacturer/Model
    Lenovo ideapad flex 14API 2 in 1
    CPU
    Ryzen 5 3500u
    Motherboard
    LENOVO LNVNB161216 (FP5)
    Memory
    12GB DDR4
    Graphics card(s)
    AMD Radeon Vega 8 Graphics
    Hard Drives
    256 GB Samsung ssd nvme
I've been exploring Chat GPT for scripting too, and it's been quite the journey! It's amazing how it can whip up scripts like nobody's business. But, you know, as good as it is, there's always that little voice in the back of my head saying, “Double-check before you hit run.” That's why when it comes to something as important as essay writing, I prefer to stick with what I know works. I've found that relying on an assignment writing service like https://essays.edubirdie.com/assignment-writing-service gives me peace of mind about quality and plagiarism concerns. It's like having a safety net, you know?
 
Last edited:

My Computer

System One

  • OS
    Mac OS
    Computer type
    Laptop
    Manufacturer/Model
    Apple MacBook Pro 14-inch (2022)
    CPU
    Apple M2 Pro
    Memory
    256gb
Given how AI's are trained by feeding them existing content, I tend to believe they can regurgitate code that pre-existed online (by web crawling). Writing code for unresolved problems, yeah no.

Just remember, AI's have no way of testing their answers. It's like Google Page Rank, the more commonly repeated a searched answer is found, the more likely it will return the same response.
 

My Computer

System One

  • OS
    Windows 7
For writing scripts - no. Precisely because of how AI is trained, as mentioned here, I think the best way of using it could go towards doing something with the existing content rather than creating a new one. I recently read about using Chat GPT for web page classification and am testing it out. I still need to work on the prompts a little, but it looks promising. Done right, it will save me a lot of time for this complex task. And similar ones, like categorizing, tagging, anything of that type. I'm yet to look into the latest announcement about Chat GPT 4o, I only glanced yesterday. Curious to see how that goes.
 
Last edited:

My Computer

System One

  • OS
    Windows 10
What language are these scripts in? VBS. PEARL?. Can you lotbpostbsome examples that others might use?
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 OS build 22631.3593
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD
    Cooling
    fanless
    Internet Speed
    13Mbps
    Browser
    Brave, Edge or Firefox
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
Not used Chatgpt but I have asked copilot about writing a simple script and it worked. As a whole, I'm leery of it for this purpose because one's wording has to be exactly right to get the correct results.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 22631.3593
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Yeah, lots of buddies have used AI to generate some scripting stuff and the results have been really solid. Just like anything, you need to review it and make sure you understand what it's going to do before running it, but that goes for any script....even if it's 100% self written, written by a co-worker, found in stack-exchange, discussed in reddit, found on a forum, etc.

AI is the way of the future. People can either embrace it or scoff at it, but it's not going to be a passing fad. It's ability to pump out the basics of a script in just a few moments is awesome. Spend a few hours tweaking it to your situation, rather than a few hours learning the basics to get the script to a barely functional state.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink SEI8
    CPU
    Intel Core i5-8279u
    Motherboard
    AZW SEI
    Memory
    32GB DDR4 2666Mhz
    Graphics Card(s)
    Intel Iris Plus 655
    Sound Card
    Intel SST
    Monitor(s) Displays
    Asus ProArt PA278QV
    Screen Resolution
    2560x1440
    Hard Drives
    512GB NVMe
    PSU
    NA
    Case
    NA
    Cooling
    NA
    Keyboard
    NA
    Mouse
    NA
    Internet Speed
    500/50
    Browser
    Edge
    Antivirus
    Defender
    Other Info
    Mini PC used for testing Windows 11.
  • Operating System
    Windows 10 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom
    CPU
    Ryzen 9 5900x
    Motherboard
    Asus Rog Strix X570-E Gaming
    Memory
    64GB DDR4-3600
    Graphics card(s)
    EVGA GeForce 3080 FT3 Ultra
    Sound Card
    Onboard
    Monitor(s) Displays
    ASUS TUF Gaming VG27AQ. ASUS ProArt Display PA278QV 27” WQHD
    Screen Resolution
    2560x1440
    Hard Drives
    2TB WD SN850 PCI-E Gen 4 NVMe
    2TB Sandisk Ultra 2.5" SATA SSD
    PSU
    Seasonic Focus 850
    Case
    Fractal Meshify S2 in White
    Cooling
    Dark Rock Pro CPU cooler, 3 x 140mm case fans
    Mouse
    Logitech G9 Laser Mouse
    Keyboard
    Corsiar K65 RGB Lux
    Internet Speed
    500/50
    Browser
    Chrome
    Antivirus
    Defender.
Yeah, lots of buddies have used AI to generate some scripting stuff and the results have been really solid. Just like anything, you need to review it and make sure you understand what it's going to do before running it, but that goes for any script....even if it's 100% self written, written by a co-worker, found in stack-exchange, discussed in reddit, found on a forum, etc.

AI is the way of the future. People can either embrace it or scoff at it, but it's not going to be a passing fad. It's ability to pump out the basics of a script in just a few moments is awesome. Spend a few hours tweaking it to your situation, rather than a few hours learning the basics to get the script to a barely functional state.
Glad you agree

many even on this Forum think the whole idea of A.I is just B/S and remember A.I is at roughly the equivalent of a 6 month old infant --give it a few years -- !!!

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Do you know any coders aged six? I'm sure there is not one on this planet aged six months! AI is much older too.
 

My Computers

System One System Two

  • OS
    11 Pro 23H2 OS build 22631.3593
    Computer type
    Laptop
    Manufacturer/Model
    Acer Swift SF114-34
    CPU
    Pentium Silver N6000 1.10GHz
    Memory
    4GB
    Screen Resolution
    1920 x 1080
    Hard Drives
    SSD
    Cooling
    fanless
    Internet Speed
    13Mbps
    Browser
    Brave, Edge or Firefox
    Antivirus
    Webroot Secure Anywhere
    Other Info
    System 3

    ASUS T100TA Transformer
    Processor Intel Atom Z3740 @ 1.33GHz
    Installed RAM 2.00 GB (1.89 GB usable)
    System type 32-bit operating system, x64-based processor

    Edition Windows 10 Home
    Version 22H2 build 19045.3570
  • Operating System
    Windows 11 Pro 23H2 22631.2506
    Computer type
    Laptop
    Manufacturer/Model
    HP Mini 210-1090NR PC (bought in late 2009!)
    CPU
    Atom N450 1.66GHz
    Memory
    2GB
Back
Top Bottom