Skip to content

Commit 9d16855

Browse files
committed
fix(lockscreen): simplify disabling RotatingLockScreen
1 parent 328eb74 commit 9d16855

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/playbook/Configuration/tweaks/qol/appearance/atlas-theme.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ actions:
2626
type: REG_DWORD
2727
- !powerShell:
2828
command: |
29-
.\AtlasModules\initPowerShell.ps1
30-
foreach ($userKey in (Get-RegUserPaths -NoDefault).PsPath) {
31-
Set-ItemProperty `
32-
-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative\$(Split-Path $userKey -Leaf)" `
33-
-Name 'RotatingLockScreenEnabled' -Type DWORD -Value 0 -Force
29+
foreach ($userKey in (Get-ChildItem "HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Creative").PsPath) {
30+
Set-ItemProperty -Path $userKey -Name 'RotatingLockScreenEnabled' -Type DWORD -Value 0 -Force
3431
}
3532
exeDir: true
3633
wait: true

0 commit comments

Comments
 (0)