Support Forums

Search found 4594 matches

by davidc
Mon Apr 10, 2017 8:13 am
Forum: PowerShell Studio
Topic: how to easily access the generated .config file
Replies: 1
Views: 131

Re: how to easily access the generated .config file

I recommend keeping any settings outside of the config, because depending on the location and permissions, you might not be able to modify the config file. In addition, you want to make sure the code only works in a packaged environment, otherwise you could cause issues with the host's configuration...
by davidc
Fri Apr 07, 2017 11:26 am
Forum: PowerShell Studio
Topic: Unhandled exception on "Find All References"
Replies: 4
Views: 277

Re: Unhandled exception on "Find All References"

I believe we resolved the issue on our end. Does the trouble script contain any of the following cmdlets?

Clear-Variable
Set-Variable
Get-Variable
Import-LocalizedData
Tee-Object

If so, that is the likely cause of the crash and it will be resolved in the next service build.
by davidc
Fri Apr 07, 2017 8:22 am
Forum: PowerShell Studio
Topic: Unable to use nested modules in Module Project
Replies: 3
Views: 220

Re: Unable to use nested modules in Module Project

At the moment, the Module Project does not allow multiple instances of psm1, but we will see what we can do about allowing psm1 in sub-directories.

In the meantime, you can still dot source the psm1 files from your project or include them in the manifest.
by davidc
Thu Apr 06, 2017 9:31 am
Forum: PowerShell Studio
Topic: Make EXE out of 7 files that are being dot-sourced into one.
Replies: 5
Views: 210

Re: Make EXE out of 7 files that are being dot-sourced into one.

When you set Build = Include , PowerShell Studio will merge the files into a single script. The reference (Invoke-filename) functions will be defined within the generated script so it will not need to load the external file at run-time. But every time you call the function, it will invoke the code a...
by davidc
Wed Apr 05, 2017 3:38 pm
Forum: PowerShell GUIs
Topic: Variable not displaying correctly in a text Box
Replies: 2
Views: 90

Re: Variable not displaying correctly in a text Box

[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]

Try piping the output to Out-String:

Code: Select all

$textBox.Text = Get-ChildItem 'C:|FilePath' | sort LastWriteTime | select -last 1 | Select-Object LastWriteTime | ft -hidetableheaders | Out-String
by davidc
Wed Apr 05, 2017 8:29 am
Forum: PowerShell Studio
Topic: Unhandled exception on "Find All References"
Replies: 4
Views: 277

Re: Unhandled exception on "Find All References"

When you are invoking Find All References, what are you referencing? A variable or a function?
by davidc
Wed Apr 05, 2017 8:22 am
Forum: PowerShell Studio
Topic: Unhandled exception on "Find All References"
Replies: 4
Views: 277

Re: Unhandled exception on "Find All References"

Yes, we would be happy to help. You can upload the offending file our Supports Upload page:

https://www.sapien.com/support/upload

Once we have the file, we will try to reproduce the issue and hopefully find the cause.
by davidc
Wed Apr 05, 2017 8:17 am
Forum: Windows PowerShell
Topic: ExpandProperty dosent work
Replies: 4
Views: 349

Re: ExpandProperty dosent work

[TOPIC MOVED TO THE POWERSHELL FORUM BY MODERATOR]
by davidc
Wed Apr 05, 2017 8:15 am
Forum: PowerShell Studio
Topic: Make EXE out of 7 files that are being dot-sourced into one.
Replies: 5
Views: 210

Re: Make EXE out of 7 files that are being dot-sourced into one.

You don't need to dot source anymore, but it really depends on that the ps1 files do. Do they contain functions declarations or do they executing code? If they only contain function definitions, then use Shared = True . If they execute code, then set Shared = False and call the file's reference func...
by davidc
Tue Apr 04, 2017 11:28 am
Forum: Customer Service
Topic: Powershell Studio 2017 deactivated after update
Replies: 1
Views: 143

Re: Powershell Studio 2017 deactivated after update

Hello,

Unfortunately, I don't see a subscription associated with your account, so I’m unable to determine the issue.
Please email our sales department (include the subscription number and the exact error message) at sales@sapien.com and they will be able to assist you further.

Go to advanced search

cron