No mouse cursor appears during a Configuration Manager OSD task sequence

Van toepassing: System Center Configuration Manager

Symptoms


You're running a Microsoft System Center Configuration Manager OSD task sequence that deploys Windows 10. During the Setup Windows and ConfigMgr task, the device restarts out of Windows PE and into the newly installed Windows system. If you then open a Command Prompt window by pressing F8, no mouse cursor appears. This issue continues to occur for the rest of the task sequence. After the task sequence finishes, the mouse cursor appears.

Cause


This issue is caused by a design change in Windows 10 in which the mouse cursor is suppressed during Windows Setup. Because Configuration Manager OSD task sequences run entirely within Windows Setup in the newly installed Windows system, the mouse cursor is suppressed during this phase of the task sequence.

Resolution


To resolve this issue, change the policy that suppresses the mouse cursor during Windows Setup by default. This is easily accomplished by changing the registry key value that's associated with the policy. The registry key value is located in the following subkey:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Value Name Value Type Values
EnableCursorSuppression REG_DWORD 1 = Enabled: Mouse cursor is suppressed (default)

0 = Disabled: Mouse cursor is not suppressed


To make sure that the mouse cursor is available throughout the task sequence, set this registry key during the WinPE portion of the task sequence to the offline Windows system. This can be done at any point between the Apply Operating System and Setup Windows and ConfigMgr tasks.

To make this change, use either of the following methods:

 
Import the task sequence steps

  1. Download the task sequence from the following link:

    CorrectMissingMouseCursor.zip

    The task sequence contains all the required additional steps. These will be copied into the existing task sequence that's experiencing the issue.  
  2. Import the downloaded task sequence to Configuration Manager by following the steps in the "To import task sequences" section in Manage task sequences to automate tasks in Configuration Manager.
  3. In the Configuration Manager console under Software Library > Operating Systems > task sequences, navigate to the newly imported Correct Missing Mouse Cursor Steps task sequence from step 2.
     

    Mouse 1-3

  4. Right-click the Correct Missing Mouse Cursor Steps task sequence that was imported in step 2, and select Edit. Make sure to leave the task sequence open so that its steps can be copied to the affected task sequence.

    Mouse 1-4

     
  5. In the Configuration Manager console, under Software Library > Operating Systems > Task Sequences, navigate to the affected task sequence.

    Mouse 1-5

      
  6. Right-click the affected task sequence and select Edit.
     
    Mouse 1-6

     
  7. For steps 8–12, make sure that both the affected task sequence and the imported Correct Missing Mouse Cursor Steps task sequence are always open. Do not close either of these task sequences during these steps.

    Mouse 1-7a

    Mouse 1-7b

     
  8. In the imported Correct Missing Mouse Cursor Steps task sequence, right-click the Correct Missing Mouse Cursor group, and select Copy.
     
    Mouse 1-8

      
  9. In the affected task sequence, right-click the Apply Operating System task, and then select Paste.

    Mouse 1-9a


    Note This should copy the Correct Missing Mouse Cursor group immediately after the Apply Operating System task.

    Mouse 1-9b

     
  10. In the imported Correct Missing Mouse Cursor Steps task sequence, right-click the Reset Mouse Suppression to Default task, and select Copy.

    Mouse 1-11
  11. In the affected task sequence, right-click the last task in the task sequence, and then select Paste.

    Mouse 1-12a


    Note 

    This should copy the Reset Mouse Suppression to Default task as the last task in the task sequence. The last task in the task sequence may differ from the one that's shown in the screenshot.

    4494800 -12

      
  12. Select the OK or Apply button on the affected task sequence to save the sequence.

    Mouse 1-13

     
  13. Close the imported Setup Complete Workaround Steps task sequence.

    Mouse 1-14

      

Notes

  • For step 12, the "last" task selected does not necessarily have to be the absolute last task in the task sequence. However, it should be located toward the end of the task sequence.
      
  • For MDT task sequences, steps 11–12 should be performed two times: One time at the end of the State Restore group and again at the end of the Gather Logs and StateStore on Failure group. Additionally, on the Options tab of the Reset Mouse Suppression to Default task that was added to the end of the Gather Logs and StateStore on Failure group, the Continue on error option should be selected.
     
  • Steps 10–11 restore the EnableCursorSuppression policy to its default value in Windows. Although this setting is not required for the solution to work, we recommend that you reset the EnableCursorSuppression policy to its default value. This will make sure that there are no unusual consequences in Windows after the task sequence finishes changing the policy from its default value.
     

    Manually set the task sequence steps

    1. In the Configuration Manager console under Software Library > Operating Systems > Task Sequences, navigate to the affected task sequence.

      Mouse 2-1

        
    2. Right-click the affected task sequence, and select Edit.
       
      Mouse 2-2

        
    3. In the affected task sequence, select the Apply Operating System task.
       
      Mouse 2-3

        
    4. Add a new group immediately after the Apply Operating System task. To do this, open the Add menu, and select New Group.

      Mouse 2-4

        
    5. Click the newly created group, and rename it to Correct Missing Mouse Cursor.
       
      Mouse 2-5

       
    6. Under the Correct Missing Mouse Cursor group, add a Run Command Line task. To do this, open the Add menu, and select General > Run Command Line.

      Mouse 2-6

       
    7. Click the newly created Run Command Line task, and specify the following values:

      Name:

      Load Registry SOFTWARE Hive
       


      Command line command:
      reg.exe load HKLM\Temp %OSDTargetSystemDrive%\Windows\system32\config\software


      Mouse 2-7

    8. Immediately after the Load Registry SOFTWARE Hive task, add another Run Command Line task. To do this, open the Add menu, and select General > Run Command Line.

      Mouse 2-8

        
    9. Click the newly created Run Command Line task, and specify the following values:

      Name:

      Disable Suppressed Mouse Cursor
       
       

      Command line command:
      reg.exe add "HKLM\Temp\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableCursorSuppression /t REG_DWORD /d 0 /f


      Mouse 2-9

    10. Immediately after the Disable Suppressed Mouse Cursor task, add another Run Command Line task. To do this, open the Add menu, and select General > Run Command Line.

      Mouse 2-10

        
    11. Click the newly created Run Command Line task, and specify the following values:

      Name:

      Unmount Registry SOFTWARE Hive
       


      Command line command:
      reg.exe unload HKLM\Temp


      Mouse 2-11

    12. Click the last task in the task sequence.
       

      Note The last task in the task sequence may differ from the one that's shown in the screenshot.

      Mouse 2-13

    13. Add a Run Command Line task. To do this, open the Add menu, and select General > Run Command Line. This should add the Run Command Line task as the last task in the task sequence.

      Mouse 2-14
    14. Click the newly created Run Command Line task and, specify the following values:

      Name:

      Reset Mouse Suppression to Default



      Command Line:
      reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableCursorSuppression /t REG_DWORD /d 1 /f


      Mouse 2-15

    15. Click the OK or Apply button to save the task sequence.

      Mouse 2-16

       

    Notes

    • For step 13, the "last" task that's selected does not necessarily have to be the absolute last task in the task sequence. However, it should be located toward the end of the task sequence.
        
    • For MDT task sequences, steps 13–15 should be performed two times: One time at the end of the State Restore group, and again at the end of the Gather Logs and StateStore on Failure group. Additionally, on the Options tab of the the Reset Mouse Suppression to Default task that's added to the end of the Gather Logs and StateStore on Failure group, the Continue on error option should be selected.
        
    • Steps 12–14 restore the EnableCursorSuppression policy to its default value in Windows. Although it's not required for the solution to work, we recommend that you reset the EnableCursorSuppression policy to its default value. This will make sure that there are no unusual consequences in Windows after the task sequence finishes changing the policy from its default value.