Search found 252 matches

by mqh77777
Mon Oct 29, 2018 2:30 pm
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 3965

Re: output issues

I have put the array both inside and outside of the ButtonClick Event. I get the same results. $props = @( 'PSComputerName', 'RunspaceId', 'TpmPresent', 'TpmReady', 'ManufacturerId', 'ManufacturerIdTxt', 'ManufacturerVersion', 'ManufacturerVersionFull20', 'ManagedAuthLevel', 'OwnerAuth', 'OwnerClear...
by mqh77777
Mon Oct 29, 2018 2:11 pm
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 3965

Re: output issues

using your code my output looks like this: PSComputerName : mypc RunspaceId : f0b08ec5-02d8-4a4c-8b71-d3ead76f3840 TpmPresent : True TpmReady : False ManufacturerId : 1464156928 ManufacturerIdTxt : WEC My richtextbox output window is big enough. Plus it will scroll. I have other buttons that dump hu...
by mqh77777
Mon Oct 29, 2018 1:25 pm
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 3965

output issues

We have a PowerShell Studio form that collects lots of data from machines. We are trying to gather TPM information from machines. So I added a button that has this code behind it. $buttonTPMStatus_Click={ $statusbar1.text = 'Getting TPM status, please wait...' $richtextbox_output.Clear() $TPM = Invo...
by mqh77777
Fri Oct 26, 2018 2:39 pm
Forum: PowerShell GUIs
Topic: textbox
Replies: 4
Views: 1924

Re: textbox

Thanks, I read that webpage. I'm unclear on where you place all of this code. Is it on the properties of the textbox? Or under "form load"? Or both?
by mqh77777
Fri Oct 26, 2018 7:52 am
Forum: PowerShell GUIs
Topic: textbox
Replies: 4
Views: 1924

textbox

On a powershell studio form we use text boxes so users can enter data. Is there a way to show shadow text in the text box saying what to enter? Example if the Textbox was for "computer name" to display enter computer name in the textbox so they know what to enter?
by mqh77777
Fri Oct 26, 2018 7:05 am
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 12
Views: 4147

Re: Click button and search AD

Does anyone know how to properly format the output for this? Thank you.
by mqh77777
Thu Oct 25, 2018 7:56 am
Forum: PowerShell GUIs
Topic: enable psremoting
Replies: 2
Views: 1699

enable psremoting

I have .cmd file that contains the following commands. %~dp0psexec \\machine -u acme\adminuser -p p@ssw0rd -h -d powershell.exe "enable-psremoting -force" I can run this from a CMD window and it works on any remote Windows 7 workstation. Within PowerShell Studio this command works. Start-P...
by mqh77777
Tue Oct 23, 2018 7:13 am
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 12
Views: 4147

Re: Click button and search AD

The first line in your code produces the red exclamation point and does not execute. Here is my code: $buttonSCCMAppGroups_Click = { $SCCMAppGroups = (Get-ADGroup -Filter { name -like "SCCMApp_*" }).name | Sort-Object $ListSCCMGroups.Items.Add("$SCCMAppGroups") } This returns the...
by mqh77777
Fri Oct 19, 2018 1:47 pm
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 12
Views: 4147

Re: Click button and search AD

ok, we're making progress. I have a listbox and 1 button. the button will query AD and get a list of groups. It then displays the groups in the listbox. The only problem is they are not listed 'one per line'. They are only 1/2 wide and all jumbled. How do you format the listbox so it looks like this...
by mqh77777
Fri Oct 19, 2018 10:19 am
Forum: PowerShell GUIs
Topic: Click button and search AD
Replies: 12
Views: 4147

Re: Click button and search AD

Yes, that part is easy. I can get the groups and display them in the Richtext window. But then you have to copy/paste the group name into another textbox and then click yet another button. I want to click 1 button that does everything. Or is that not possible?