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.
ajoseph2500
Posts: 3
Joined: Tue Jan 07, 2020 8:53 am

How to disable event log entries in powershell service?

Post by ajoseph2500 » Tue Jan 07, 2020 9:00 am

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: 7214
Joined: Tue May 29, 2007 4:43 pm

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

Post by Alexander Riedel » Tue Jan 07, 2020 9:16 am

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: 3
Joined: Tue Jan 07, 2020 8:53 am

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

Post by ajoseph2500 » Tue Jan 07, 2020 2:11 pm

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: 7214
Joined: Tue May 29, 2007 4:43 pm

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

Post by Alexander Riedel » Tue Jan 07, 2020 3:32 pm

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.