Questions tagged [select-object]

PowerShell cmdlet that selects objects or object properties.

The Select-Object cmdlet selects specified properties of an object or set of objects. It can also select unique objects, a specified number of objects, or objects in a specified position in an array.

https://technet.microsoft.com/en-us/library/hh849895.aspx

109 questions
0
votes
1 answer

Select-Object -Unique and MemberTypes

As part of a larger script i'm making a refrencelist of servernames which should contain all servers in our infrastructure. To do this i have 4 arrays with servernames sourced from diffrent systems (AD, SQL etc) which i planned to join together…
Notumlord
  • 33
  • 5
0
votes
1 answer

Turning a table into a custom object in powershell

I have a table in a variable in a specific format (similar to csv) | ID | Status | Notes | | 1 | OK | A | | 2 | OK | B | any suggestions on how to convert it into an array of objects? I've tried select-object but doesn't…
Andrew White
  • 1,770
  • 4
  • 25
  • 43
-1
votes
1 answer

Create objects with custom properties containing derived filesystem path information and export them to a CSV - calculated properties

Editor's note: The gist of this question is: * How do I add custom properties to objects output by Get-ChildItem that contain derived path information, namely the parent folder path (as Folder and name (as Foldername)? * How do I export the…
Carlos
  • 217
  • 1
  • 4
  • 13
-3
votes
2 answers

Powershell : multiple Select-Object statements returning 1st occurrence results only

I am running PowerShell version 4.0 on Windows 8.1 I have an xml document (from a nifi flow) called flow1.xml as follows: 123 BigTime
mikec
  • 155
  • 1
  • 17
1 2 3 4 5 6 7
8