r/PowerShell • • 1d ago

Question Powershell coding help

Hi, I'm self learning powershell coding, I'm very new to this and trying my best. I'm using information from websites and mostly Ai to solve and help me on errors

Is there a way to connect powershell to websites? I've been copy pasting codes or taking screenshot on error code and sending to AI to help me out. Sending it manually everytime a new problem came out is wasting me too much time.

0 Upvotes

18 comments sorted by

View all comments

1

u/rsdovers 17h ago

The process to accomplish your goals has been explained in the previous comments. Get vs code connect it to GitHub copilot and use the prompt to get started. I have fully embraced AI coding for powershell scripting, and all models make mistakes. This is where the 15 years of writing powershell scripts manually comes in handy. I spend a lot of time fixing logic that the red underline can't fix. Yes, I haven't written a line of code in quite a while, but that is not to say I haven't had to correct code in that time. Read Don's book and it will give you a foundation to understand what vs code and GitHub copilot produces. Good luck in your journey.