Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installs the Papercut SMTP Server
# Using 5.1.23 because 5.1.70 has a bug that prevents the GUI from opening
$tag = "5.1.23"
$downloadUrl = "$tag/Papercut.Setup.exe"
$outputFileName = "$($env:TEMP)\Papercut.Setup.exe"
# Download
del $outputFileName -Force -ErrorAction SilentlyContinue
Invoke-WebRequest $downloadUrl -OutFile $outputFileName
# Install
& $outputFileName /install /passive
# Set to delayed automatic start, then start the background service
sc.exe config PapercutServerService start= delayed-auto
net start PapercutServerService
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.