Search found 19 matches

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: 599

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: 1456

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: 1456

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: 1456

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: 1461

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: 1461

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: 3007

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 ...
by jramon.r@tv3.cat
Fri Jan 29, 2016 12:21 am
Forum: Windows PowerShell
Topic: format for Textbox and DatagridView
Replies: 5
Views: 3007

format for Textbox and DatagridView

My Powershell Studio runs in a Windows 2008 R2, 64 bits. I'm trying to show data from an access table in a DataGridView. I'd like to show number data with thousand punctuation. I found the property CellStyleBuilder and here I changed the Format to Numeric. The result is that it shows one row good wi...
by jramon.r@tv3.cat
Thu Nov 26, 2015 4:47 am
Forum: Windows PowerShell
Topic: A problem with trimstart cmdlet
Replies: 3
Views: 2219

A problem with trimstart cmdlet

I have an script with the cmdlet trimstart and I've checked that when the string that I want starts with "S" it trims the "S" too. F.ex. i have $user='POSPOCPA\Super3' $user=$user.TrimStart("POSPOCPA\") The result is $user=uper3 but if I have $user='POSPOCPA\super3' $user=$user.trimstart("POSPOCPA\"...