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:
- if($global:bServicePaused -eq $false) #Only act if service is not paused
- {
- Write-Host "Test"
- }
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:
viewtopic.php?f=12&t=12423
I have attached the demo project I have tested with if it helps.