Skip to content

Minute Creator

Custom Powershell


Sample PowerShell Script

# $wsFile - Variable contains the Vault Web Service File object
# $vConn - Variable contains the Vault Connection
# jobParams - Variable contains the Job Parameters
# User commandlet Write-Output to log data to the Debug Log

# $filename = "ABC123"

$logtext = $wsFile.Name  + " " + $wsFile.Id + " file being processed"
$logfile = "C:\Temp2\mylogfile.txt"

Start-Process -FilePath "calc.exe"

$logtext | Out-File -FilePath $logfile -Append

Last Updated:

Tentech 2024