Closed PatrickOnGit closed 1 year ago
The updated code base actually contains a full re-write of this function. It was required as a number of elements, such as the ValidateSet block for FocusName, are statically configured. This led to an issue as I had a scenario where the customer wanted to be able to rename these to different values. The updated code now pulls these values from a table in the DB and populates an argument completer, as well as shifting to ValidateScript. During the process, it became evident that the entire function could be substantially more efficient, along with several other functions. I've honestly been meaning to complete the updates and get them committed, but been super busy with work. Needing to get these updates in is why I haven't ever published to the PSGallery.
Closing this as there is no longer a Set-ADDOUStructure in v1.4.6, which is currently in the dev branch.
To simplify command line input for an operator, the parameter validation in Set-ADDOUStructure should be improved: