jflieben / OnedriveMapperV5

Other
13 stars 2 forks source link

Tenant Name ($O365CustomerName) #7

Open linden-seitz-bcorg opened 1 month ago

linden-seitz-bcorg commented 1 month ago

We are in the process of rolling out OneDriveMapper now but in October we will be doing a tenant rename. Can the $O365CustomerName variable support multiple tenant values (the one we have now and the one we are going to) so we can rollout the .ps1 one time? We have to have multiple push methods via GPO and Intune.

jflieben commented 1 month ago

that is a tricky operation....but doesn't MS leave a redirect in place for the old tenant name? If they don't, you'll have to edit the script so it uses the new name....there is no way for the script to detect your tenant name easily, only the tenant id (guid) as there is no public API for the tenant name (that I know of). You could put a pointer file containing the tenant name somewhere and have the script retrieve that at each run, then change it when you do the cutover?

linden-seitz-bcorg commented 4 weeks ago

thank you for the insight and quick reply - I will certainly go back to my Team and we'll figure out how to make this happen. Been very pleased with what ODM will offer us in working with our hosted environment and your support of it!