Search found 252 matches

by mqh77777
Mon Mar 04, 2019 11:08 am
Forum: PowerShell GUIs
Topic: include files inside of .EXE or .MSI
Replies: 7
Views: 3282

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 ...
by mqh77777
Fri Feb 22, 2019 7:46 am
Forum: PowerShell GUIs
Topic: script stays in taskman
Replies: 1
Views: 1047

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 ...
by mqh77777
Fri Feb 01, 2019 7:39 am
Forum: PowerShell GUIs
Topic: Not running as different user
Replies: 1
Views: 1109

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...
by mqh77777
Fri Nov 02, 2018 9:31 am
Forum: PowerShell GUIs
Topic: get-childitem
Replies: 7
Views: 2796

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...
by mqh77777
Fri Nov 02, 2018 9:19 am
Forum: PowerShell GUIs
Topic: get-childitem
Replies: 7
Views: 2796

Re: get-childitem

that too only returns 1 folder name.
by mqh77777
Fri Nov 02, 2018 9:07 am
Forum: PowerShell GUIs
Topic: get-childitem
Replies: 7
Views: 2796

Re: get-childitem

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

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 doe...
by mqh77777
Wed Oct 31, 2018 10:59 am
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 3971

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 mqh77777
Wed Oct 31, 2018 7:52 am
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 3971

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 mqh77777
Tue Oct 30, 2018 6:56 am
Forum: PowerShell GUIs
Topic: output issues
Replies: 13
Views: 3971

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