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.
Limitation in Trial Version for Service
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.
Re: Limitation in Trial Version for Service
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
}
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
}
- Alexander Riedel
- Posts: 8575
- Last visit: Sat Nov 02, 2024 12:15 pm
- Been upvoted: 42 times
Re: Limitation in Trial Version for Service
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.
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.
SAPIEN Technologies, Inc.
- Alexander Riedel
- Posts: 8575
- Last visit: Sat Nov 02, 2024 12:15 pm
- Been upvoted: 42 times
Re: Limitation in Trial Version for Service
[Topic moved by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Limitation in Trial Version for Service
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.
Re: Limitation in Trial Version for Service
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.
SAPIEN Technologies, Inc.