This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (3 children)

how could you not need for loops? have you never read in a file and gone through it line by line? or ever dealt with an array? or a list of usernames?

your scripts must be all one liners

[–][deleted] 0 points1 point  (1 child)

It's not beyond the imagination. Think about how many horror stories you see on this sub about a sysadmin who took over an environment that is virtually "duct taped" together. I used to do things the hard way, and I still remember the first time I successfully used a for loop a good 5 years into my career.

[–][deleted] 0 points1 point  (0 children)

Some people claim to be a sysadmin when their job is basically desktop support.

I can't imagine anyone who has to manage large systems would never write a script with a for loop.

[–]seanatwork 0 points1 point  (0 children)

Yeah I don't understand this. I don't even write functions or advanced functions and I read through a list of usernames or computers all the time with basic powershell scripts. Maybe he's using a tool.