Write a service in powershell
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- 4100260298
- Posts: 5
- Last visit: Fri Aug 03, 2018 9:37 am
Write a service in powershell
I need to do some testing with a service. I'm wondering if it is possible to write a service with the appropriate handlers in powershell?
Re: Write a service in powershell
No. PowerShell is not appropriate for creating a service. It cannot respond to service control. You can use the SDK to create a service that can host PowerShell scripts. Look into the Window Platform SDK PowerShell samples.