Support Forums

Search found 10779 matches

by jvierra
Wed May 24, 2017 1:45 pm
Forum: Windows PowerShell
Topic: R6034 | Runtime Error | ..attempt to load C runtime library
Replies: 3
Views: 9

Re: R6034 | Runtime Error | ..attempt to load C runtime library

The C runtime must be present for anything to work. You need to be sure that Net 3.5 SP1 is installed.

In the "Microsoft SQL Server Compact Edition" folder under "Programs Files" contains a readme (ReadmeSSCE_ENU.htm) describing the requirements and limitations of SqlCE.
by jvierra
Wed May 24, 2017 1:27 pm
Forum: Windows PowerShell
Topic: R6034 | Runtime Error | ..attempt to load C runtime library
Replies: 3
Views: 9

Re: R6034 | Runtime Error | ..attempt to load C runtime library

The extra DLLs need to be added to the project in the installer phase. You cannot load them in the project folder or they may be added incorrectly.

DLLs can be targeted to a specific folder. In your case the should be in the folder with the EXE.
by jvierra
Wed May 24, 2017 11:43 am
Forum: PowerShell GUIs
Topic: Create a DataGridView and export to a csv
Replies: 55
Views: 215

Re: Create a DataGridView and export to a csv

Here is how to load the DataTable:

Code: Select all

Get-ADComputer -Filter * -SearchBase '....' |
ForEach-Object{
$a = @(
$_.Name,
''
)
$dt.Rows.Add($a)
}
by jvierra
Wed May 24, 2017 11:37 am
Forum: PowerShell GUIs
Topic: Create a DataGridView and export to a csv
Replies: 55
Views: 215

Re: Create a DataGridView and export to a csv

In this scenario you have to add the rows after you create the columns in the table. And again - you cannot add items to DataSource if you are going to add a table to DatatSource.
by jvierra
Wed May 24, 2017 10:15 am
Forum: PowerShell GUIs
Topic: Create a DataGridView and export to a csv
Replies: 55
Views: 215

Re: Create a DataGridView and export to a csv

Imam sorry. I gave you at least three clear examples of how to load or create a DataTable.

Take a break then come back and test until you understand what is happening.

A forum is not a good place to get individualized training in PowerShell.
by jvierra
Wed May 24, 2017 10:13 am
Forum: Windows PowerShell
Topic: Powershell Remote Pre-Staging to wds
Replies: 1
Views: 24

Re: Powershell Remote Pre-Staging to wds

HELP, Invoke-Command -Full

Read all and pay attention to how to pass arguments.
by jvierra
Wed May 24, 2017 9:08 am
Forum: PowerShell GUIs
Topic: Create a DataGridView and export to a csv
Replies: 55
Views: 215

Re: Create a DataGridView and export to a csv

If you follow my instructions you will see how it works.

Be sure your userlist contains one empty string as you are adding the users column as an empty string.
by jvierra
Wed May 24, 2017 8:59 am
Forum: PowerShell GUIs
Topic: DataGridView in Runspace Scrollbar error
Replies: 3
Views: 27

Re: DataGridView in Runspace Scrollbar error

Here is one workaround for the scrollbar issue: $form1_Load={ $dataGridView1.ScrollBars = 'None' $global:Thread = [PowerShell]::Create().AddScript( { for ($i = 0; $i -lt 1000; $i++) { $x = $datagridview1.Rows.Add("$i") $dataGridView1.FirstDisplayedScroll...
by jvierra
Wed May 24, 2017 8:27 am
Forum: PowerShell GUIs
Topic: DataGridView in Runspace Scrollbar error
Replies: 3
Views: 27

Re: DataGridView in Runspace Scrollbar error

Yuo need to post a short PSF with a simple example of your issue.
by jvierra
Wed May 24, 2017 8:24 am
Forum: PowerShell GUIs
Topic: DataGridView in Runspace Scrollbar error
Replies: 3
Views: 27

Re: DataGridView in Runspace Scrollbar error

As long as the runspace is looping on the grid variable it will be locked.

Consider using a JobTracker custom control set to load the grid.

Go to advanced search