Manipulating the Userinit registry key
Userinit is a crucial Windows process that plays a significant role during the startup of a user session. It initializes the user environment and executes various functions necessary for a successful login. When you log in to your Windows account, Userinit is one of the first processes to run. When it runs, it performs the following tasks:
-
Loads your profile settings and preferences, including desktop background, screen resolution, and other personalized settings.
-
Runs login scripts configured for you during the login process.
-
Starts your preferred shell.
When you add the batch file that you had created earlier to the Userinit registry key, it runs Cloud Drive Mapper (CDM) during startup.
-
Press Windows + R on your keyboard to open the Run dialog box.
-
Enter regedit in the Open: box then select OK. The User Account Control dialog appears.
-
Select Yes to launch the Registry Editor.
-
Expand the HKEY_LOCAL_MACHINE registry hive to select SOFTWARE > Microsoft > Windows NT > CurrentVersion > Winlogon (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon).
-
Double-click the Userinit string from within the Winlogon registry hive. The Edit String dialog box appears.
-
Enter the location of the batch file (.bat file) in the Value data: box then select OK.