I'm still learning about PowerShell and SCCM.
At the moment i'm trying to get all resource names of a device collection into an array variable. I don't know if this is possible?
Example:
Computers: Win7, Win8, CM02,....
into a variable like:
$computers = COMPUTERNAMEWIN7.local.domain.lo, COMPUTERNAMEWIN8.local.domain.lo, COMPUTERNAMECM02.local.domain.lo
This is what i'm trying to achieve:
I'm trying to deploy LibreOffice to all computers i have under my control in SCCM 2012.
So i have a Device Collection: "All Systems" with all these computers in it.
and then use aForeach-Object command to copy and install the .Msi file of LibreOffice.
Is there a PowerShell command to get these into an array like the example, when specifying the device collection name ?
thank you :)