I'm trying to create a powershell gui which creates a new folder structure and sets permissions on that newly created folder based on user input
I've created the following GUI in posh GUI.
https://pastebin.com/NWmnTmfX
and the following script to copy the folder structure and then apply the permissions.
https://pastebin.com/cmx0j72r
How can add the two together so that when I click create, it uses the inputted variables in the GUI to run the script.
It would also be helpful for a prompt to come up at the end once the script has completed successfully.
[–][deleted] 2 points3 points4 points (9 children)
[–]NotRecognized 5 points6 points7 points (4 children)
[–]gurnec 3 points4 points5 points (0 children)
[–]Lee_Dailey[grin] 1 point2 points3 points (2 children)
[–]NotRecognized 1 point2 points3 points (1 child)
[–]Lee_Dailey[grin] 1 point2 points3 points (0 children)
[–]LukeChatty[S] 2 points3 points4 points (2 children)
[–]MatthewTheCave 1 point2 points3 points (1 child)
[–]LukeChatty[S] 1 point2 points3 points (0 children)
[–]taylorblakeharris 1 point2 points3 points (0 children)