Add remote scripting options to Open Device menu
3 posts · Closed
Good morning,
I would like to request a feature.
Under Options | Remote Scripting .. or Remote PowerShell, would you add a second checkbox? This second checkbox would add the script to the "Open Device..." fly-out menu, like the Options | Program Options | Applications {tab} (it doesn't have to add it here, just making it an option on the "Open Device..." fly-out menu). This way you can right-click to run the script. The checkboxes could be both on, both off, or toggled however needed.
My thoughts are: I would like to add "Get-WUInstall -AcceptAll -AutoReboot" via the Remote PowerShell, but I don't want it to run against all machines in my scans (this will force all Windows updates and then reboot). I would like to uncheck the box for being active during scans, but have another box that would allow it to be selected from the right-click "Open Device..."
I know I can use the Options | Program Options | Applications {tab} and program my own script or set of commands to do this; I am just thinking that since the software has PowerShell and scripting built in, it would allow you to add it to the "Open Device..." fly-out menu.
Thoughts?
Thanks -WS
We thought about that, but then decided not to do it because:
1) For PowerShell, it simply launches powershell.exe and feeds in the script. There is really no integration and doing something like powershell.exe -File myscript.ps1 in the Applications tab is the exact equivalent.
2) For VBScript, although it's integrated into the app, a script would have to be different. There would be no Input.* or Output.* objects, and WScript would be available instead. It is simpler to specify cscript.exe myscript.vbs or wscript.exe myscript.vbs.
Alternatively you could generate a batch file Actions - Create Batch File as shown below and execute it separately. This way you will have a complete log of succeeded and failed commands:
[image: https://i.imgur.com/aLY3Zs9.png]
Thanks for the explanation. Great thoughts and I am in agreement. -WS