Thank you very much for your help.
I have found the problem.
Because there are no global parameters in different functions.
Search found 26 matches
- Sat Jan 01, 2022 11:43 pm
- Forum: PowerShell Studio
- Topic: Get Error when running service generated by Powershell Studio
- Replies: 2
- Views: 1976
- Sat Jan 01, 2022 10:51 am
- Forum: PowerShell Studio
- Topic: Get Error when running service generated by Powershell Studio
- Replies: 2
- Views: 1976
Get Error when running service generated by Powershell Studio
Product: PowerShell Studio 2021 (64 Bit) Build: v5.8.196 OS: Windows 10 Pro (64 Bit) Build: v10.0.19043.0 PowerShell version(s): 5.1.19041.1320 When the service is started, there is an error message in the event log, and the service is not operating. error message: Line 167: Cannot bind argument to ...
- Sat Sep 29, 2018 12:34 am
- Forum: PowerShell
- Topic: Service will be sluggish when scrpit encounters error
- Replies: 12
- Views: 5586
- Thu Sep 27, 2018 8:48 pm
- Forum: PowerShell
- Topic: Service will be sluggish when scrpit encounters error
- Replies: 12
- Views: 5586
Re: Service will be sluggish when scrpit encounters error
Jason. You are not trapping errors. Can you please post the complete service script. Complete script # Services lab cls $logFile = "c:\log\srvlab1.txt" $sourcefolder = "C:\TripodTechLab\temp\lab\" $FilesArray = Get-ChildItem $sourcefolder $Status = $true $aa = 0 $aa >> $logfile ...
- Thu Sep 27, 2018 8:42 pm
- Forum: PowerShell
- Topic: Service will be sluggish when scrpit encounters error
- Replies: 12
- Views: 5586
- Fri Sep 21, 2018 1:56 am
- Forum: PowerShell
- Topic: Service will be sluggish when scrpit encounters error
- Replies: 12
- Views: 5586
Re: Service will be sluggish when scrpit encounters error
service-lab1.ps1 sourcefilder content 6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg and other files I used try and catch, the service still stopped working. if get error. This is not a permission issue. The working directory in the c:\ drive. i know is 6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg file name to leade...
- Wed Sep 19, 2018 4:30 am
- Forum: PowerShell
- Topic: Service will be sluggish when scrpit encounters error
- Replies: 12
- Views: 5586
Re: Service will be sluggish when scrpit encounters error
However, if it works as a script, the script will not stop.
- Wed Sep 19, 2018 3:13 am
- Forum: PowerShell
- Topic: Service will be sluggish when scrpit encounters error
- Replies: 12
- Views: 5586
Re: Service will be sluggish when scrpit encounters error
with what options? For what platform? Script Engines: Target : Microsoft Windows 64 bit. SAPIEN Powershel V3 Host(windows Service) "Some error": What exactly does that mean? some file the name content @, example: 6X@CSKA[)JY5SJQ2(08-30-14-44-41).jpg Example Code: $Filesarray = Get-ChildIte...
- Tue Sep 18, 2018 12:33 am
- Forum: PowerShell
- Topic: Service will be sluggish when scrpit encounters error
- Replies: 12
- Views: 5586
Service will be sluggish when scrpit encounters error
To help you better we need some information from you. *** Please fill in the fields below. 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: PowerShell Studio ...
- Thu Nov 09, 2017 11:25 pm
- Forum: PowerShell
- Topic: Install fail
- Replies: 3
- Views: 2261