DSCResources/cIntuneWifiConfigurationPolicyWindows10/cIntuneWifiConfigurationPolicyWindows10.schema.psm1

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

<#
IntuneWifiConfigurationPolicyWindows10 [String] #ResourceName
{
    DisplayName = [string]
    [AccessTokens = [string[]]]
    [ApplicationId = [string]]
    [ApplicationSecret = [PSCredential]]
    [Assignments = [MSFT_DeviceManagementConfigurationPolicyAssignments[]]]
    [CertificateThumbprint = [string]]
    [ConnectAutomatically = [bool]]
    [ConnectToPreferredNetwork = [bool]]
    [ConnectWhenNetworkNameIsHidden = [bool]]
    [Credential = [PSCredential]]
    [DependsOn = [string[]]]
    [Description = [string]]
    [Ensure = [string]{ Absent | Present }]
    [ForceFIPSCompliance = [bool]]
    [Id = [string]]
    [ManagedIdentity = [bool]]
    [MeteredConnectionLimit = [string]{ fixed | unrestricted | variable }]
    [NetworkName = [string]]
    [PreSharedKey = [string]]
    [ProxyAutomaticConfigurationUrl = [string]]
    [ProxyManualAddress = [string]]
    [ProxyManualPort = [UInt32]]
    [ProxySetting = [string]{ automatic | manual | none }]
    [PsDscRunAsCredential = [PSCredential]]
    [Ssid = [string]]
    [TenantId = [string]]
    [WifiSecurityType = [string]{ open | wep | wpa2Enterprise | wpa2Personal | wpaEnterprise | wpaPersonal }]
}
 
#>



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

    $dscResourceName = 'IntuneWifiConfigurationPolicyWindows10'

    $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)
    }
}