Powershell service script
Posted: Fri Aug 24, 2018 6:38 am
Hello,
I am having a hard time to understand how the PowerShell Service Script works.
I have tried the ways in those 2 links:
https://www.sapien.com/blog/2017/07/12/ ... owershell/
https://www.sapien.com/blog/2018/02/27/ ... ript-2018/
Whenever I start the service i get the "access denied error 5" error message.
The Powershell script itself works perfectly and launches correctly, and does what it has to do whenever i launch the .ps1.
When i modify it as it says in "new-powershell-service-template-for-primalscript-2018" or create a service .exe as in "write-a-windows-service-in-powershell" I get the error message when launching the service.
I am having a hard time to understand how the PowerShell Service Script works.
I have tried the ways in those 2 links:
https://www.sapien.com/blog/2017/07/12/ ... owershell/
https://www.sapien.com/blog/2018/02/27/ ... ript-2018/
Whenever I start the service i get the "access denied error 5" error message.
The Powershell script itself works perfectly and launches correctly, and does what it has to do whenever i launch the .ps1.
When i modify it as it says in "new-powershell-service-template-for-primalscript-2018" or create a service .exe as in "write-a-windows-service-in-powershell" I get the error message when launching the service.