This is a PowerShell script that allows you to quickly execute .msi, .exe, .bat, .cmd, and .vbs files with parameters and .ps1 and .sh files without parameters on a remote host by dragging and dropping the files into the prompt window.
This script is dependent upon psexec.exe (http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx) and plink.exe (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html). Both of these files need to be in the same folder as the ps1 plugin.
1. Place the psexec.exe, plink.exe, and quicklaunch.ps1 files in the same folder on a host that has the 32bit LANDESK console installed.
2. Have either Data Analytics or Support Tools installed.
3. Add new Right Click computer option as configured below:
Parameters (STools): -ep bypass -sta Path\quicklaunch.ps1 %”Computer”.”Network”.”TCPIP”.”Host Name”% %”Computer”.”Network”.”TCPIP”.”Address Unpadded”%
Parameters (DA): -ep bypass -sta Path\quicklaunch.ps1 <Computer.Network.TCPIP.Host Name> <Computer.Network.TCPIP.Address Unpadded>
*Note: All commands and files are sent over encrypted connections.
*Note: You will likely have to edit the PS1 file and add full paths to the psexec and plink files.
*Note: Old parameter was broken until 01/05/15 – I accidentally had pasted in a bad string. Also be sure to manually type the commands – copy paste may break due to the quotes changing during copy.
*Note: You must whitelist the LANDESK console to run without admin rights or be sure to install a console that does not launch elevated for this tool to work properly. The drag and drop functionality will be broken if the LANDESK console is launched elevated.