Micke-K / IntuneManagement

Copy, export, import, delete, document and compare policies and profiles in Intune and Azure with PowerShell script and WPF UI. Import ADMX files and registry settings with ADMX ingestion. View and edit PowerShell script.
MIT License
973 stars 174 forks source link

Compare and Bulk Compare process #128

Open martincaddick opened 1 year ago

martincaddick commented 1 year ago

Hi Micke, Probably something I'm doing wrong, however, What I'm trying to do is export the configuration from one tenant (Contoso) and then bulk compare the configuration with another tenant (Contoso Target). These are just standard demos.ms.com tenants so I'm happy to provide you access if it helps.

How do I exclude some fields from the compare? In particular, I need to exclude the Id, createdDateTime, lastModifiedDateTime and potentially, the assignments as well.

Cheers

image image
Micke-K commented 1 year ago

Hello!

The error should be fixed in the next version. That was the easy part...

The other thing not so easy. The design as it is now is that the exported policy must be from the same tenant. There are some reasons for that. I can fix it but this will require a redesign of the Compare functionality. I started that a year ago but never finished it.

I will try to add it to the list that keeps growing.

Things to add support for:

Note: Administrative Templates polices based on custom ADMX will not work or be very complex to fix since they have a unique ID for each setting in every tenant.

martincaddick commented 1 year ago

To be clear, those screenshots were comparing Contoso and Contoso Target, 2 different tenants.

martincaddick commented 1 year ago

@Micke-K Came across this https://evotec.xyz/powershell-comparing-advanced-objects/ so something I'll use in the meantime from here https://github.com/EvotecIT/PSSharedGoods Cheers

image image