Browse Forum Posts by Tags

Showing related tags and posts for the Learn PowerShell forum. See all tags in the site
  • Value Not Found in Array

    I am new to powershell and am working with a script to dump data from a MSSQL table. CodePlex mssqldump.ps1 is the script location. The table has columns that return datatype of System.String, System.DateTime and System.Int32. I created an array that contains System.String and System.DateTime. when I...
    Posted to Learn PowerShell (Forum) by ntxdba on 04-12-2011
    Filed under: -contains, Array
  • Invoke-Command -Args doesn't pass $myArray correctly

    I'm looking the best way to pass an ascii file to $myArray, and then pass $myArray to a remote script using Invoke-Command -Args. Part of my problem is the content of the strings, part is the different types of $myArray, part is the limited environment of a remote session. First off, I'm finding...
    Posted to Learn PowerShell (Forum) by roswald72 on 05-24-2011
    Filed under: Learning PowerShell, Array
  • Powershell - Data put into an array goes away after exiting ForEach-Object loops

    Originally I ran into this while trying to combine AD groups and user members into an array of objects to process and export into a csv file but the following script fragment does the same thing. I am using Powershell ISE Versiion 3 Clear-Host $Groups = 'Group1', 'Group2' $Users = 'User1'...
    Posted to Learn PowerShell (Forum) by sdillinger1 on 01-25-2013
    Filed under: Learning PowerShell, variables, for each, Array, loop
Page 1 of 1 (3 items)
Copyright 2012 PowerShell.com. All rights reserved.