Search found 25 matches

by jpbobrek
Wed Aug 10, 2016 9:35 pm
Forum: PowerShell
Topic: Will exe compiled scripts that use ActiveDirectory module run on systems that do not have it installed?
Replies: 3
Views: 1842

Will exe compiled scripts that use ActiveDirectory module run on systems that do not have it installed?

All of my systems have the AD module installed, but I'm trying to write a script that will execute on new Win7/Win8/Win10 systems (without the AD module installed). Will a script compiled with Powershell Studio 2016 that uses the ad module run on systems that do not have it? I'm guessing it will not...
by jpbobrek
Mon Aug 08, 2016 1:35 pm
Forum: PowerShell GUIs
Topic: Script only runs correctly when "Run Project from Console"
Replies: 3
Views: 1974

Re: Script only runs correctly when "Run Project from Console"

Thanks again Jvierra!! You Rock! That allowed it to compile and keeps it running in the background! while(1){sleep -milli 100} So, every .1 seconds, it checks to see if a removable storage device is inserted. Is that right? Honestly, I don't even know why the code gets to that loop in the exe form. ...
by jpbobrek
Sun Aug 07, 2016 10:18 pm
Forum: PowerShell GUIs
Topic: Script only runs correctly when "Run Project from Console"
Replies: 3
Views: 1974

Script only runs correctly when "Run Project from Console"

I'm on the latest version of Sapien PowerShell Studio on a x64 Win10 box, but I'm writing this script to run on all of our business systems (x64 Win 7, 8, and 10). The script is intended to run in the background to wait for the insertion of a removable storage device and then displays a form with Ag...
by jpbobrek
Sun Aug 07, 2016 9:18 am
Forum: PowerShell GUIs
Topic: Returning which button was clicked from a form
Replies: 4
Views: 2129

Re: Returning which button was clicked from a form

Thank you, Thank you!

$button1.DialogResult = 'Yes' is the piece I was missing. I set these values on the button properties and called the script per your suggestions and it works great. Simple thing now that I know, but it was kicking my butt! I'm still green. :D
by jpbobrek
Sun Aug 07, 2016 1:10 am
Forum: PowerShell GUIs
Topic: Returning which button was clicked from a form
Replies: 4
Views: 2129

Returning which button was clicked from a form

I've got a script that is registering a WMI event. When that even occurs, its calling a form (Call-MainForm_psf). The form only has some agreement verbiage and has two buttons: Agree Disagree The button code in the form itself only has a command to hide the form (otherwise the form won't close and r...