diff --git a/README.md b/README.md index 43a81bd..b3bb312 100644 --- a/README.md +++ b/README.md @@ -13,45 +13,32 @@ The following steps explain how you can contribute to the project 3. enjoy ## How to use -1. Copy the 2 compiled DLL files (ConsoleLogonHook.dll and ConsoleLogonUI.dll) from ConsoleLogonHook\x64\Release into %SYSTEMROOT%\System32 -> [!NOTE] -> **It will most likely ask you to provide adminsistrator permission to copy to System32, just accept the warning** +> [!WARNING] +> **This LogonUI modification will require administrator privileges to be installed.** > -2. Take and rename authui.dll to au7hui.dll from windows 7 sp1 and copy into %SYSTEMROOT%\System32 , this is so the windows 7 consolelogonui can pull the resources from it (note: this step may not be necessary in the future) - Or alternatively, just copy au7hui.dll from a release -3. Take ownership of ConsoleLogon.dll and replace it with version, 10.0.19041.3636 (should be in releases), this only temporary until a pdb offset finder system is written as they are hardcoded atm -4. A) Import the following registry key as TrustedInstaller by copying it into a text file and save as a .reg file then running with psexec64, or using any other method to run something as trusted installer +1. Copy the 2 DLL files (ConsoleLogonHook.dll and ConsoleLogonUI.dll) from [Releases](https://github.com/wiktorwiktor12/ConsoleLogonHook/releases) into %SYSTEMROOT%\System32 -``` -Windows Registry Editor Version 5.00 - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleBlockedShutdownResolver] -"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLockScreen] -"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll" - -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLogonUX] -"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll" +> [!NOTE] +Step 2 might not be necessary in a future release. +> +2. Take `authui.dll` from Windows 7 SP1, rename it to `au7hui.dll` and place it into %SYSTEMROOT%\System32 , this is so the ConsoleLogonHook can pull the resources from it to have the Windows 7 logonUI, Or alternatively, just copy au7hui.dll from releases -[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.Shell.PlatformExtensions.ConsoleCredUX] -"DllPath"="C:\\Windows\\System32\\ConsoleLogonHook.dll" -``` +3. Take ownership of ConsoleLogon.dll and replace it with version, 10.0.19041.3636 (should be in releases), this only temporary until a pdb offset finder system is written as they are hardcoded atm -4. B) Or open a CMD window as TrustedInstaller via psexec64 and run the following commands: +4. Open a CMD window as TrustedInstaller via psexec64 and run the following commands: ``` -reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.Shell.PlatformExtensions.ConsoleCredUX /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f - reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleBlockedShutdownResolver /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLockScreen /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.UI.Logon.Controller.ConsoleLogonUX /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f + +reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Internal.Shell.PlatformExtensions.ConsoleCredUX /v DllPath /t REG_SZ /d %systemroot%\System32\ConsoleLogonHook.dll /f ``` -5. Take ownership of and rename Windows.UI.Logon.dll to anything else so it will invoke console login, it'll just work and do its thing +5. Take ownership of the file `Windows.UI.Logon.dll` and rename it to something elsem as an example `Windows.UI.Logon.bak.dll`, so it will fallback to the console login instead. > [!NOTE] > **THIS IS STILL EARLY INTO DEVELOPMENT AND MAY BE BUGGY**