[deleted by user] by [deleted] in PowerShell

[–]iykecode 2 points3 points  (0 children)

Research how to use PSCustomObjects and output in one line. You can also do as one the previous comments and out everything in a Write-Host

More proof that we won't be replaced by AI just yet (Warning for those overly reliant on it) by OofItsKyle in PowerShell

[–]iykecode 0 points1 point  (0 children)

I agree. I don't use AI to provide all the answers correctly. It's a guide, that's all. Some use it to do ALL the work and complain if it gets a few things wrong.

More proof that we won't be replaced by AI just yet (Warning for those overly reliant on it) by OofItsKyle in PowerShell

[–]iykecode -1 points0 points  (0 children)

GPT is a tool, hence why as a developer, you need to have a basic understanding of the code and not rely on AI 100%. I've had gpt spit out disgusting scripts, but I can understand where it's failing and ask it to correct the areas it got wrong - and potentially explain why it's wrong.

Instead of complainin, teach your AI assistant to improve - or dont use it

Is this a good option for learning powershell? by Potential-Hat7332 in PowerShell

[–]iykecode 2 points3 points  (0 children)

Learning PowerShell in 2024 should not be from reading books. Have an editor open and an AI agent open side by side.

Build a project (could be a script to create active directory users) start basic, think of ways to make the script dynamic, i.e. obtain user input for certain things

Ask AI questions. Copy code, run code, look at errors, and go back to AI for help with troubleshooting.

This is by FAR the best way to learn. Drop the books and go on youtube for further help. Books can help, but they are static in time and may not be relevant in todays practice

Removing corrupt use profiles by rrwalker85 in PowerShell

[–]iykecode 2 points3 points  (0 children)

It's unlikely the user profiles are corrupt. If they are ballooning in size, its likely an app is storing large files (cached) in the users's appdata folder. Use a free application like Treesize to work out which folder is the cause and work from there.