Search found 6533 matches

by Alexander Riedel
Mon Apr 16, 2018 1:23 pm
Forum: Windows PowerShell
Topic: ActiveXPoSH V3 - Return Exit code
Replies: 5
Views: 392

Re: ActiveXPoSH V3 - Return Exit code

I have moved the topic to the general PowerShell forum.
by Alexander Riedel
Mon Apr 16, 2018 11:59 am
Forum: Windows PowerShell
Topic: ActiveXPoSH V3 - Return Exit code
Replies: 5
Views: 392

Re: ActiveXPoSH V3 - Return Exit code

Nope. Not going to work. You cannot transport objects across from PowerShell to VBScript. "myresults = ActiveXPosh.Execute("get-ADUser ADuserthatdoesntexist")" You assume that MyResults contains the values returned from Get-ADUser. It will not. "exitcode = ActiveXPosh.GetValue("$MyExitCode")" Since ...
by Alexander Riedel
Mon Apr 16, 2018 10:25 am
Forum: Windows PowerShell
Topic: ActiveXPoSH V3 - Return Exit code
Replies: 5
Views: 392

Re: ActiveXPoSH V3 - Return Exit code

Set your variable as needed, e..g $MyExitCode
Then use
exitcode = ActiveXPosh.GetValue("$MyExitCode")
Please note that this is returned as a string. If you need another type you will need to convert it according to your needs.
by Alexander Riedel
Mon Apr 16, 2018 7:01 am
Forum: Windows PowerShell
Topic: Populating Variables in External Text File
Replies: 2
Views: 382

Re: Populating Variables in External Text File

[Topic moved by moderator]
by Alexander Riedel
Sun Apr 15, 2018 11:51 am
Forum: PowerShell GUIs
Topic: ListView subitems not showing in Tile view
Replies: 12
Views: 442

Re: ListView subitems not showing in Tile view

[Topic moved by moderator]
by Alexander Riedel
Thu Apr 12, 2018 2:58 pm
Forum: PowerShell Studio
Topic: PrimalScriptHostImplementation can't read NTFS ADS
Replies: 8
Views: 1160

Re: PrimalScriptHostImplementation can't read NTFS ADS

I trimmed down your sample project a little more and it works fine as a script and packaged. See attached I think the main problem is that you use if(!Get-Content -Path $ScriptDirectory -Stream $stream)) { ...} which throws an error if the stream does not exist rather than just returning NULL as you...
by Alexander Riedel
Wed Apr 11, 2018 12:07 am
Forum: PowerShell Studio
Topic: PrimalScriptHostImplementation can't read NTFS ADS
Replies: 8
Views: 1160

Re: PrimalScriptHostImplementation can't read NTFS ADS

The cmdlet had the -Stream parameter since 3.0. So there must be something else at play here.
I will create a script tomorrow and package it. I'll post it here so you can try that on your end then.
We take it from there.
by Alexander Riedel
Tue Apr 10, 2018 9:01 am
Forum: PowerShell Studio
Topic: Inputbox Not Showing in Console
Replies: 4
Views: 1488

Re: Inputbox Not Showing in Console

Yeah, they don't use the original PowerShell console :D Pros and Cons. That's why you always need more than one tool.
by Alexander Riedel
Mon Apr 09, 2018 9:50 pm
Forum: Trial Software / Pre-sales Technical Questions
Topic: Additional seats for PS Studio best practice
Replies: 1
Views: 3837

Re: Additional seats for PS Studio best practice

Easy. Contact sales@sapien.com with your subscription number. Ask them to add two additional licenses to make it a multi-user subscription and how you would like to get billed. All three seats will always be in sync. Read this https://info.sapien.com/index.php/quickguides/managing-your-multi-user-su...