Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. Adam
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Adam

    @Adam

    0
    Reputation
    1
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Adam Follow

    Best posts made by Adam

    This user hasn't posted anything yet.

    Latest posts made by Adam

    • Maps in vector and PowerShell

      I'm trying to pass to the PowerShell script maps in vector. Unfortunately, instead of the expected array containig hashtable I get an array containing stings. Below I attach a sample configuration plan where you can see the problem.

      set @Groups = @(%(key1:val1,key2:val2),%(key1:val3,key2:val4));
      
      foreach %Group in @Groups
      {
          Log-Information %Group.key1;
          Log-Information %Group.key2;
      }
      
      Execute-PowerShell >>
      foreach ($Group in $Groups)
      {
          Write-host PowerShellLoop
          Write-host $Group
          Write-host "IsHastable: $($Group -is [Hashtable])"
      }
      >>;
      

      How to pass Groups variable so that PowerShell receives array containing hashtable?

      posted in Support
      A
      Adam