Transferring Reusable PowerShell Objects Between Microsoft 365 Tenants

MVP

People often need to transfer objects or code between Microsoft 365 tenants. When it comes to dealing with objects, the Microsoft Graph PowerShell SDK’s ToJsonString method is very useful. The method outputs a string containing JSON content, but only for object properties that have a value. This makes the much easier to use the output as the basis for a template object or as the payload body to create an object in another tenant.

 

https://office365itpros.com/2024/09/03/tojsonstring-method/

0 Replies