Support Forums

We are currently experiencing failures on the SAPIEN store and are working hard to rectify the situation. In the meantime, please DO NOT place an order through the store. Instead, please contact us directly at sales@sapien.com. We apologize for any inconvenience.

Search found 10501 matches

by jvierra
Thu Mar 16, 2017 9:33 am
Forum: PowerShell Studio
Topic: Windows PowerShell ISE vs PowerShell Studio 2017 v5.4.136 result are different
Replies: 6
Views: 240

Re: Windows PowerShell ISE vs PowerShell Studio 2017 v5.4.136 result are different

I recommend using the full command which works correctly.

$cred=Get-Credential mydomain\$env:USERNAME
$cred.UserName
by jvierra
Wed Mar 15, 2017 10:41 am
Forum: PowerShell GUIs
Topic: Unresponsive Form
Replies: 2
Views: 93

Re: Unresponsive Form

Tom, Welcome to Scripting Answers. There is really not enough information to give you a good answer. In most batch operation it is best to use a job inside of the form since it allows the form to remain responsive and to display the results of th job dynamically. Start here for good information on h...
by jvierra
Tue Mar 14, 2017 3:57 am
Forum: PowerShell GUIs
Topic: Duplicate Combobox values
Replies: 2
Views: 142

Re: Duplicate Combobox values

I am sorry but I cannot make any sense out of what you are doing. What you are asking and saying do not match.

I cannot find any reason for duplication. You are likely loading the ComboBox twice.
by jvierra
Tue Mar 14, 2017 2:19 am
Forum: PowerShell GUIs
Topic: Multi combobox update
Replies: 10
Views: 1025

Re: Multi combobox update

Use a DataGridView.
by jvierra
Tue Mar 14, 2017 2:05 am
Forum: PowerShell GUIs
Topic: Multi combobox update
Replies: 10
Views: 1025

Re: Multi combobox update

Why are you using all ComboBoxes? You can only look at one row at a time. It makes no technical sense is not really possible to do. You also have all duplicate rows. At a minimum you should have one ComboBox and the rest would be textboxes. Load a DataTable and ad it would display one row per client...
by jvierra
Mon Mar 13, 2017 2:36 pm
Forum: PowerShell GUIs
Topic: Multi combobox update
Replies: 10
Views: 1025

Re: Multi combobox update

What does your CSV file look like?

We wouldn't use ComboBoxes for this. Use textboxes to display associated fields. Bind to a DataTable and you will not need to write any code.
by jvierra
Mon Mar 13, 2017 11:14 am
Forum: PowerShell GUIs
Topic: Multi combobox update
Replies: 10
Views: 1025

Re: Multi combobox update

What you are asking is too vague. You need to describe this better. If you are looing for how synchronize controls then please tell us what your source is. Why would you use ComboBoxes to display rows in a CSV, Use a DataGridView. To sync other controls with a ComboBox use a DataTable. You can load ...
by jvierra
Mon Mar 13, 2017 7:18 am
Forum: PowerShell GUIs
Topic: datagridview change color cell
Replies: 2
Views: 62

Re: datagridview change color cell

Use this event to set the color based on contents" $datagridview1_CellPainting = [System.Windows.Forms.DataGridViewCellPaintingEventHandler]{ #Event Argument: $_ = [System.Windows.Forms.DataGridViewCellPaintingEventArgs] if ($tableCertificates .Columns[$_.ColumnIndex].Name -eq 'notafter...
by jvierra
Sun Mar 12, 2017 5:16 am
Forum: PowerShell GUIs
Topic: Studio Issue or Code?
Replies: 19
Views: 161

Re: Studio Issue or Code?

Found it: https://gallery.technet.microsoft.com/Set-Owner-ff4db177 Here is a utility written in PowerShell that can explicitly set ownership on a file or folder recursively if needed. When we have an object this allows us to trap for errors and to also set the owner as opposed to just taking ownersh...
by jvierra
Sun Mar 12, 2017 4:30 am
Forum: PowerShell GUIs
Topic: Studio Issue or Code?
Replies: 19
Views: 161

Re: Studio Issue or Code?

I can see an umber of errors in your code. You are never handling errors. In many cases you are just using ErrorAction to turn off error reporting. For TAKEWON you are just ignoring the errors. One big design flaw is that altering ownership and removing ALL rules on a deep hierarchy can freeze depen...

Go to advanced search