Support Forums

Search found 10354 matches

by jvierra
Fri Feb 17, 2017 10:21 am
Forum: PowerShell Studio
Topic: 2017 version packager
Replies: 3
Views: 157

Re: 2017 version packager

I hope you realize the images cannot be seen due to size and color.

For issues with the product you will need to post in the Product support forum.
by jvierra
Fri Feb 17, 2017 10:15 am
Forum: PowerShell GUIs
Topic: Capture all Consule Output from Form and Out-File
Replies: 10
Views: 200

Re: Capture all Consule Output from Form and Out-File

To get output to a console from a form run from a console you can only use "Write-Host".

Uncaught exceptions and "Write-Verbose" will also go to the console.
by jvierra
Fri Feb 17, 2017 10:11 am
Forum: PowerShell GUIs
Topic: Capture all Consule Output from Form and Out-File
Replies: 10
Views: 200

Re: Capture all Consule Output from Form and Out-File

Do not do this: Enable-Mailbox -identity "ourdomain\$sam" -Alias $alias 2>&1 |Write-Output | Out-file -FilePath $sLogFile -Append Do this: Enable-Mailbox -identity "ourdomain\$sam" -Alias $alias 2>&1 | Out-file -FilePath $sLogFile -Append The Write-OutPut is not needed an...
by jvierra
Thu Feb 16, 2017 1:46 pm
Forum: PowerShell GUIs
Topic: Datagrid item selection + "loading" while executing
Replies: 26
Views: 571

Re: Datagrid item selection + "loading" while executing

WHy all of the quotes? $Global:ComputerName = $datagridviewComputer.Rows[$_.RowIndex].Cells[0].Value $Global:UserName = $datagridviewComputer.Rows[$_.RowIndex].Cells[1].Value Use your debugger to inspect what is happening. CellClick occurs on every cell click and will constantly rewrite your values ...
by jvierra
Thu Feb 16, 2017 1:42 pm
Forum: PowerShell GUIs
Topic: Execute an RDP file in PS Studio?
Replies: 7
Views: 179

Re: Execute an RDP file in PS Studio?

That is why Sapien provides a function to get the script path:

Try using $ScriptDirectory as it is acquired on startup.
by jvierra
Thu Feb 16, 2017 11:08 am
Forum: PowerShell GUIs
Topic: Function and Start-Job
Replies: 4
Views: 94

Re: Function and Start-Job

You would get back two collections that are merged. This is what would happen with a function. You will have to define a custom object to return a mixed set of collections. To test just use a function at a prompt and run it to see what is returned. Example: function test{ gwmi Win32_Computerystem Ge...
by jvierra
Thu Feb 16, 2017 11:02 am
Forum: PowerShell GUIs
Topic: Execute an RDP file in PS Studio?
Replies: 7
Views: 179

Re: Execute an RDP file in PS Studio?

Please don't post screen shots. They are mostly unreadable in most browsers. Post a copy of the code.

I cannot understand what you are saying. The error message is clear. The file path you used doesn't exist.
by jvierra
Wed Feb 15, 2017 6:43 pm
Forum: PowerShell GUIs
Topic: Capture all Consule Output from Form and Out-File
Replies: 10
Views: 200

Re: Capture all Consule Output from Form and Out-File

I should also note that you can return objects to the console but not from an EXE.
by jvierra
Wed Feb 15, 2017 6:36 pm
Forum: PowerShell GUIs
Topic: Capture all Consule Output from Form and Out-File
Replies: 10
Views: 200

Re: Capture all Consule Output from Form and Out-File

You cannot output to the console from a form. Output to a console is suppressed in Windows Forms. This has nothing to do with PSS or PowerShell it is just how Windows forms work.

You can use Write-Host to the console but that cannot be captured; it can only be displayed.
by jvierra
Wed Feb 15, 2017 6:09 pm
Forum: PowerShell GUIs
Topic: Capture all Consule Output from Form and Out-File
Replies: 10
Views: 200

Re: Capture all Consule Output from Form and Out-File

I merged your duplicate posts. Please try not to post the same topic in multiple forums.

Go to advanced search