Search found 25 matches

by jramon.r@tv3.cat
Thu Mar 04, 2021 1:07 am
Forum: PowerShell
Topic: Error in a textbox
Replies: 8
Views: 6924

Re: Error in a textbox

I think I need powershell version 5, can be it the solution? Thanks
by jramon.r@tv3.cat
Thu Mar 04, 2021 1:02 am
Forum: PowerShell
Topic: Error in a textbox
Replies: 8
Views: 6924

Re: Error in a textbox

Powershell v.4.0
by jramon.r@tv3.cat
Thu Mar 04, 2021 12:23 am
Forum: PowerShell
Topic: Error in a textbox
Replies: 8
Views: 6924

Re: Error in a textbox

We have installed PowerShell Studio 2021 version 5.8.187.0 and is running on a Windows 2012 R2 64 bits

I've pasted what you said and the message error is the same

"Method invocation failed because [System.Drawing.Font] does not contain a method named "new"
by jramon.r@tv3.cat
Wed Mar 03, 2021 6:11 am
Forum: PowerShell
Topic: Error in a textbox
Replies: 8
Views: 6924

Error in a textbox

I have a very simple form with a label, a textbox and a button. When I run it and I try to introduce a text in the textbox it gets an error that it says: >> Running (MapeigCorreccioExamenTS.psf) Script... >> Platform: V4 64Bit (STA) (Elevated) (Forced) ERROR: Method invocation failed because [System...
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: 1738

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

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 1:24 am
Forum: PowerShell
Topic: Include Active Directory Module in exe file
Replies: 1
Views: 1790

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: PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 4425

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: PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 4425

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: PowerShell
Topic: run a reg file remotely
Replies: 5
Views: 4425

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 $pathser...