Windows 10 Lock Screen Changing After Sign Out












1















I set custom Lock Screen image in settings. It's all good but when in Sign Out through Ctrl+Alt+Del the screen is going to default, to the image displayed below. I'm the only user on my laptop and have all owner rights. How to set my picture to all causes?



enter image description here










share|improve this question





























    1















    I set custom Lock Screen image in settings. It's all good but when in Sign Out through Ctrl+Alt+Del the screen is going to default, to the image displayed below. I'm the only user on my laptop and have all owner rights. How to set my picture to all causes?



    enter image description here










    share|improve this question



























      1












      1








      1








      I set custom Lock Screen image in settings. It's all good but when in Sign Out through Ctrl+Alt+Del the screen is going to default, to the image displayed below. I'm the only user on my laptop and have all owner rights. How to set my picture to all causes?



      enter image description here










      share|improve this question
















      I set custom Lock Screen image in settings. It's all good but when in Sign Out through Ctrl+Alt+Del the screen is going to default, to the image displayed below. I'm the only user on my laptop and have all owner rights. How to set my picture to all causes?



      enter image description here







      windows-10






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 15 at 16:51









      Force Flow

      3,46572238




      3,46572238










      asked Jan 15 at 14:27









      ArturArtur

      62




      62






















          1 Answer
          1






          active

          oldest

          votes


















          0














          If you want to do it via Registry. That's a terrible idea, registry hacking is always a last resort, since it breaks so easily. All I can say is good luck; the key you want is HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionLock Screen, but the format is completely opaque, and that's not all: The actual lock images are stored in a folder C:ProgramDataMicrosoftWindowsSystemData{SID}ReadOnlyLockScreen_B, which is normally secured for SYSTEM only.



          Here are the workarounds:



          Requires a ps script and regedit



          I deployed via logon script (bat file)



          Here is the ps script - this makes all the settings for the logged in user and changes the Lock Screen:





          # Change this to the path where you keep the desired background image
          $imagePath = '(Path to Image, include single quotes)'

          $newImagePath = [System.IO.Path]::GetDirectoryName($imagePath) + '' + (New-Guid).Guid + [System.IO.Path]::GetExtension($imagePath)
          Copy-Item $imagePath $newImagePath
          [Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null
          Add-Type -AssemblyName System.Runtime.WindowsRuntime
          $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
          Function Await($WinRtTask, $ResultType) {
          $asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
          $netTask = $asTask.Invoke($null, @($WinRtTask))
          $netTask.Wait(-1) | Out-Null
          $netTask.Result
          }
          Function AwaitAction($WinRtAction) {
          $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0]
          $netTask = $asTask.Invoke($null, @($WinRtAction))
          $netTask.Wait(-1) | Out-Null
          }
          [Windows.Storage.StorageFile,Windows.Storage,ContentType=WindowsRuntime] | Out-Null
          $image = Await ([Windows.Storage.StorageFile]::GetFileFromPathAsync($newImagePath)) ([Windows.Storage.StorageFile])
          AwaitAction ([Windows.System.UserProfile.LockScreen]::SetImageFileAsync($image))
          Remove-Item $newImagePath




          Here is the Regedit to Change Login Screen



          Windows Registry Editor Version 5.00

          [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUICreativeS-1-0-0]
          "RotatingLockScreenEnabled"=dword:00000000
          "LockImageFlags"=dword:00000000
          "LockScreenOptions"=dword:00000000
          "CreativeId"=""
          "PortraitAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"
          "LandscapeAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"




          Here is the logon bat file



          CLS
          @echo off

          regedit /S (insert path to .reg file here)


          IF NOT EXIST (Local Path storing image) (
          mkdir (Local Path storing image)
          xcopy (From path) (Local Path storing image) /R /Y /I
          ) ELSE ECHO Applying Lock Screen

          Powershell.exe -executionpolicy remotesigned -File (Path to ps1 file)
          Exit

          EXIT





          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394537%2fwindows-10-lock-screen-changing-after-sign-out%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            If you want to do it via Registry. That's a terrible idea, registry hacking is always a last resort, since it breaks so easily. All I can say is good luck; the key you want is HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionLock Screen, but the format is completely opaque, and that's not all: The actual lock images are stored in a folder C:ProgramDataMicrosoftWindowsSystemData{SID}ReadOnlyLockScreen_B, which is normally secured for SYSTEM only.



            Here are the workarounds:



            Requires a ps script and regedit



            I deployed via logon script (bat file)



            Here is the ps script - this makes all the settings for the logged in user and changes the Lock Screen:





            # Change this to the path where you keep the desired background image
            $imagePath = '(Path to Image, include single quotes)'

            $newImagePath = [System.IO.Path]::GetDirectoryName($imagePath) + '' + (New-Guid).Guid + [System.IO.Path]::GetExtension($imagePath)
            Copy-Item $imagePath $newImagePath
            [Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null
            Add-Type -AssemblyName System.Runtime.WindowsRuntime
            $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
            Function Await($WinRtTask, $ResultType) {
            $asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
            $netTask = $asTask.Invoke($null, @($WinRtTask))
            $netTask.Wait(-1) | Out-Null
            $netTask.Result
            }
            Function AwaitAction($WinRtAction) {
            $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0]
            $netTask = $asTask.Invoke($null, @($WinRtAction))
            $netTask.Wait(-1) | Out-Null
            }
            [Windows.Storage.StorageFile,Windows.Storage,ContentType=WindowsRuntime] | Out-Null
            $image = Await ([Windows.Storage.StorageFile]::GetFileFromPathAsync($newImagePath)) ([Windows.Storage.StorageFile])
            AwaitAction ([Windows.System.UserProfile.LockScreen]::SetImageFileAsync($image))
            Remove-Item $newImagePath




            Here is the Regedit to Change Login Screen



            Windows Registry Editor Version 5.00

            [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUICreativeS-1-0-0]
            "RotatingLockScreenEnabled"=dword:00000000
            "LockImageFlags"=dword:00000000
            "LockScreenOptions"=dword:00000000
            "CreativeId"=""
            "PortraitAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"
            "LandscapeAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"




            Here is the logon bat file



            CLS
            @echo off

            regedit /S (insert path to .reg file here)


            IF NOT EXIST (Local Path storing image) (
            mkdir (Local Path storing image)
            xcopy (From path) (Local Path storing image) /R /Y /I
            ) ELSE ECHO Applying Lock Screen

            Powershell.exe -executionpolicy remotesigned -File (Path to ps1 file)
            Exit

            EXIT





            share|improve this answer




























              0














              If you want to do it via Registry. That's a terrible idea, registry hacking is always a last resort, since it breaks so easily. All I can say is good luck; the key you want is HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionLock Screen, but the format is completely opaque, and that's not all: The actual lock images are stored in a folder C:ProgramDataMicrosoftWindowsSystemData{SID}ReadOnlyLockScreen_B, which is normally secured for SYSTEM only.



              Here are the workarounds:



              Requires a ps script and regedit



              I deployed via logon script (bat file)



              Here is the ps script - this makes all the settings for the logged in user and changes the Lock Screen:





              # Change this to the path where you keep the desired background image
              $imagePath = '(Path to Image, include single quotes)'

              $newImagePath = [System.IO.Path]::GetDirectoryName($imagePath) + '' + (New-Guid).Guid + [System.IO.Path]::GetExtension($imagePath)
              Copy-Item $imagePath $newImagePath
              [Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null
              Add-Type -AssemblyName System.Runtime.WindowsRuntime
              $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
              Function Await($WinRtTask, $ResultType) {
              $asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
              $netTask = $asTask.Invoke($null, @($WinRtTask))
              $netTask.Wait(-1) | Out-Null
              $netTask.Result
              }
              Function AwaitAction($WinRtAction) {
              $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0]
              $netTask = $asTask.Invoke($null, @($WinRtAction))
              $netTask.Wait(-1) | Out-Null
              }
              [Windows.Storage.StorageFile,Windows.Storage,ContentType=WindowsRuntime] | Out-Null
              $image = Await ([Windows.Storage.StorageFile]::GetFileFromPathAsync($newImagePath)) ([Windows.Storage.StorageFile])
              AwaitAction ([Windows.System.UserProfile.LockScreen]::SetImageFileAsync($image))
              Remove-Item $newImagePath




              Here is the Regedit to Change Login Screen



              Windows Registry Editor Version 5.00

              [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUICreativeS-1-0-0]
              "RotatingLockScreenEnabled"=dword:00000000
              "LockImageFlags"=dword:00000000
              "LockScreenOptions"=dword:00000000
              "CreativeId"=""
              "PortraitAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"
              "LandscapeAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"




              Here is the logon bat file



              CLS
              @echo off

              regedit /S (insert path to .reg file here)


              IF NOT EXIST (Local Path storing image) (
              mkdir (Local Path storing image)
              xcopy (From path) (Local Path storing image) /R /Y /I
              ) ELSE ECHO Applying Lock Screen

              Powershell.exe -executionpolicy remotesigned -File (Path to ps1 file)
              Exit

              EXIT





              share|improve this answer


























                0












                0








                0







                If you want to do it via Registry. That's a terrible idea, registry hacking is always a last resort, since it breaks so easily. All I can say is good luck; the key you want is HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionLock Screen, but the format is completely opaque, and that's not all: The actual lock images are stored in a folder C:ProgramDataMicrosoftWindowsSystemData{SID}ReadOnlyLockScreen_B, which is normally secured for SYSTEM only.



                Here are the workarounds:



                Requires a ps script and regedit



                I deployed via logon script (bat file)



                Here is the ps script - this makes all the settings for the logged in user and changes the Lock Screen:





                # Change this to the path where you keep the desired background image
                $imagePath = '(Path to Image, include single quotes)'

                $newImagePath = [System.IO.Path]::GetDirectoryName($imagePath) + '' + (New-Guid).Guid + [System.IO.Path]::GetExtension($imagePath)
                Copy-Item $imagePath $newImagePath
                [Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null
                Add-Type -AssemblyName System.Runtime.WindowsRuntime
                $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
                Function Await($WinRtTask, $ResultType) {
                $asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
                $netTask = $asTask.Invoke($null, @($WinRtTask))
                $netTask.Wait(-1) | Out-Null
                $netTask.Result
                }
                Function AwaitAction($WinRtAction) {
                $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0]
                $netTask = $asTask.Invoke($null, @($WinRtAction))
                $netTask.Wait(-1) | Out-Null
                }
                [Windows.Storage.StorageFile,Windows.Storage,ContentType=WindowsRuntime] | Out-Null
                $image = Await ([Windows.Storage.StorageFile]::GetFileFromPathAsync($newImagePath)) ([Windows.Storage.StorageFile])
                AwaitAction ([Windows.System.UserProfile.LockScreen]::SetImageFileAsync($image))
                Remove-Item $newImagePath




                Here is the Regedit to Change Login Screen



                Windows Registry Editor Version 5.00

                [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUICreativeS-1-0-0]
                "RotatingLockScreenEnabled"=dword:00000000
                "LockImageFlags"=dword:00000000
                "LockScreenOptions"=dword:00000000
                "CreativeId"=""
                "PortraitAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"
                "LandscapeAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"




                Here is the logon bat file



                CLS
                @echo off

                regedit /S (insert path to .reg file here)


                IF NOT EXIST (Local Path storing image) (
                mkdir (Local Path storing image)
                xcopy (From path) (Local Path storing image) /R /Y /I
                ) ELSE ECHO Applying Lock Screen

                Powershell.exe -executionpolicy remotesigned -File (Path to ps1 file)
                Exit

                EXIT





                share|improve this answer













                If you want to do it via Registry. That's a terrible idea, registry hacking is always a last resort, since it breaks so easily. All I can say is good luck; the key you want is HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionLock Screen, but the format is completely opaque, and that's not all: The actual lock images are stored in a folder C:ProgramDataMicrosoftWindowsSystemData{SID}ReadOnlyLockScreen_B, which is normally secured for SYSTEM only.



                Here are the workarounds:



                Requires a ps script and regedit



                I deployed via logon script (bat file)



                Here is the ps script - this makes all the settings for the logged in user and changes the Lock Screen:





                # Change this to the path where you keep the desired background image
                $imagePath = '(Path to Image, include single quotes)'

                $newImagePath = [System.IO.Path]::GetDirectoryName($imagePath) + '' + (New-Guid).Guid + [System.IO.Path]::GetExtension($imagePath)
                Copy-Item $imagePath $newImagePath
                [Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null
                Add-Type -AssemblyName System.Runtime.WindowsRuntime
                $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
                Function Await($WinRtTask, $ResultType) {
                $asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
                $netTask = $asTask.Invoke($null, @($WinRtTask))
                $netTask.Wait(-1) | Out-Null
                $netTask.Result
                }
                Function AwaitAction($WinRtAction) {
                $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0]
                $netTask = $asTask.Invoke($null, @($WinRtAction))
                $netTask.Wait(-1) | Out-Null
                }
                [Windows.Storage.StorageFile,Windows.Storage,ContentType=WindowsRuntime] | Out-Null
                $image = Await ([Windows.Storage.StorageFile]::GetFileFromPathAsync($newImagePath)) ([Windows.Storage.StorageFile])
                AwaitAction ([Windows.System.UserProfile.LockScreen]::SetImageFileAsync($image))
                Remove-Item $newImagePath




                Here is the Regedit to Change Login Screen



                Windows Registry Editor Version 5.00

                [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionAuthenticationLogonUICreativeS-1-0-0]
                "RotatingLockScreenEnabled"=dword:00000000
                "LockImageFlags"=dword:00000000
                "LockScreenOptions"=dword:00000000
                "CreativeId"=""
                "PortraitAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"
                "LandscapeAssetPath"="(Path to Image, include double quotes, remember to use \ in between folders)"




                Here is the logon bat file



                CLS
                @echo off

                regedit /S (insert path to .reg file here)


                IF NOT EXIST (Local Path storing image) (
                mkdir (Local Path storing image)
                xcopy (From path) (Local Path storing image) /R /Y /I
                ) ELSE ECHO Applying Lock Screen

                Powershell.exe -executionpolicy remotesigned -File (Path to ps1 file)
                Exit

                EXIT






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 15 at 14:36









                DeerSpotterDeerSpotter

                314111




                314111






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394537%2fwindows-10-lock-screen-changing-after-sign-out%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Сан-Квентин

                    8-я гвардейская общевойсковая армия

                    Алькесар