How to disable event log entries in powershell service?

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 4 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
ajoseph2500
Posts: 7
Last visit: Wed Sep 16, 2020 4:34 pm

How to disable event log entries in powershell service?

Post by ajoseph2500 »

To help you better we need some information from you.

*** Please fill in the fields below if you are currently using a Trial Version of the Product. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build: SPS19Setup_5.6.170_110119_x64
32 or 64 bit version of product: 64 bit
Operating system: Windows 10
32 or 64 bit OS: 64-bit

*** Please add details and screenshots as needed below. ***

I have created windows service in powershell, however I have noticed that event log entries are created when the service is run which is not desired. Is there any way to disable this feature? Thank you.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: How to disable event log entries in powershell service?

Post by Alexander Riedel »

That is not exposed to be used by PowerShell at the moment. For what reason is that bothersome?
Alexander Riedel
SAPIEN Technologies, Inc.
ajoseph2500
Posts: 7
Last visit: Wed Sep 16, 2020 4:34 pm

Re: How to disable event log entries in powershell service?

Post by ajoseph2500 »

It's a request by our client. So there is no way to turn off this feature in Powershell Studio? Normal windows services do not automatically create Event Viewer log entries when the service is started/stopped etc.
User avatar
Alexander Riedel
Posts: 8478
Last visit: Tue Mar 26, 2024 8:52 am
Answers: 19
Been upvoted: 37 times

Re: How to disable event log entries in powershell service?

Post by Alexander Riedel »

Not at the moment. We will add the ability in one of the next service builds. Plenty of services create log entries when starting. Specially if they are not system services it adds a security level by being able to audit the start of a third party service. So the default will still be *on*, as it is in the underlying .NET class, but we will add an option to turn it off.
Alexander Riedel
SAPIEN Technologies, Inc.
This topic is 4 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.