r/PowerShell • u/Moondoggy451 • 17m ago
Misc Converted my PS Script to PS7
I know there are plenty of AI haters out there but I wanted to get ahead of the switch from PS 5.1 to PS 7 but it's been too long since I did any PS coding and I didn't feel the urge to get back up to speed. So, as an alternative, I fed my script that's contains code for a GUI input form into Gemini AI and within seconds it converted my script to PS7. Needless to say I was impressed that Gemini AI could convert PS scripts.
1
Upvotes
1
u/keith-kld 0m ago
As I know, Copilot is very good at powershell script. Leo (Brave browser) is very bad at script. I have not tried chatGPT, Gemini, or Claude. even though they give you the script that can be run immediately, you should find out the gaps and errors, restrictions, etc. which can be derived from the script. Then improve it of your own accord. Note: The script given by AI is normally not optimized, or even bad or redundant. Human will check and improve it.