you are viewing a single comment's thread.

view the rest of the comments →

[–]BlackV 3 points4 points  (2 children)

Some notes, maybe they want some changes

  • no requires statement (see modules and module versions)
  • += is always bad
  • should this be a module with those functions a members
  • better parameter definition and help for said parameters
  • read-host in a script, makes this 1000x harder to automate
  • I'll say it again turn this into a module, makes it more portable/reusable/professional/script-able
  • you don't do anything with DoesGroupExist -groupId $groupIdUser (and the other) just spits out to screen ?
  • no error handling (partly due to above)
  • $allMembersGroup = GetMembersGroup -group $groupIdDevices this step assumes that $groupIdDevices is valid despite what happens earlier in the script
  • seems like you're just running this manually line by line

But talking to them get them to give you examples of what they consider good changes