Search found 252 matches

by mqh77777
Thu Mar 30, 2023 6:15 am
Forum: PowerShell GUIs
Topic: Proper Format
Replies: 1
Views: 864

Proper Format

I am using a richtext output window. I am getting 2 elements of data from the local WMI and when it displays in the richtext box it is not aligned correctly. I probably missed it but is there a setting for the best format of your output? I've added 2 screenshots. The PS screen is how I need it to lo...
by mqh77777
Wed Mar 29, 2023 10:39 am
Forum: PowerShell GUIs
Topic: click close command not working
Replies: 6
Views: 1017

Re: click close command not working

this is the exact code I have

$buttonClose_Click={
$Close_Click = {$formCommands.Close()}
}

is this incorrect?
by mqh77777
Tue Mar 28, 2023 7:19 pm
Forum: PowerShell GUIs
Topic: click close command not working
Replies: 6
Views: 1017

Re: click close command not working

Hello. Yes I am using PowerShell Studio. Product: PowerShell Studio 2023 (64 Bit) Build: v5.8.217 OS: Windows 10 Pro (64 Bit) Build: v10.0.22621.0 Create new form. Name form. add 1 button to form called Cancel. Choose the following settings. SAPIEN PowerShell V5 Host (Windows Forms) compile form int...
by mqh77777
Tue Mar 28, 2023 10:27 am
Forum: PowerShell GUIs
Topic: click close command not working
Replies: 6
Views: 1017

click close command not working

Product: PowerShell Studio 2023 (64 Bit) Build: v5.8.217 OS: Windows 10 Pro (64 Bit) Build: v10.0.22621.0 Hello, I have a brand new form called $formCommands I added 1 button called Close. For the code behind this button I have this: $Close_Click = {$formCommands.Close()} I compile and run my form. ...
by mqh77777
Thu Jan 20, 2022 8:44 am
Forum: PowerShell Studio
Topic: CIM Explorer
Replies: 1
Views: 2010

CIM Explorer

Product: PowerShell Studio 2021 (64 Bit) Build: v5.8.193 OS: Windows 10 Pro (64 Bit) Build: v10.0.22000.0 *** Please add details and screenshots as needed below. *** Hello, I want to use the CIM Explorer. When I do a Search for this within PSS it brings me to the Sapien webpage. How do I get and use...
by mqh77777
Wed Jun 12, 2019 12:58 pm
Forum: PowerShell GUIs
Topic: gray out button based on user ID
Replies: 1
Views: 1252

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 mqh77777
Tue Mar 19, 2019 1:01 pm
Forum: PowerShell GUIs
Topic: richtextbox and array data
Replies: 1
Views: 1501

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 mqh77777
Tue Mar 05, 2019 7:13 am
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 7
Views: 3270

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 mqh77777
Mon Mar 04, 2019 1:42 pm
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 7
Views: 3270

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....
by mqh77777
Mon Mar 04, 2019 12:45 pm
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 7
Views: 3270

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...