Limitation in Trial Version for Service

Ask your PowerShell-related questions, including questions on cmdlet development!
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.
This topic is 5 months and 4 weeks 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.
Locked
User avatar
nirmalks
Posts: 46
Last visit: Thu Oct 03, 2024 10:18 pm

Limitation in Trial Version for Service

Post by nirmalks »

Is there any limitation for PowerShell service in trial verison?
I created a service > service worked for some time and then when I try to run complied service again it just resets itself. I can clearly see in the log that it starts from scratch or basically resets. I've code in "function Invoke-MyService".

Thanks.
User avatar
nirmalks
Posts: 46
Last visit: Thu Oct 03, 2024 10:18 pm

Re: Limitation in Trial Version for Service

Post by nirmalks »

So I changed the sleep seconds here and I could notice it is actually checking before IF condition as log file resets exactly after below seconds.
I modified to 120 and could see log resetting after 120 seconds.
What's wrong??
if ($global:bServicePaused -eq $true)
{
Start-Sleep -Seconds 20 # if the service is paused we sleep longer between checks
}
else
{
Start-Sleep –Seconds 10 # a lower number will make your service active more often and use more CPU cycles
}
User avatar
Alexander Riedel
Posts: 8575
Last visit: Sat Nov 02, 2024 12:15 pm
Answers: 23
Been upvoted: 42 times

Re: Limitation in Trial Version for Service

Post by Alexander Riedel »

What exactly is "some time" ?
In which log do you see something and what do you mean by it "basically resets"?

I am moving this thread to the general PowerShell section as it seems that this is not product related but more of a PowerShell hurdle.
I would suggest to post a more comprehensive explanation of the problem accompanied by actual code samples or log entries, from wherever they might stem from.
Please keep in mind that those reading your post cannot access your computer or see your screen.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
Alexander Riedel
Posts: 8575
Last visit: Sat Nov 02, 2024 12:15 pm
Answers: 23
Been upvoted: 42 times

Re: Limitation in Trial Version for Service

Post by Alexander Riedel »

[Topic moved by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
nirmalks
Posts: 46
Last visit: Thu Oct 03, 2024 10:18 pm

Re: Limitation in Trial Version for Service

Post by nirmalks »

Original question was not answered - is there any limitation or not for service in trial mode? If no then I'll troubleshoot myself. I didn't ask for any assistance on PowerShell code that is part of Invoke-Service Start...function.
User avatar
brittneyr
Site Admin
Posts: 1803
Last visit: Tue Nov 05, 2024 11:31 am
Answers: 44
Been upvoted: 34 times

Re: Limitation in Trial Version for Service

Post by brittneyr »

There are no limits on code writing in PowerShell Studio while using the product in a trial. The trial will limit the GUI designer to 5 controls and all packaged scripts will expire in three days. If you intend to package your service as an executable, this is worth taking under consideration.
Brittney
SAPIEN Technologies, Inc.
This topic is 5 months and 4 weeks 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.
Locked