Search found 12 matches

by Genx13
Wed Oct 31, 2018 8:06 am
Forum: PowerShell GUIs
Topic: SendPingAsync Hanging when included in e
Replies: 5
Views: 486

Re: SendPingAsync Hanging when included in exe

Pings are open on both systems firewalls. I can get results from both Admin and Non Admin ISE. I'm not familiar with STA mode?
Also the loop is set to break after 3 failed attempts so I would expect it to continue after a few minutes at most.
by Genx13
Wed Oct 31, 2018 7:01 am
Forum: PowerShell GUIs
Topic: SendPingAsync Hanging when included in e
Replies: 5
Views: 486

SendPingAsync Hanging when included in e

I've got this code to check if a system is online, it works fine in Powershell ISE but when I compile it into an exe the exe will hang and not continue. Im not sure why, any help would be appreciated. I don't get any error or anything. [int]$Counter = '0' do { $PingTask = (New-Object System.Net.Netw...
by Genx13
Thu Oct 11, 2018 12:57 pm
Forum: PowerShell GUIs
Topic: Responsive Forms
Replies: 5
Views: 521

Re: Responsive Forms

Is there any other way to show the progress during a file copy? Would a Marquee Progress bar work?

Do you have any recommendations for show progress on a file copy, that could show a percentage done or anything?

Would Copy-WithProgress work better?
by Genx13
Thu Oct 11, 2018 12:38 pm
Forum: PowerShell GUIs
Topic: Responsive Forms
Replies: 5
Views: 521

Re: Responsive Forms

So I looked again at the "Button-Start Job" code along with a longer look at the Creating Responsive Forms and Responsive Loops. I think It's starting to sink in a bit I'm still not getting something. I used your "Demo-JobChildForm" as a template, I have a main form with one button that opens the ch...
by Genx13
Tue Oct 09, 2018 6:24 am
Forum: PowerShell GUIs
Topic: Responsive Forms
Replies: 5
Views: 521

Responsive Forms

I'm having trouble wrapping my head around the responsive forms with the examples from the articles below. Does anyone have a simple form that copies files or something they could share using this method. I really think I just need to see an example of a working script that I can dissect. https://ww...
by Genx13
Tue Oct 02, 2018 9:28 am
Forum: PowerShell GUIs
Topic: Project .exe Module .dll Could not load file assembly
Replies: 6
Views: 539

Re: Project .exe Module .dll Could not load file assembly

So here is an update I did get it to work after some more trial and error, first the Install-Module NTFSSecurity Was the right track. I didn't realize the module was 64bit (which could have been because I was running 64bit PS) so it was put in the SysWOW64 Module Directory. After I figured that out ...
by Genx13
Mon Oct 01, 2018 11:09 am
Forum: PowerShell GUIs
Topic: Project .exe Module .dll Could not load file assembly
Replies: 6
Views: 539

Re: Project .exe Module .dll Could not load file assembly

Yes
Im using Powershell Studio to build the .exe, It does work if I export it as a .ps1 file.
by Genx13
Mon Oct 01, 2018 10:48 am
Forum: PowerShell GUIs
Topic: Project .exe Module .dll Could not load file assembly
Replies: 6
Views: 539

Re: Project .exe Module .dll Could not load file assembly

I ran the Install-Module NTFSSecurity Cleared and rebuilt the module cache. Re-Built .exe and Im getting the same error. Add-NTFSAccess : Could not load file or assembly 'AlphaFS, Version=2.2.0.0, Culture=neutral, PublicKeyToken=4d31a58f7d7ad5c9' or one of its dependencies. The system cannot find th...
by Genx13
Mon Oct 01, 2018 10:01 am
Forum: PowerShell GUIs
Topic: Project .exe Module .dll Could not load file assembly
Replies: 6
Views: 539

Project .exe Module .dll Could not load file assembly

Using Powershell Studio 2017 I have a Script that works normally as a .ps1 that uses the NTFSSecurity Module ( https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85#content ). If I Build the same files into a .exe the module is imported successfully, but when it com...
by Genx13
Tue May 29, 2018 8:29 am
Forum: Windows PowerShell
Topic: Powershell Studio Script not returning data
Replies: 5
Views: 905

Re: Powershell Studio Script not returning data

I was able to use part of the suggested solution but I could never get the results to return what I was actually looking for. Below is what I'm currently using and is filtering based off of the supplied variable. The $csv gets imported into a datagrid that displays the results. Thanks for all the he...