Search found 30 matches

by aalbende
Wed Jul 08, 2015 4:07 am
Forum: PowerShell GUIs
Topic: New form project based GUI
Replies: 1
Views: 1792

New form project based GUI

Hi everybody, when you generate a new New form project based GUI and you program an interface, I would like to know the steps to call this interface from command line. I see some extensions inside of my main folder with .psf .psf.build .... and one called startup.run.ps1 but when I execute it does n...
by aalbende
Thu Mar 19, 2015 7:52 am
Forum: PowerShell
Topic: New-WebServiceProxy as way for update information
Replies: 12
Views: 6654

Re: New-WebServiceProxy as way for update information

Solved $SNowWS_Incidents = New-WebServiceProxy -Uri $SN_Web -Credential $cred #don't define the namespace here $type = $SNowWS_Incidents.GetType().Namespace $records = new-object ($type + '.getRecords') we cannot use namespace on New-WebServiceProxy because it is now allowed to execute twice times t...
by aalbende
Thu Mar 19, 2015 6:29 am
Forum: PowerShell
Topic: New-WebServiceProxy as way for update information
Replies: 12
Views: 6654

Re: New-WebServiceProxy as way for update information

I add it in an attachment
by aalbende
Thu Mar 19, 2015 3:54 am
Forum: PowerShell
Topic: New-WebServiceProxy as way for update information
Replies: 12
Views: 6654

Re: New-WebServiceProxy as way for update information

Hi jvierra, working more in my problem I have discovered, the problem could be located here in the code: New-WebServiceProxy -Uri $uri -Namespace Incidents By definition founded in Internet, you cannot execute the same namespace more than one time in the same execution enviroment. That means, if you...
by aalbende
Wed Mar 18, 2015 1:50 am
Forum: PowerShell
Topic: New-WebServiceProxy as way for update information
Replies: 12
Views: 6654

New-WebServiceProxy as way for update information

Currently we are developing a script that allows to open/update incidents our incidents plattform (we use Service-Now), allowing to monitoring incidents directly with the user, crossing our ticket platform. In the past, I did we could open tickets from the script. I explain a little which steps we a...
by aalbende
Fri Feb 20, 2015 6:50 am
Forum: Other Scripting Languages
Topic: HTML including a table with headers rotated around 45 degree
Replies: 3
Views: 40789

HTML including a table with headers rotated around 45 degree

Hi guys, I have a question. I am generating an automatic report. This report include HTML code and it is sent using send-MailMessage. My question is easy but I did not find a solution. This report include a HTML table with columns and rows. I would like with the columns headers to set a rotation (ar...
by aalbende
Wed Feb 04, 2015 2:10 am
Forum: PowerShell
Topic: Invoke-Command: saving values obtained on a remote machine
Replies: 7
Views: 25817

Re: Invoke-Command: saving values obtained on a remote machi

Hi jvierra, following your last code and setting in my enviroment, it works. Now I have this information coming remotely in my main code $read_information = { Import-Module -Name BEMCLI Get-BEServerInformation } $test = Invoke-Command -ScriptBlock $read_information -Computer $BEServer | select Backu...
by aalbende
Tue Feb 03, 2015 8:06 am
Forum: PowerShell
Topic: Invoke-Command: saving values obtained on a remote machine
Replies: 7
Views: 25817

Re: Invoke-Command: saving values obtained on a remote machi

Please see the code that I am using: $data = Invoke-Command -Session $session -ScriptBlock { param ($BEServersInfo) Import-Module -Name BEMCLI $data = Get-BEServerInformation | select BackupExecServer, OperatingSystemType return $data } -AsJob I need to use BackupExecServer, OperatingSystemType afte...
by aalbende
Tue Feb 03, 2015 7:17 am
Forum: PowerShell
Topic: Invoke-Command: saving values obtained on a remote machine
Replies: 7
Views: 25817

Invoke-Command: saving values obtained on a remote machine

Hi Experts! I would like to ask a question about how I can save data obtained in a remote session. From my machine I need to execute some cmdlets in some remote machines and keep some data on a PSObject array. Basically I do the following steps 1. I open a remote session on a machine $session = New-...
by aalbende
Thu Dec 18, 2014 12:08 am
Forum: PowerShell
Topic: send and forward the same mail
Replies: 5
Views: 3104

Re: send and forward the same mail

You are right. We use a ticket system for incidents and my idea was to generate the ticket + report to the user together because if you forward the report to the ticket system it is opened automatically, without manual work.