|
|
|||||||
Please provide constructive feedback for a possible new UDF, not just some dribble to increase your post count. Thanks |
||||||||
|
|
|||||||
I'd use case $action = 'Add', but that is just a personal preference. I'd make this 2 UDFs Function ManageLocalGroup($computer, $LocalGroup, $ArrayOfNames, optional InsertOrReplace) Function CreateLocalUser($computer, $newUser, $NewPass, optional $LocalGroup) I see normal use as: 1) I need to create a local account and put in a specific local group 2) I need to update a local group on every PC to have (only) specific accts I'm a big believer in a UDF having only 1 function... although I can see the CreateLocalUser() to have an optional $delete parameter |
||||||||
|
|
|||||||
Thanks for the feedback Rad. I get what you mean and I was already sort of thinking that because in reality the "create" user actually needs to have/allow a few more parameters not including groups which would make the parameters way too encumbering compared to most UDF scripts. I'll review making it into a couple UDFs as suggested over the week as I get time. (post 7766) |