Search found 13684 matches

by jvierra
Fri Aug 23, 2019 11:46 am
Forum: Windows PowerShell
Topic: Executable causing some issues, (0xc0000142)
Replies: 2
Views: 43

Re: Executable causing some issues, (0xc0000142)

You have a mistake in your coding. YOu are passing an array where a simple string is required. Please get nd read the complete error as it will tell you the exact command.
by jvierra
Fri Aug 23, 2019 5:23 am
Forum: Windows PowerShell
Topic: Dialog Form not displaying IP Address information in Label
Replies: 12
Views: 349

Re: Dialog Form not displaying IP Address information in Label

Get-ItemPropertyValue 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ReleaseId
by jvierra
Thu Aug 22, 2019 2:44 pm
Forum: PowerShell GUIs
Topic: visual elements delay when "bringtofront"
Replies: 3
Views: 52

Re: visual elements delay when "bringtofront"

Is this what you are trying to ask?
by jvierra
Thu Aug 22, 2019 11:34 am
Forum: PowerShell GUIs
Topic: Is it possible to dynamically generate event code?
Replies: 3
Views: 61

Re: Is it possible to dynamically generate event code?

Here is a partial example from another project: [xml]$xml = @' <?xml version="1.0"?> <Form Name="testForm" Text="Test Generated Form" StartPosition="CenterScreen" Size="600,400"> <Events> <Event Name="Closing"> <![CDATA[ Write-Host 'I am closing now' -Fore Green ]]> </Event> </Events> <Controls> <Co...
by jvierra
Thu Aug 22, 2019 10:24 am
Forum: PowerShell GUIs
Topic: Is it possible to dynamically generate event code?
Replies: 3
Views: 61

Re: Is it possible to dynamically generate event code?

Events can be added by calling the "add" method of the control.

$button.add_Click({Write-Host 'I was clicked'})
by jvierra
Wed Aug 21, 2019 11:53 am
Forum: Windows PowerShell
Topic: PSS and SCCM
Replies: 5
Views: 284

Re: PSS and SCCM

PowerShell Studio has an built-in manual on the help tab. Also review the numerous blog articles for more detailed discussions on using special features of PSS and PowerShell. Here is a link to the broad documentation, samples and blogs page. https://info.sapien.com Use the RSS feed for updates: htt...
by jvierra
Mon Aug 19, 2019 12:21 pm
Forum: Windows PowerShell
Topic: Dialog Form not displaying IP Address information in Label
Replies: 12
Views: 349

Re: Dialog Form not displaying IP Address information in Label

Simple.

$label1.Text = (Get-CimInstance Win32_OperatingSystem).version
by jvierra
Mon Aug 19, 2019 10:35 am
Forum: Windows PowerShell
Topic: PSS and SCCM
Replies: 5
Views: 284

Re: PSS and SCCM

TThat allows me to import the module relatively quickly into my PSS host whenever I need it. Executing those statements in my profile, but I got tired of waiting for the module to load at times when I didn't need it. You also can load the module from a remote site so that you don't have to install ...
by jvierra
Mon Aug 19, 2019 8:54 am
Forum: PowerShell GUIs
Topic: Auto-sum without using a button
Replies: 3
Views: 56

Re: Auto-sum without using a button

Max There is no need to use "ToString()" in PowerShell especially when doing arithmetic expressions. This will always work as needed. $form1_Load={ $AddCombo1Values = @(1, 2, 3) $AddCombo2Values = @(9, 39, 10) Update-ComboBox -ComboBox $combobox1 -Items $AddCombo1Values Update-ComboBox -ComboBox $co...
by jvierra
Mon Aug 19, 2019 7:50 am
Forum: PowerShell GUIs
Topic: Auto-sum without using a button
Replies: 3
Views: 56

Re: Auto-sum without using a button

Use the "ComboBox SelectionChanged" event to do the sum.