PADT
PowerShell App Deploy Toolkit (PSADT) Examples
Example 1: Installing an MSI Package
Execute-MSI -Action Install -Path 'example.msi'Example 2: Displaying a Message Box
Show-InstallationPrompt -Message 'This installation will update your software.' -ButtonRightText 'Continue'Example 3: Logging Deployment Activity
Write-Log -Message 'Starting software installation.' -Source 'Deploy-Application'Example 4: Checking for Running Processes
$runningProcesses = Get-RunningProcesses -ProcessName 'notepad'
If ($runningProcesses) {
Stop-Process -Name 'notepad' -Force
}Example 5: Removing a Scheduled Task
Last updated