DSCResources/cIntuneDeviceConfigurationSharedMultiDevicePolicyWindows10/cIntuneDeviceConfigurationSharedMultiDevicePolicyWindows10.schema.psm1

configuration cIntuneDeviceConfigurationSharedMultiDevicePolicyWindows10 {
    param (
        [Parameter()]
        [hashtable[]]
        $Items
)

<#
IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10 [String] #ResourceName
{
    DisplayName = [string]
    [AccessTokens = [string[]]]
    [AccountManagerPolicy = [MSFT_MicrosoftGraphsharedPCAccountManagerPolicy]]
    [AllowedAccounts = [string[]]{ domain | guest | notConfigured }]
    [AllowLocalStorage = [bool]]
    [ApplicationId = [string]]
    [ApplicationSecret = [PSCredential]]
    [Assignments = [MSFT_DeviceManagementConfigurationPolicyAssignments[]]]
    [CertificateThumbprint = [string]]
    [Credential = [PSCredential]]
    [DependsOn = [string[]]]
    [Description = [string]]
    [DisableAccountManager = [bool]]
    [DisableEduPolicies = [bool]]
    [DisablePowerPolicies = [bool]]
    [DisableSignInOnResume = [bool]]
    [Enabled = [bool]]
    [Ensure = [string]{ Absent | Present }]
    [FastFirstSignIn = [string]{ disabled | enabled | notConfigured }]
    [Id = [string]]
    [IdleTimeBeforeSleepInSeconds = [UInt32]]
    [KioskAppDisplayName = [string]]
    [KioskAppUserModelId = [string]]
    [LocalStorage = [string]{ disabled | enabled | notConfigured }]
    [MaintenanceStartTime = [string]]
    [ManagedIdentity = [bool]]
    [PsDscRunAsCredential = [PSCredential]]
    [SetAccountManager = [string]{ disabled | enabled | notConfigured }]
    [SetEduPolicies = [string]{ disabled | enabled | notConfigured }]
    [SetPowerPolicies = [string]{ disabled | enabled | notConfigured }]
    [SignInOnResume = [string]{ disabled | enabled | notConfigured }]
    [TenantId = [string]]
}
 
#>



    Import-DscResource -ModuleName PSDesiredStateConfiguration
    Import-DscResource -ModuleName Microsoft365DSC

    $dscResourceName = 'IntuneDeviceConfigurationSharedMultiDevicePolicyWindows10'

    $param = $PSBoundParameters
    $param.Remove("InstanceName")

    $dscParameterKeys = 'DisplayName' -split ', '

        foreach ($item in $Items)
        {
            if (-not $item.ContainsKey('Ensure'))
            {
                $item.Ensure = 'Present'
            }
            $keyValues = foreach ($key in $dscParameterKeys)
        {
            $item.$key
        }
        $executionName = $keyValues -join '_'
        $executionName = $executionName -replace "[\s()\\:*-+/{}```"']", '_'
        (Get-DscSplattedResource -ResourceName $dscResourceName -ExecutionName $executionName -Properties $item -NoInvoke).Invoke($item)
    }
}