Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Atlas-OS/Atlas into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 20, 2023
2 parents 4a1e2f4 + 37f447a commit 5f9dbcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions src/playbook/Configuration/tweaks/qol/config-powershell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,8 @@ actions:
# Set .ps1 file types to open with PowerShell by default
# Batch scripts are not restricted and this measure can easily be bypassed by calling PowerShell within a batch script
- !cmd: {command: 'ftype Microsoft.PowerShellScript.1="%windir%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -EP Unrestricted -File "%1" %*'}
- !registryValue:
path: 'HKCR\Applications\powershell.exe\shell\open\command'
value: ''
data: '"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -EP Unrestricted -File "%1" %*'
type: REG_SZ
- !registryValue:
path: 'HKCR\ps1_auto_file\shell\open\command'
value: ''
data: '"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -EP Unrestricted -File "%1" %*'
type: REG_SZ
- !cmd: {command: 'reg add "HKCR\Applications\powershell.exe\shell\open\command" /v "" /t REG_SZ /d "\"%windir%\System32\WindowsPowerShell\v1.0\powershell.exe\" -NoLogo -EP Unrestricted -File \"%1\" %*"'}
- !cmd: {command: 'reg add "HKCR\ps1_auto_file\shell\open\command" /v "" /t REG_SZ /d "\"%windir%\System32\WindowsPowerShell\v1.0\powershell.exe\" -NoLogo -EP Unrestricted -File \"%1\" %*"'}
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ps1\OpenWithList'
value: 'a'
Expand All @@ -41,10 +33,6 @@ actions:

# Set PowerShell execution policy to Unrestricted
# Batch scripts are not restricted and this measure can easily be bypassed by calling PowerShell within a batch script
- !registryValue:
path: 'HKCU\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell'
value: 'ExecutionPolicy'
operation: delete
- !registryValue:
path: 'HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell'
value: 'ExecutionPolicy'
Expand Down
2 changes: 1 addition & 1 deletion src/playbook/Executables/FILEASSOC.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ exit /b

:7ZIPUSER
(
reg add "HKCU\Software\7-Zip\Options" /v "ContextMenu" /t REG_DWORD /d "1073742374" /f
reg add "HKU\%~1\Software\7-Zip\Options" /v "ContextMenu" /t REG_DWORD /d "1073742374" /f
reg add "HKU\%~1\Software\Classes\.001" /ve /t REG_SZ /d "7-Zip.001" /f
reg add "HKU\%~1\Software\Classes\.7z" /ve /t REG_SZ /d "7-Zip.7z" /f
reg add "HKU\%~1\Software\Classes\.apfs" /ve /t REG_SZ /d "7-Zip.apfs" /f
Expand Down

0 comments on commit 5f9dbcc

Please sign in to comment.