Search found 21 matches

by jramon.r@tv3.cat
Thu Jun 13, 2019 2:09 am
Forum: PowerShell GUIs
Topic: Fill Datagridview with data from an access
Replies: 3
Views: 260

Re: Fill Datagridview with data from an access

jvierra wrote:
Wed Jun 12, 2019 5:48 am
You need to use double quotes.

$QueryString ="'select IP,NomServer from TaulaLlistatIP where (Part1=$a)"
It was my problem. Thank you. With double quotes it Works ok
by jramon.r@tv3.cat
Wed Jun 12, 2019 4:48 am
Forum: PowerShell GUIs
Topic: Fill Datagridview with data from an access
Replies: 3
Views: 260

Fill Datagridview with data from an access

I want to fill a Datagridview with data from an Access select We have installed the v.5.6.164.0 64 bits This code Works ok $QueryString = 'select IP,NomServer from TaulaLlistatIP where (Part1=10)' #Database Connection String $ConnectionString = 'Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\snnews...
by jramon.r@tv3.cat
Thu Jan 31, 2019 2:24 am
Forum: Windows PowerShell
Topic: Include Active Directory Module in exe file
Replies: 1
Views: 743

Include Active Directory Module in exe file

We want to build an exe and we need that it includes the Active module for Powershell. Because we can execute this exe in a Machine, Windows 7, where it's not installed this feature. Is it possible?
Thanks
by jramon.r@tv3.cat
Fri Sep 22, 2017 4:30 am
Forum: Windows PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 1748

Re: run a reg file remotely

I found it

The problem was the .reg file security.

Thanks
by jramon.r@tv3.cat
Fri Sep 22, 2017 2:40 am
Forum: Windows PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 1748

Re: run a reg file remotely

But I want to do it for 30 servers

Thanks
by jramon.r@tv3.cat
Fri Sep 22, 2017 2:00 am
Forum: Windows PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 1748

run a reg file remotely

I want to run a .reg file remotely for changing its register The code is $nomservidor="ssvspospocpa2" $pathserver="c:\temp\snmp.reg" Invoke-Command -ComputerName $nomservidor -ScriptBlock { Start-Process -FilePath "c:\windows\regedit.exe" -ArgumentList "/s $pathserver" } -Credential pospocpa\adminis...
by jramon.r@tv3.cat
Fri Jul 15, 2016 3:57 am
Forum: Windows PowerShell
Topic: db connection string to informix
Replies: 2
Views: 1569

Re: db connection string to informix

Thanks,

Now it's ok. The problem was the 32 bits driver installed
by jramon.r@tv3.cat
Thu Jul 14, 2016 4:41 am
Forum: Windows PowerShell
Topic: db connection string to informix
Replies: 2
Views: 1569

db connection string to informix

I'm trying to connect to an informix db. This is the script $sqlText='SELECT * FROM dtvc_volum' $ConnectString="Provider=IFXOLEDBC.2;Password=xxxxx;User ID=xxxxx;Data Source=digition@ol_montsia; Persist Security Info=true" $da=New-Object System.Data.OleDb.OleDbConnection $ds=New-Object System.Data....
by jramon.r@tv3.cat
Fri Jan 29, 2016 4:31 am
Forum: Windows PowerShell
Topic: format for Textbox and DatagridView
Replies: 5
Views: 3157

Re: format for Textbox and DatagridView

Finally I've found the solution. In the DataGridView I was modifying the property AlternatingRowsDefaultCellStyle, this is the cause it showed me just odd rows good. With the MaskedTextBox I don't understand it very well, how can I show thousands, because sometimes it can be a number like 1.000 but ...