This is a worklet that will install Splashtop Streamer (business account required). A Deployment package needs to be created first, this will generate your URL that can go into the URL variable field. The Code variable is your Deployment code for that specific deployment.
Evaluation Code:
#REQUIRES -Version 5.0
<#
.SYNOPSIS
This Test script checks to see if Splashtop is installed
.DESCRIPTION
This script queries the WMI class Win32_Product for the 'Splashtop Remote Server' package and exits with 0 if it is found
.Notes
File Name : splashtopInstalled.ps1
Author : reuben_f
Prerequisite : WMF 5.0 or higher
#>
#Handle Exit Codes:
trap { $host.ui.WriteErrorLine($_.Exception); exit 90 }
function splashtopInstalled {
param (
[switch]$Debug = $false
)
$packages = $(Get-WmiObject -Class Win32_Product -Filter 'Name="Splashtop Streamer"').Name
$len = $packages.Length
if ($len -gt 0) {
if ($Debug) {Write-Host "Splashtop Streamer is installed" ; break }
exit 0
} else {
if ($Debug) {Write-Host "Splashtop Streamer is NOT installed" ; break }
exit 1
}
}
. splashtopInstalled
Remediation Code:
#REQUIRES -Version 2.0
<#
.SYNOPSIS
This script allows an admin to install Splashtop Streamer for the Default Group.
.DESCRIPTION
This script downloads the installer into c:\\Windows\Temp, executes it silently, and cleans up.
This script may not work on all systems. Modify to fit your needs
.NOTES
File Name :Splashtop_Install.ps1
Author :reuben_f
Prerequisite :PowerShell V2 over win7 and upper
#>
#Handle Exit codes:
trap { $host.ui.WriteErrorLine($_.Exception); exit 90 }
function Splashtop_Install{
#############Change the settings in this block#######################
$Save_Dir="c:\\Windows\Temp"
$URL="Your Deployment URL"
$Code="Your Deployment Code"
#####################################################################
Try {
(new-object System.Net.WebClient).DownloadFile("$URL", "$Save_Dir\splashtop_streamer.exe")
Start-Process "$Save_Dir\splashtop_streamer.exe" -ArgumentList "prevercheck /s /i dcode=$Code,confirm_d=0,hidewindow=1" -Wait
Remove-Item "$Save_Dir\splashtop_streamer.exe"
exit 0
}
Catch {
exit 1
}
}
Splashtop_Install