Spillman to PageGate Service Removal Script

Top  Previous  Next

# This script will remove the Spillman-PageGate-PowerScript windows service

# It must be run with administrator rights

 

# path to nssm.exe

$NssmPath = "THE PATH TO YOUR SCRIPT'S FOLDER\sp-pg-ps\nssm-2.24\win64\"

 

# name of service

$ServiceName = “Spillman-PageGate-PowerScript”

 

$NssmCommand = (Get-Command ($NssmPath + "nssm.exe")).Source

$PoShCommand = (Get-Command powershell).Source

& $NssmCommand remove $ServiceName confirm