Giter VIP home page Giter VIP logo

Comments (6)

alagoutte avatar alagoutte commented on July 1, 2024
$conn.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     Hashtable                                System.Object

it is hashtable object..
It will see what i can make for this case...

from powerfgt.

alagoutte avatar alagoutte commented on July 1, 2024

can you try this :

$conn = @()
$conn += connect-fgt FGT-A.fqdn.com -SkipCertificateCheck -Credentials $fwcred
$conn += connect-fgt FGT-B.fqdn.com -SkipCertificateCheck -Credentials $fwcred

from powerfgt.

poundy avatar poundy commented on July 1, 2024

the behaviour of your second suggestion will work for me, thanks. The $conn object is now "strange" when you enumerate it but it works. Enumerating each element behaves as expected, but enumerating the whole just flows the elements together (usually you'd see a whitespace line between individual elements)

> PS C:\brett> $conn

Name                           Value                                                                              
----                           -----                                                                              
headers                        {X-CSRFTOKEN}                                                                      
vdom                                                                                                              
invokeParams                   {UseBasicParsing, DisableKeepAlive, TimeoutSec}                                    
server                         1-fg-mgmt                                                                    
httpOnly                       False                                                                              
port                           443                                                                                
session                        Microsoft.PowerShell.Commands.WebRequestSession                                    
headers                        {X-CSRFTOKEN}                                                                      
vdom                                                                                                              
invokeParams                   {UseBasicParsing, DisableKeepAlive, TimeoutSec}                                    
server                         2-fg-mgmt                                                                    
httpOnly                       False                                                                              
port                           443                                                                                
session                        Microsoft.PowerShell.Commands.WebRequestSession                                    

from powerfgt.

alagoutte avatar alagoutte commented on July 1, 2024

Yes, it is strange but working ;-) (it is a array of object...)

from powerfgt.

alagoutte avatar alagoutte commented on July 1, 2024

can be close ?

from powerfgt.

poundy avatar poundy commented on July 1, 2024

I have no problem closing it, I'll do that now. The first "+=" behaviour is not what I would call normal, but the above workaround works fine for my use cases

from powerfgt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.