Search found 6516 matches

by Alexander Riedel
Mon Apr 16, 2018 3:05 pm
Forum: PowerShell Studio
Topic: Execution Restrictions
Replies: 9
Views: 954

Re: Execution Restrictions

Have you verified that the MAC address specified for the restriction and the primary MAC address for the target system match?
by Alexander Riedel
Mon Apr 16, 2018 3:03 pm
Forum: PowerShell Studio
Topic: BUILDING EXE SECURITY
Replies: 3
Views: 401

Re: BUILDING EXE SECURITY

The encryption is meant to keep the casual observer away. It uses AES. Due to the nature of PowerShell however the code has to exist on a target machine in clear text at the time of execution. You can prevent logging by setting execution restrictions, but you cannot prevent anyone from looking at a ...
by Alexander Riedel
Mon Apr 16, 2018 1:26 pm
Forum: PowerShell Studio
Topic: Execution Restrictions
Replies: 9
Views: 954

Re: Execution Restrictions

"are not able to run it". Can you provide the specific error, message or behavior?
by Alexander Riedel
Mon Apr 16, 2018 1:23 pm
Forum: Windows PowerShell
Topic: ActiveXPoSH V3 - Return Exit code
Replies: 5
Views: 299

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: 299

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: 299

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: 287

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: 381

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: 1114

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: 1114

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.