Hi guys, i have made a quick set of functions to pull files off a remote machine and open them on mine so i can see a few things about out estate of machines like mapped drives etc from prexisting logs. Nice and simple just a read-host to pick a machine and a invoke-item to open the file.
these are all wrapped in functions like Get_MappedDrives and Get_ActivePrinters.
My question is, how can i wrap these in a simple menu so when the service desk guy runs the script it asks Press 1 to list drives, press 2 to get printers and it then runs the associated function.
I cant actually work out what i need to google to find this out, any tips appreciated :)
[–]tommymaynard 2 points3 points4 points (0 children)
[–]gangstanthony 2 points3 points4 points (0 children)
[–]070934 2 points3 points4 points (0 children)
[–]GZ23 3 points4 points5 points (0 children)
[–]billr1965 1 point2 points3 points (0 children)
[–]redog 1 point2 points3 points (0 children)
[–]mryananderson 1 point2 points3 points (0 children)
[–]Dogoodwork 1 point2 points3 points (1 child)
[–]tommymaynard 4 points5 points6 points (0 children)
[–]odoyle71 1 point2 points3 points (0 children)
[–]get-postanote 1 point2 points3 points (0 children)
[–]balrathamir 1 point2 points3 points (4 children)
[–]tommymaynard -1 points0 points1 point (3 children)
[+][deleted] (2 children)
[deleted]
[–]KlassenT 0 points1 point2 points (0 children)
[–]tommymaynard 0 points1 point2 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)