Search found 29 matches

by gareth.jacobs
Mon Aug 20, 2018 2:23 pm
Forum: PowerShell Studio
Topic: [Parameter(DontShow)] Parameter
Replies: 1
Views: 1020

[Parameter(DontShow)] Parameter

Product, version and build: PowerShell Studio 2018 v5.5.154 32 or 64 bit version of product: 64 Operating system: Windows 10 Enterprise 32 or 64 bit OS: 64 Simple question: Does PowerShell Studio support the [Parameter(DontShow)] parameter in functions? If I edit a parameter with [Parameter(DontShow...
by gareth.jacobs
Wed Sep 20, 2017 6:25 pm
Forum: PowerShell Studio
Topic: Dot Loaded File Compiler Error at Runtime
Replies: 4
Views: 1361

Re: Dot Loaded File Compiler Error at Runtime

Your 2nd post was the clue. The files (in fact all my files) are UTF8 by default. I changed them to ASCII (Windows-1252); saved and recompiled and the problem went away. I have never changed to default file format before now and, as I mentioned, this isn't a problem for scripts that are not dot sour...
by gareth.jacobs
Wed Sep 20, 2017 3:09 pm
Forum: PowerShell Studio
Topic: Dot Loaded File Compiler Error at Runtime
Replies: 4
Views: 1361

Dot Loaded File Compiler Error at Runtime

Product, version and build: PowerShell Studio 2017 v5.4.143 32 or 64 bit version of product: 64 Operating system: Windows 10 Build 14393 32 or 64 bit OS: 64 Create the following code in a .ps1 function Get-RandomPassword { param ( [Parameter(Mandatory = $false)] [ValidateRange(3, 256)] [Alias('L')] ...
by gareth.jacobs
Wed Aug 09, 2017 1:19 pm
Forum: PowerShell Studio
Topic: Symantec Antivirus Alerts for Heur.AdvML.B on Script Engines
Replies: 1
Views: 2509

Symantec Antivirus Alerts for Heur.AdvML.B on Script Engines

Product, version and build: PowerShell Studio 2017 v5.4.143 32 or 64 bit version of product: 64 Operating system: Windows 10 Build 14393 32 or 64 bit OS: 64 Symantec Antivirus just issued the following Heur.AdvML.B alert on the Script Engine: Scan type: Auto-Protect Scan Event: Risk Found! Security ...
by gareth.jacobs
Wed Aug 02, 2017 12:33 pm
Forum: PowerShell Studio
Topic: Compiled Code Object Reference Error
Replies: 6
Views: 1759

Re: Compiled Code Object Reference Error

Thanks David. I have found the answer here: https://www.sapien.com/blog/2015/12/07/parsing-parameters-for-a-script-in-an-executable-file It seems that parsing parameters to a compiled executable is entirely different and the traditional method used by scripts. I have been compiling PowerShell code f...
by gareth.jacobs
Tue Aug 01, 2017 4:10 pm
Forum: PowerShell Studio
Topic: Compiled Code Object Reference Error
Replies: 6
Views: 1759

Re: Compiled Code Object Reference Error

Interesting. When you use the -? parameter on a ps1 script it outputs your specified parameters plus [<CommonParameters>].

Ignoring -? for now, what about the command line parameters being ignored in the compiled code, but work from a script?
by gareth.jacobs
Tue Aug 01, 2017 3:24 pm
Forum: PowerShell Studio
Topic: Compiled Code Object Reference Error
Replies: 6
Views: 1759

Compiled Code Object Reference Error

Product, version and build: PowerShell Studio 2017 v5.4.143 32 or 64 bit version of product: 64 Operating system: Windows 10 Build 14393 32 or 64 bit OS: 64 Hi Using the following simple code: param ( [Alias('h')] $help, [Parameter(ParameterSetName = 'add')] $add, $remove ) Write-Host "Hello World" ...
by gareth.jacobs
Tue Aug 01, 2017 2:33 pm
Forum: PowerShell Studio
Topic: Active Tab Jumps To Another Tab During Run (F5)
Replies: 4
Views: 1278

Re: Active Tab Jumps To Another Tab During Run (F5)

So far it looks like it is fixed.

I will let you know if it does it again.

Thanks
G
by gareth.jacobs
Wed Jul 26, 2017 9:02 pm
Forum: PowerShell Studio
Topic: Active Tab Jumps To Another Tab During Run (F5)
Replies: 4
Views: 1278

Active Tab Jumps To Another Tab During Run (F5)

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: SAPIEN PowerShell ...