-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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"...