Search found 267 matches

by mxtrinidad
Tue Mar 12, 2019 7:55 am
Forum: Windows PowerShell
Topic: Update Computer Description
Replies: 15
Views: 1033

Re: Update Computer Description

First, JVierra has giving you an Awesome script that works. I would also try it using .NET which is easy to use and there's lots of documentation (COM Object is old technology). https://devblogs.microsoft.com/scripting/use-the-directorysearcher-net-class-and-powershell-to-search-active-directory/ ht...
by mxtrinidad
Fri Mar 08, 2019 9:27 am
Forum: PrimalScript
Topic: Shell tied to script that I've run?
Replies: 1
Views: 98

Re: Shell tied to script that I've run?

I would definitely recommend to get latest version of PrimalScript. We have included the ability to update PowerShell variable during debug. Please check the latest added feature at the following link: https://www.sapien.com/software/version_history PrimalScript_DebugVariables_2019-03-08_11-21-18.png
by mxtrinidad
Fri Mar 08, 2019 9:12 am
Forum: Windows PowerShell
Topic: ERROR: New-PSDrive : Multiple connections to a server or shared resource by the same user
Replies: 5
Views: 596

Re: ERROR: New-PSDrive : Multiple connections to a server or shared resource by the same user

Thanks! I wanted to make sure you were not experiencing other errors. The use of keyword 'exit' or 'break' tend to give an Windows Form exception error (which is a .NET and not SAPIEN). I would suggest to avoid using them. Follow JVierra recommendation. Make sure to check and remove the drive letter...
by mxtrinidad
Fri Mar 08, 2019 8:05 am
Forum: Windows PowerShell
Topic: ERROR: New-PSDrive : Multiple connections to a server or shared resource by the same user
Replies: 5
Views: 596

Re: ERROR: New-PSDrive : Multiple connections to a server or shared resource by the same user

We need more information.
Please, can you provide the exact error message you are having in your application?
by mxtrinidad
Tue Feb 26, 2019 5:49 pm
Forum: PowerShell GUIs
Topic: Problem with Progress Bar Overlay
Replies: 9
Views: 311

Re: Problem with Progress Bar Overlay

Hum! I posted my comment and didn't send it. In his original code, he was only missing the "$progressbaroverlay1.Step = 1" line within the foreach loop, and that would have solve the issue of the bar not updating. Of course the *.refresh() method is not needed. Of course, there are so many other way...
by mxtrinidad
Thu Feb 21, 2019 9:02 am
Forum: PowerShell Studio
Topic: Change MSI Installation Path
Replies: 2
Views: 834

Re: Change MSI Installation Path

You will need use the "Deployment | Settings (MSI Settings)" Custom Actions.
Here you can create scripts to take action after the installation.

In your case, move the installed application to another folder.

:)
by mxtrinidad
Tue Feb 19, 2019 7:00 am
Forum: PowerShell Studio
Topic: Debug mode doesn't work with long script
Replies: 7
Views: 982

Re: Debug mode doesn't work with long script

We notice you on version 5.6.158.

Please upgrade to the latest version 5.6.159, and see if you get the same issue.
Let us know as soon as possible.
by mxtrinidad
Mon Feb 18, 2019 7:53 am
Forum: PowerShell Studio
Topic: How to get MSI files for uninstall if they were deleted?
Replies: 1
Views: 1131

Re: How to get MSI files for uninstall if they were deleted?

Just try to run the installation program downloading the previous version (or just the latest) using your SAPIEN account. It is not recommended to manually delete Roaming folder. Microsoft have these folders hidden for a reason as it contains application setting and temporary cache. (https://answers...
by mxtrinidad
Fri Feb 15, 2019 2:24 pm
Forum: PowerShell GUIs
Topic: Saving DataGridView to .CSV using SaveFileDialog
Replies: 3
Views: 176

Re: Saving DataGridView to .CSV using SaveFileDialog

Simple:
.. | Out-File $SaveChooser.FileName
to
.. | Export-Csv $SaveChooser.FileName -NoClobber -NoTypeInformation

Make sure to check the cmdlet help documentation:
Get-Help Export-Csv -detailed

:)
by mxtrinidad
Fri Feb 15, 2019 11:44 am
Forum: PowerShell GUIs
Topic: Saving DataGridView to .CSV using SaveFileDialog
Replies: 3
Views: 176

Re: Saving DataGridView to .CSV using SaveFileDialog

The SaveFileDialog box doesn't transform PSObjects to a specifc file type.

You need to use the Export-Csv cmdlet so it can correctly convert the PSObject to a CSV file.