Skip to content

IntuneWindowsUpdateForBusinessHotpatchProfileWindows10

Parameters

Parameter Attribute DataType Description Allowed Values
DisplayName Key String Indicates the display name of the device cleanup rule.
Id Write String The unique identifier for an entity. Read-only.
Description Write String Indicates the description for the device clean up rule.
HotpatchEnabled Write Boolean Indicates if hotpatch is enabled.
RoleScopeTagIds Write String[] List of Scope Tags for this Entity instance.
ApprovalSettings Write MSFT_MicrosoftGraphWindowsQualityUpdateApprovalSetting[] Specifies the approval settings for the Windows quality update policy.
Assignments Write MSFT_DeviceManagementConfigurationPolicyAssignments[] Represents the assignment to the Intune policy.
Ensure Write String Present ensures the policy exists, absent ensures it is removed. Present, Absent
Credential Write PSCredential Credentials of the Admin
ApplicationId Write String Id of the Azure Active Directory application to authenticate with.
TenantId Write String Id of the Azure Active Directory tenant used for authentication.
ApplicationSecret Write PSCredential Secret of the Azure Active Directory tenant used for authentication.
CertificateThumbprint Write String Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.
CertificatePassword Write PSCredential Username can be made up to anything but password will be used for CertificatePassword
CertificatePath Write String Path to certificate used in service principal usually a PFX file.
ManagedIdentity Write Boolean Managed ID being used for authentication.
AccessTokens Write String[] Access token used for authentication.

Embedded Instances

MSFT_MicrosoftGraphWindowsQualityUpdateApprovalSetting

Parameters

Parameter Attribute DataType Description Allowed Values
ApprovalMethodType Write String The approval method of the Windows quality update policy. Possible values are: automatic, manual. automatic, manual
DeferredDeploymentInDay Write UInt32 The number of days to defer the deployment of the Windows quality update.
WindowsQualityUpdateCadence Write String The publishing cadence of the Windows quality update. Possible values are: monthly, outOfBand. monthly, outOfBand
WindowsQualityUpdateCategory Write String The category of the Windows quality update. Possible values are: all, nonSecurity, quickMachineRecovery, security. all, nonSecurity, quickMachineRecovery, security

MSFT_DeviceManagementConfigurationPolicyAssignments

Parameters

Parameter Attribute DataType Description Allowed Values
dataType Required String The type of the target assignment. #microsoft.graph.cloudPcManagementGroupAssignmentTarget, #microsoft.graph.groupAssignmentTarget, #microsoft.graph.allLicensedUsersAssignmentTarget, #microsoft.graph.allDevicesAssignmentTarget, #microsoft.graph.exclusionGroupAssignmentTarget, #microsoft.graph.configurationManagerCollectionAssignmentTarget
deviceAndAppManagementAssignmentFilterType Write String The type of filter of the target assignment i.e. Exclude or Include. Possible values are:none, include, exclude. none, include, exclude
deviceAndAppManagementAssignmentFilterId Write String The Id of the filter for the target assignment.
deviceAndAppManagementAssignmentFilterDisplayName Write String The display name of the filter for the target assignment.
groupId Write String The group Id that is the target of the assignment.
groupDisplayName Write String The group Display Name that is the target of the assignment.
collectionId Write String The collection Id that is the target of the assignment.(ConfigMgr)

Description

Intune Windows Update For Business Hotpatch Profile for Windows10

Permissions

Graph

To authenticate with the Graph API, this resource requires the following permissions:

Delegated permissions

  • Read
  • DeviceManagementConfiguration.Read.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All

  • Update

  • DeviceManagementConfiguration.ReadWrite.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All

Application permissions

  • Read
  • DeviceManagementConfiguration.Read.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All

  • Update

  • DeviceManagementConfiguration.ReadWrite.All, GroupMember.Read.All, DeviceManagementRBAC.Read.All

Examples

Example 1

This example creates a device cleanup rule.

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String]
        $ApplicationId,

        [Parameter()]
        [System.String]
        $TenantId,

        [Parameter()]
        [System.String]
        $CertificateThumbprint
    )

    Import-DscResource -ModuleName Microsoft365DSC

    Node localhost
    {
        IntuneWindowsUpdateForBusinessHotpatchProfileWindows10 'IntuneWindowsUpdateForBusinessHotpatchProfileWindows10-Example'
        {
            DisplayName           = "Hotpatch - Windows 11 Enterprise";
            Description           = "Enables hotpatch quality updates so security fixes apply without a restart";
            HotpatchEnabled       = $True;
            RoleScopeTagIds       = @("0");
            ApprovalSettings      = @(
                MSFT_MicrosoftGraphWindowsQualityUpdateApprovalSetting{
                    ApprovalMethodType           = "automatic"
                    DeferredDeploymentInDay      = 2
                    WindowsQualityUpdateCadence  = "monthly"
                    WindowsQualityUpdateCategory = "all"
                }
            );
            Assignments           = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType                                   = "#microsoft.graph.allDevicesAssignmentTarget"
                    deviceAndAppManagementAssignmentFilterType = "none"
                }
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType         = "#microsoft.graph.exclusionGroupAssignmentTarget"
                    groupDisplayName = "Hotpatch Exclusions"
                }
            );
            Ensure                = 'Present';
            ApplicationId         = $ApplicationId;
            TenantId              = $TenantId;
            CertificateThumbprint = $CertificateThumbprint;
        }
    }
}

Example 2

This example updates a device cleanup rule.

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String]
        $ApplicationId,

        [Parameter()]
        [System.String]
        $TenantId,

        [Parameter()]
        [System.String]
        $CertificateThumbprint
    )

    Import-DscResource -ModuleName Microsoft365DSC

    Node localhost
    {
        IntuneWindowsUpdateForBusinessHotpatchProfileWindows10 'IntuneWindowsUpdateForBusinessHotpatchProfileWindows10-Example'
        {
            DisplayName           = "Hotpatch - Windows 11 Enterprise";
            Description           = "Enables hotpatch quality updates so security fixes apply without a restart";
            HotpatchEnabled       = $False; # Updated Property
            RoleScopeTagIds       = @("0");
            ApprovalSettings      = @(
                MSFT_MicrosoftGraphWindowsQualityUpdateApprovalSetting{
                    ApprovalMethodType           = "automatic"
                    DeferredDeploymentInDay      = 2
                    WindowsQualityUpdateCadence  = "monthly"
                    WindowsQualityUpdateCategory = "all"
                }
            );
            Assignments           = @(
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType                                   = "#microsoft.graph.allDevicesAssignmentTarget"
                    deviceAndAppManagementAssignmentFilterType = "none"
                }
                MSFT_DeviceManagementConfigurationPolicyAssignments{
                    dataType         = "#microsoft.graph.exclusionGroupAssignmentTarget"
                    groupDisplayName = "Hotpatch Exclusions"
                }
            );
            Ensure                = 'Present';
            ApplicationId         = $ApplicationId;
            TenantId              = $TenantId;
            CertificateThumbprint = $CertificateThumbprint;
        }
    }
}

Example 3

This example removes a device cleanup rule.

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String]
        $ApplicationId,

        [Parameter()]
        [System.String]
        $TenantId,

        [Parameter()]
        [System.String]
        $CertificateThumbprint
    )

    Import-DscResource -ModuleName Microsoft365DSC

    Node localhost
    {
        IntuneWindowsUpdateForBusinessHotpatchProfileWindows10 'IntuneWindowsUpdateForBusinessHotpatchProfileWindows10-Example'
        {
            DisplayName           = "Hotpatch - Windows 11 Enterprise";
            Ensure                = 'Absent';
            ApplicationId         = $ApplicationId;
            TenantId              = $TenantId;
            CertificateThumbprint = $CertificateThumbprint;
        }
    }
}