r/PowerShell • u/rsdovers • Mar 25 '26
Question What am I missing
I have used VSCode with Copilot and different Claude models, but I have to often correct the output generated. I have used Copilot when it was mostly code completion and now with the Plan process I am still not getting accurate code from the plan. What am I missing? I read all of the blogs and press releases where AI built this complex application without touching the code. Maybe that is it. With the new Plan process I haven't written one line of code. However, I sure have had to correct several things that were discussed in the planning process. If a simple Powershell script can't be written without a fair amount of handholding am I doing something wrong or is what I am reading not completely accurate. I can't see this taking the job of a very experienced Powershell scripter, but for entry level I see a challenge ahead.
View all comments
Show parent comment
1
u/MyOtherSide1984 Mar 25 '26
For sure this! I've asked it for solutions and ended up piecing together the options to make an even better result.
Like today, I was iterating over an array, of which I was also modifying within the loop. Didn't know this was going to be such a problem so I just dumped it into ChatGPT. Most of its output was silly stuff I didn't care about, but the nugget of info I needed was hidden in there and it was perfect!
Foreach($Object in @($myArray)){do-stuff}Didn't know I could do it like that and modify the array inside. It takes a sort of "snap shot" of the array. Much faster to use AI in some instances, but a massive waste of time very often lol