32 or 64 bit version of product: 64 bit
Operating system: Windows 10 1709 16299.1087
32 or 64 bit OS: 64 bit
I'm testing out the Service template, and simply taking the default template, adding a single Write-Host "Test" line within Startup.pss as such:
Code: Select all
if($global:bServicePaused -eq $false) #Only act if service is not paused
After packaging, I install the service via an elevated PowerShell window and can see the service via the Services console. The service starts successfully, however, nothing is ever written to the Application event log as expected.
I have searched this forum and found the following post from a year ago that had the same issue, although I'm not sure if a resolution was ever found:
I have attached the demo project I have tested with if it helps.