Search found 237 matches

by mqh777
Wed Jun 12, 2019 12:58 pm
Forum: PowerShell GUIs
Topic: gray out button based on user ID
Replies: 1
Views: 234

gray out button based on user ID

Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.163
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0

How do you gray out a button based on user ID? I only want a handful of users to be able to press a certain button on a form.
Thank you.
by mqh777
Tue Mar 19, 2019 1:01 pm
Forum: PowerShell GUIs
Topic: richtextbox and array data
Replies: 1
Views: 215

richtextbox and array data

I am doing a gwmi of a key. This key returns an array of data. Example: {1,16,5,7} if I run the following in PowerShell ISE it works. $Reason = (gwmi -ComputerName 'RemoteSystem' -Class mbam_volume -Namespace root\microsoft\mbam).ReasonsForNoncompliance $Reason It will return 1 16 5 7 But I can't ge...
by mqh777
Tue Mar 05, 2019 8:13 am
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 6
Views: 436

Re: include files inside of .EXE or .MSI

Yes, I had found that same web page. I now have this working (almost) I can make it run my .EXE when I install the .MSI which is very cool but only if the .EXE is already on the machine. It has to be in c:\temp\ for the .MSI to see it. I tried to add the file within the .MSI but it never gets copied...
by mqh777
Mon Mar 04, 2019 2:42 pm
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 6
Views: 436

Re: include files inside of .EXE or .MSI

on the custom actions I have 4 different ways to run it. Immediately When the system is being modified (deferred) During installation rollback After the system as been successfully modified (commit) How do you run it on the Load Event? Do you mean when the Form Loads? $form1_Load={ & .\MyCustom.exe}...
by mqh777
Mon Mar 04, 2019 1:45 pm
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 6
Views: 436

Re: include files inside of .EXE or .MSI

Product: PowerShell Studio 2018 (64 Bit) Build: v5.5.155 OS: Windows 10 Enterprise (64 Bit) Build: v10.0.17763.0 Target machines are all Windows 10 - 1709. Local PowerShell version on each Windows 10 workstation is 5.1 Within the Script of my Form do I need to call the .EXE I want to run? i.e. $form...
by mqh777
Mon Mar 04, 2019 12:08 pm
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 6
Views: 436

include files inside of .EXE or .MSI

I've been playing around with .MSI creation within PowerShell Studio. Under Settings \ Files-Folders I've pointed to an .EXE that displays a GUI. Under Settings \ Custom Actions I've pointed to the .EXE and used the INSTALLDIR default. I've said to Run at Installation. In my script I've tried using ...
by mqh777
Fri Feb 22, 2019 8:46 am
Forum: PowerShell GUIs
Topic: script stays in taskman
Replies: 1
Views: 249

script stays in taskman

I have a form that is compiled into an .EXE. It displays a message saying your system will reboot in 5 min, please close your apps. I've run this on a few different machines and on 2 of them after the reboot this compiled .exe was STILL showing as a Process in TaskMan and the machine kept rebooting ...
by mqh777
Fri Feb 01, 2019 8:39 am
Forum: PowerShell GUIs
Topic: Not running as different user
Replies: 1
Views: 219

Not running as different user

I have a form that when compiled will just run some code, no interaction with the end user. This code when run from PowerShell ISE works as expected. It changed the Chrome Browser homepage to what you specify. $form1_Load={ $policyexists = Test-Path HKLM:\SOFTWARE\Policies\Google\Chrome $policyexist...
by mqh777
Fri Nov 02, 2018 9:31 am
Forum: PowerShell GUIs
Topic: get-childitem
Replies: 7
Views: 654

Re: get-childitem

Here is the entire code for the button on our Form. Yes, the RTB is set to multiline and we have over 200 folders on this share. $buttonHasScanstateRun_Click={ $statusbar1.text = 'Checking to see if scanstate has been run on this machine...' $richtextbox_output.Clear() $TextPC = $PCNameBox.Text $ser...
by mqh777
Fri Nov 02, 2018 9:19 am
Forum: PowerShell GUIs
Topic: get-childitem
Replies: 7
Views: 654

Re: get-childitem

that too only returns 1 folder name.