Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

"Select" Problem with leading underscore

$
0
0

In my script I am trying to use "Select" on _Server, DisplayName and Version.  Unfortunately it displays everything except  _Server in my csv file. How do I fix this?

My script:

Get-WmiObject -Class Win32Reg_AddRemovePrograms  -computer $computers | Select _Server, DisplayName, Version |Export-CSV c:\results\1172_ClassRoom_InventoryRaw.csv -notypeinformation


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>