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.
Search found 237 matches
- Wed Jun 12, 2019 12:58 pm
- Forum: PowerShell GUIs
- Topic: gray out button based on user ID
- Replies: 1
- Views: 802
- Tue Mar 19, 2019 1:01 pm
- Forum: PowerShell GUIs
- Topic: richtextbox and array data
- Replies: 1
- Views: 700
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...
- Tue Mar 05, 2019 7:13 am
- Forum: PowerShell GUIs
- Topic: include files inside of .EXE or .MSI
- Replies: 6
- Views: 1591
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...
- Mon Mar 04, 2019 1:42 pm
- Forum: PowerShell GUIs
- Topic: include files inside of .EXE or .MSI
- Replies: 6
- Views: 1591
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}...
- Mon Mar 04, 2019 12:45 pm
- Forum: PowerShell GUIs
- Topic: include files inside of .EXE or .MSI
- Replies: 6
- Views: 1591
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...
- Mon Mar 04, 2019 11:08 am
- Forum: PowerShell GUIs
- Topic: include files inside of .EXE or .MSI
- Replies: 6
- Views: 1591
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 ...
- Fri Feb 22, 2019 7:46 am
- Forum: PowerShell GUIs
- Topic: script stays in taskman
- Replies: 1
- Views: 681
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 ...
- Fri Feb 01, 2019 7:39 am
- Forum: PowerShell GUIs
- Topic: Not running as different user
- Replies: 1
- Views: 656
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...
- Fri Nov 02, 2018 9:31 am
- Forum: PowerShell GUIs
- Topic: get-childitem
- Replies: 7
- Views: 1696
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...
- Fri Nov 02, 2018 9:19 am
- Forum: PowerShell GUIs
- Topic: get-childitem
- Replies: 7
- Views: 1696
Re: get-childitem
that too only returns 1 folder name.