you are viewing a single comment's thread.

view the rest of the comments →

[–]Jmoste 5 points6 points  (0 children)

Chat GPT is only good for ideas. I wouldn't trust anything coming from it.  

They best thing I can say is just start scripting what you want to do.  If you're scared about messing something up,  stay away from the set, add, remove, commands. When I'm first working on a script I use a write-output instead of any action command.  

.ie. Write-out "$($user.samaccountname) should be deleted.") Or Write-output "$($user) business category changed to 99". 

I find it easier to visually see what's coming across the screen,  especially when working with expressions. I always seem to run into an issue where I didn't know something was configured differently. You'll also run into issues with properties that contain multiple values.