Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

powershell question - export Ad computer group to csv - get mac address, name

$
0
0

hi folks

I haven't looked at scripts in years.

I need to export all computers from certain AD security groups, and my syntax is rubbish for gettting the MACs!

the basics which worked were -

Get-ADGroupMember -Identity "blah blah"|select name, objectGUID |export-csv -path C:\temp\blahblah.csv -NoTypeInformation

I then tried to add in Get-WMIObject win32_networkadapterconfiguration |select description, macaddress

that didn't work

and I tried a few others

basically I don't know what I am doing wrong not joining the different areas.

If someone can give me a hand I would appreciate it. I need all the MACs and name for SCCM, I plan to import the csv and just getting objectGUID etc is not helpful.


Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

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