Jump to content

Recommended Posts

Posted

I'm sure there is a cleaner solution out there, but I want to give a starting point for those in a similar situation.

Here is a work around to add several ipads all called ipad to a azure ad group.

 

Please vote up the feature to do this easier here.

https://microsoftintune.uservoice.com/forums/291681-ideas/suggestions/20162884-allow-the-use-of-device-serial-number-when-assigni

 

 

I exported a list of devices from the web gui into csv

filtered out the devices I needed and put the devicesids into a variable

used get-azureaddevice to get the objectid based on the device ids

the used add-azureadgroupmember on the results.

 

I only needed this for 10 devices so did it by hand, but I'm sure the SNs could be put into a variable then the rest done with import-csv.

 

Are there any commands I've missed that would allow me to pull devices direct from powershell by SN?

 

Any tips on this welcome.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...