Search found 237 matches

by mqh777
Fri Nov 02, 2018 9:07 am
Forum: PowerShell GUIs
Topic: get-childitem
Replies: 7
Views: 933

Re: get-childitem

with or without that line it still does not return the list of all folders. It only returns 1 folder.
by mqh777
Fri Nov 02, 2018 8:58 am
Forum: PowerShell GUIs
Topic: get-childitem
Replies: 7
Views: 933

get-childitem

I am trying to get a list of all directories on a server share. In PowerShell ISE it works fine. $share = "\\server\sharename" $folderlist = (Get-ChildItem $share -Directory).Name $folderlist This will list all folders on the $share. But when I execute this code in PowerShell Studio it does not get ...
by mqh777
Wed Oct 31, 2018 10:59 am
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 1482

Re: output issues

I've tried all of your code and it does not work. This line produces no output. $richtextbox_output.Lines = $tpm_lines[0] | Out-String | %{$_ -replace '\0'} In fact using the .Lines produces no output. We can't prompt for a user\password. I can get it all into a .txt file but the RTB does not displa...
by mqh777
Wed Oct 31, 2018 7:52 am
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 1482

Re: output issues

thanks but prompting for a password will not work for our needs. I have piped my get-tpm to a .TXT file and I can read the .txt file and display the contents. But the issue is the data will display like this: PSComputerName : targetPC RunspaceId : ab733a29-fa1c-4057-80b9-082c7f890302 TpmPresent : Tr...
by mqh777
Tue Oct 30, 2018 6:56 am
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 1482

Re: output issues

Product: PowerShell Studio 2018 (64 Bit) Build: v5.5.155 OS: Windows 10 Enterprise (64 Bit) Build: v10.0.16299.0 I created a brand new form that has 1 button and 1 richtextbox. All RTB properties are set to default. I have this code. $button1_Click={ if (test-path c:\temp\tpm.txt) { remove-item c:\t...
by mqh777
Mon Oct 29, 2018 2:30 pm
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 1482

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 mqh777
Mon Oct 29, 2018 2:11 pm
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 1482

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 mqh777
Mon Oct 29, 2018 1:25 pm
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 1482

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 mqh777
Fri Oct 26, 2018 2:39 pm
Forum: PowerShell GUIs
Topic: textbox
Replies: 4
Views: 856

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 mqh777
Fri Oct 26, 2018 7:52 am
Forum: PowerShell GUIs
Topic: textbox
Replies: 4
Views: 856

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?