Hey guys. I want to start adding some scripts to the custom menu to help our service desk team but can't seem to work out how to provide input to a script.
My simple one to start with will just have them provide SAMaccountName.
As the script is run server side they can not use read-host so how can i provide a input box? I'm guessing that I need to use the 'Custom Html File' but as there is no template etc I have no idea how that should be written.
I have the powershell script in \ServiceDesk\integration\custom_scripts and I'm calling it like this Powershell.exe
-File "Scriptname.ps1" -JSONfile $COMPLETE_V3_JSON_FILE -SamAccountName "Pass this in some how"
-ExecutionPolicy ByPass -NoLogo
I'm expecting to see the JSON file in same folder (when script runs).
If anyone can get me started it would be appreciated.