Consolidate PS script in PS1 file (MS Teams Policies)

AMaDAC 81 Reputation points
2021-03-09T05:04:39.823+00:00

Is there a way to consolidate PS script for MS Teams Policy including:
Meeting, Messaging, Live Events, App permission etc.,

And is it possible to convert it to Json?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,449 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 33,941 Reputation points Microsoft Vendor
    2021-03-11T09:19:19.747+00:00

    Hi,

    This could be helpful to get started
    https://practical365.com/collaboration/teams/using-powershell-to-apply-messaging-policies-to-teams-users/

    To convert an object to json you can use the ConvertTo-Json cmdlet.
    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/convertto-json

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments