Browse Forum Posts by Tags

Showing related tags and posts for the Forums application. See all tags in the site
  • Re: how to check active server in the custom OU using powershell ?

    As Richard said, you just need to add: $OnlineServers = @() before the line: Get-QADComputer -SearchRoot 'domain.com/Active Servers' -OSName "Windows*Server*" | %{ If you use PowerShell V2 which has a nice little cmdlet Test-Connection, you can see the real power of PowerShell pipeline...
    Posted to General (Forum) by Aleksandar on 09-28-2010
    Filed under: Active Directory, Array, test-connection
  • Subtracting Exchange 2007 powershell arrays

    I am trying to wrap my head around how to subtract one Get-Casmailbox array from a 2nd Get-Casmailbox array.The Allmailboxes are windows 2007 mailboxes across 2 (or more) servers. And the $Distlistx are groups in active directory. My goal is to process separate rules on the group members. Such as activesync...
    Posted to PowerShell for Exchange (Forum) by Clyde Burns on 02-14-2011
    Filed under: subtract, get-casmailbox, Exchange 2007, array
  • XML, Powershell and Arrays

    Hello I have an Infopath Doc that is stored as XML on our SP farm, I am trying to access certain information in the infopath form to assign as a variable for use in creating folder structures and websites. That is not too hard when dealing with clearly named elements in the xml doc, however on large...
    Posted to PowerShell for Windows (Forum) by Robert Burke on 02-20-2011
    Filed under: powershell, powershell Windows-programming, Variable, windows, powershell remoting, XML, array
  • Re: XML, Powershell and Arrays

    Hi Tobias, Thank you for the quick response, and I am sorry for not giving enough information. Here is the complete XML doc, you will notice there are 2 sections called Proxy Layer, each layer is associated with a different URL. I am new to PS and I have never dealt with XML but this is alot of fun Thank...
    Posted to PowerShell for Windows (Forum) by Robert Burke on 02-21-2011
    Filed under: Variable, windows, XML, array
  • Clone object array returned from import-csv to allow use as template

    I am trying to use import-csv to load a template. In a loop, update the template, and output results. In doing so, the original template is modified. .clone() doesn't copy the objects referenced by the array returned by import-csv. for example: $a = import-csv test.csv $b = $a.clone() $b.fieldname...
    Posted to PowerShell for Windows (Forum) by bobr on 03-16-2011
    Filed under: powershell, array, csv object
  • 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
  • I want to make report in Html as . I am tired of working on this but unable to do it. Could you please help me

    hi, I have below output from my query. I have saved the output to the text file. and then read it to array $A. I want to make report in Html as . I am tired of working on this but unable to do it. Could you please help me. LOGICAL UNIT NUMBER Name RAID Type State 23347 LUN 6018 RAID5 Bound. LOGICAL UNIT...
    Posted to PowerShell for Windows (Forum) by govind on 06-20-2011
    Filed under: array, arraylist array expandProperty
  • Re: sort information

    hi, I have below output from my query. I have saved the output to the text file. and then read it to array $A. I want to make report in Html as . I am tired of working on this but unable to do it. Could you please help me. LOGICAL UNIT NUMBER Name RAID Type State 23347 LUN 6018 RAID5 Bound. LOGICAL UNIT...
    Posted to PowerShell for Windows (Forum) by govind on 06-20-2011
    Filed under: array, arraylist array expandProperty, format table
  • Add New-Object psobject to an Array.

    Hi All, I wanted $outputs=@() to contain the newly created psobject for each NIC card in a server, below is the code, can some one help me on how to append the newly created objects to $outputs. $outputs=@() $colItems1 = get-wmiobject -class "Win32_NetworkAdapter" -namespace "root\CIMV2"...
    Posted to PowerShell for Windows (Forum) by vinith.menon@avanade.com on 07-18-2011
    Filed under: powershell, array
Page 1 of 3 (25 items) 1 2 3 Next >
Copyright 2012 PowerShell.com. All rights reserved.