Use PowerShell to find all collections where the specified device has a membership

Yesterday I deployed a computer with ConfigMgr and then wondered why it got certain software installed. And so another script was born. The Get-CMCollectionOfDevice command retrieves all collections where the specified device has a membership The Script can be downloaded from here

 

How to generate random computer names for lab deployments using SCCM OSD

For my lab environment I use the below described approach to generate random computernames for my clients. The script does the following: Read the Task Sequence Package Name Based on the name set the appropriate prefix Generate a random number between 100 and 1000 Generate the new computer name based on Prefix + random number To implement this do the following: Put the script listed below into a package Add the script to the TS Read More …