Skip to content

Commit

Permalink
fix: user-choice USB and AutoPlay settings (#1122)
Browse files Browse the repository at this point in the history
### Questions
- [x] Did you test your changes or double-check that they work?
- [x] Did you read and follow the [Atlas Contribution
Guidelines](https://docs.atlasos.net/contributions/)?

### Describe your pull request

Fixes #1104
Improves fix for #1098

Allows default user choice on settings for AutoPlay and USB problems
  • Loading branch information
he3als committed Jun 13, 2024
1 parent cfb2416 commit 753aa49
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/playbook/Configuration/tweaks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ tasks:
# qol\shell #
# -------------------------------------------------------------------------- #
- tweaks\qol\shell\alt-tab-open-windows.yml
- tweaks\qol\shell\config-autorun-autoplay.yml
- tweaks\qol\shell\config-autorun.yml
- tweaks\qol\shell\disable-aero-shake.yml
- tweaks\qol\shell\disable-low-disk-warning.yml
- tweaks\qol\shell\disable-menu-delay.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ actions:
- !registryValue:
path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer'
value: 'SettingsPageVisibility'
data: 'hide:recovery;autoplay;usb;maps;maps-downloadmaps;findmydevice;privacy;privacy-speechtyping;privacy-speech;privacy-feedback;privacy-activityhistory;search-permissions;privacy-location;privacy-general;sync;cortana-windowssearch;mobile-devices;mobile-devices-addphone;workplace;backup'
data: 'hide:recovery;maps;maps-downloadmaps;findmydevice;privacy;privacy-speechtyping;privacy-speech;privacy-feedback;privacy-activityhistory;search-permissions;privacy-location;privacy-general;sync;cortana-windowssearch;mobile-devices;mobile-devices-addphone;workplace;backup'
type: REG_SZ
builds: [ '<22000' ]

# Windows 11
- !registryValue:
path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer'
value: 'SettingsPageVisibility'
data: 'hide:recovery;autoplay;usb;maps;maps-downloadmaps;findmydevice;privacy;privacy-feedback;privacy-activityhistory;search-permissions;privacy-location;privacy-general;sync;cortana-windowssearch;mobile-devices;mobile-devices-addphone;workplace;family-group;deviceusage;home'
data: 'hide:recovery;maps;maps-downloadmaps;findmydevice;privacy;privacy-feedback;privacy-activityhistory;search-permissions;privacy-location;privacy-general;sync;cortana-windowssearch;mobile-devices;mobile-devices-addphone;workplace;family-group;deviceusage;home'
type: REG_SZ
builds: [ '>=22000' ]

This file was deleted.

30 changes: 30 additions & 0 deletions src/playbook/Configuration/tweaks/qol/shell/config-autorun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
title: Disable AutoRun
description: Disables AutoRun, also known as AutoPlay, for optimal security
actions:
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers'
value: 'DisableAutoplay'
data: '1'
type: REG_DWORD
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\CameraAlternate'
value: 'MSTakeNoAction'
data: ''
type: REG_NONE
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlersDefaultSelection\StorageOnArrival'
value: 'MSTakeNoAction'
data: ''
type: REG_NONE
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\CameraAlternate\ShowPicturesOnArrival'
value: 'MSTakeNoAction'
data: ''
type: REG_NONE
- !registryValue:
path: 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\UserChosenExecuteHandlers\StorageOnArrival'
value: 'MSTakeNoAction'
data: ''
type: REG_NONE

Binary file not shown.
Binary file not shown.

0 comments on commit 753aa49

Please sign in to comment.