Skip to content

Commit

Permalink
fix: settings and store issue
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Sep 29, 2023
1 parent c0e69b9 commit fbd2372
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/playbook/Executables/CONVERTUSERS.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
setlocal EnableDelayedExpansion

:: make passwords never expire
net accounts /maxpwage:unlimited
net accounts /maxpwage:unlimited > nul

for /f "usebackq delims=" %%a in (`PowerShell -NoP -C "(Get-LocalUser | Where {$_.PrincipalSource -eq 'MicrosoftAccount'}).Name"`) do call :CONVERTUSER "%%a"
for /f "usebackq delims=" %%a in (`reg query "HKLM\SOFTWARE\Microsoft\IdentityStore\LogonCache\Name2Sid" ^| findstr /i /c:"Name2Sid"`) do reg delete "%%a" /f > nul 2>&1
Expand Down Expand Up @@ -30,4 +30,4 @@ net user "%~1" "" > nul
wmic UserAccount where name='%~1' set Passwordexpires=true > nul
net user "%~1" /logonpasswordchg:yes > nul

net accounts /lockoutthreshold:10
net accounts /lockoutthreshold:10 > nul
10 changes: 8 additions & 2 deletions src/playbook/Executables/ONED.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
setlocal EnableDelayedExpansion

taskkill /f /im OneDrive*.exe > nul 2>&1
"%windir%\System32\OneDriveSetup.exe" /uninstall
"%windir%\SysWOW64\OneDriveSetup.exe" /uninstall
for %%a in (
"%windir%\System32\OneDriveSetup.exe"
"%windir%\SysWOW64\OneDriveSetup.exe"
) do (
if exist "%%a" (
"%%a" /uninstall
)
)

:: If the "Volatile Environment" key exists, that means it is a proper user. Built in accounts/SIDs don't have this key.
for /f "usebackq tokens=2 delims=\" %%a in (`reg query HKU ^| findstr /r /x /c:"HKEY_USERS\\S-.*" /c:"HKEY_USERS\\AME_UserHive_[^_]*"`) do (
Expand Down
12 changes: 6 additions & 6 deletions src/sxsc/Atlas-NoTelemetry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ updates:
- target_component: Microsoft-Windows-Application-Experience-Core-Inventory-Service.Resources
target_arch: amd64
version: 38655.38527.65535.65535
- target_component: Microsoft-Windows-Application-Experience-Infrastructure
target_arch: amd64
version: 38655.38527.65535.65535
- target_component: Microsoft-Windows-Application-Experience-Infrastructure
target_arch: wow64
version: 38655.38527.65535.65535
# - target_component: Microsoft-Windows-Application-Experience-Infrastructure
# target_arch: amd64
# version: 38655.38527.65535.65535
# - target_component: Microsoft-Windows-Application-Experience-Infrastructure
# target_arch: wow64
# version: 38655.38527.65535.65535
- target_component: Microsoft-Windows-Application-Experience-Inventory-Data-Sources
target_arch: amd64
version: 38655.38527.65535.65535
Expand Down

0 comments on commit fbd2372

Please sign in to comment.