AutopilotDeviceSync

1.5

This script checks all the Autopilot-related devices to make sure that they are named correctly, have the right attributes (e.g. Group Tag
and Purchase Order ID), and aren't redundant (e.g. because the device has been deployed multiple times, creating a new Hybrid AADJ device
each time).  By default, this script will just display information about what isn't in sync.
This script checks all the Autopilot-related devices to make sure that they are named correctly, have the right attributes (e.g. Group Tag
and Purchase Order ID), and aren't redundant (e.g. because the device has been deployed multiple times, creating a new Hybrid AADJ device
each time).  By default, this script will just display information about what isn't in sync.  If you want it to actually fix it, you have
to specify additional command line paraemters.  At present, extra Hybrid Azure AD devices can be removed from Active Directory (with
-CleanDevices switch) and device name issues can be fixed (with -FixNames).

Due to the amount of data this will retrieve, it is possible this won't work for large tenants due to Graph API throttling.
Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name AutopilotDeviceSync

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • Michael Niehaus

Tags

Windows AutoPilot

Dependencies

This script has no dependencies.

Release Notes

Version 1.5:  Added additional group tag checking logic.
Version 1.4:  Updated authentication logic.
Version 1.3:  Original public version.

FileList

Version History

Version Downloads Last updated
1.5 (current version) 3,454 6/9/2020
1.4 180 4/21/2020
1.3 228 3/9/2020