Skip to content

Commit

Permalink
fix(variables): put variables in 'path' property
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Sep 20, 2023
1 parent 47b710f commit a185fd4
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 18 deletions.
18 changes: 11 additions & 7 deletions src/playbook/Configuration/atlas/components.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ actions:
# Windows Defender
- !writeStatus: {status: 'Disabling Windows Defender', option: 'defender-disable'}
- !run:
exe: '%windir%\AtlasDesktop\7. Security\Defender\Toggle Defender.cmd'
exe: 'Toggle Defender.cmd'
path: '%windir%\AtlasDesktop\7. Security\Defender'
args: '-Disable'
wait: true
option: 'defender-disable'
# Remove Security Center startup item
- !registryValue: {path: 'HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run', value: 'SecurityHealth', operation: delete}

# Causes slow app loading issues, and sends data to Microsoft
# Disable Smart App Control
- !registryValue:
path: 'HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy'
value: 'VerifiedAndReputablePolicyState'
Expand All @@ -21,9 +24,8 @@ actions:

# Microsoft Edge
- !writeStatus: {status: 'Removing Microsoft Edge', option: 'uninstall-edge'}
- !run:
exe: 'NSudoLC.exe'
args: '-U:E -UseCurrentConsole -Wait powershell.exe -NoP -EP Unrestricted -File "$env:windir\AtlasDesktop\1. Software\Remove Edge.ps1" -AMEWizard'
- !cmd:
command: 'NSudoLC.exe -U:E -UseCurrentConsole -Wait powershell.exe -NoP -EP Unrestricted -File "%windir%\AtlasDesktop\1. Software\Remove Edge.ps1" -AMEWizard'
wait: true
exeDir: true
option: 'uninstall-edge'
Expand All @@ -40,12 +42,14 @@ actions:
- !writeStatus: {status: 'Removing components'}
# NoTelemetry Package
- !run:
exe: '%windir%\AtlasModules\Scripts\online-sxs.cmd'
exe: 'online-sxs.cmd'
path: '%windir%\AtlasModules\Scripts'
args: '"%windir%\AtlasModules\Packages\Z-Atlas-NoTelemetry-Package31bf3856ad364e35amd643.0.0.0.cab"'
wait: true
# Misc Package
- !run:
exe: '%windir%\AtlasModules\Scripts\online-sxs.cmd'
exe: 'online-sxs.cmd'
path: '%windir%\AtlasModules\Scripts'
args: '"%windir%\AtlasModules\Packages\Z-Atlas-Misc-Remover-Package31bf3856ad364e35amd643.0.0.0.cab"'
wait: true

Expand All @@ -62,4 +66,4 @@ actions:
# Converts all Microsoft user accounts to local accounts
- !run:
exeDir: true
exe: 'CONVERTUSERS.cmd'
exe: 'CONVERTUSERS.cmd'
11 changes: 6 additions & 5 deletions src/playbook/Configuration/atlas/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ actions:
- !writeStatus: {status: 'Configuring services'}

# Backup default Windows serivces & drivers
- !run:
exe: 'powershell.exe'
args: '-NoP -EP Unrestricted -File "BACKUP.ps1" "$env:windir\AtlasModules\Other\atlasServices.reg"'
- !cmd:
command: 'powershell -NoP -EP Unrestricted -File "BACKUP.ps1" "%windir%\AtlasModules\Other\atlasServices.reg"'
wait: true
exeDir: true

# ------------------------ Services ------------------------

- !run:
exe: '%windir%\AtlasDesktop\3. Configuration\Bluetooth\Disable Bluetooth.cmd'
exe: 'Disable Bluetooth.cmd'
path: '%windir%\AtlasDesktop\3. Configuration\Bluetooth'
args: '/silent'
option: 'disable-bluetooth'
- !run:
exe: '%windir%\AtlasDesktop\3. Configuration\Printing\Disable Printing (default).cmd'
exe: 'Disable Printing (default).cmd'
path: '%windir%\AtlasDesktop\3. Configuration\Printing'
args: '/silent'

- !service: {name: 'diagnosticshub.standardcollector.service', operation: change, startup: 4}
Expand Down
1 change: 1 addition & 0 deletions src/playbook/Configuration/atlas/start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -419,3 +419,4 @@ actions:
path: '%windir%\SoftwareDistribution'
weight: 20
ignoreErrors: true

5 changes: 2 additions & 3 deletions src/playbook/Configuration/tweaks/scripts/script-backup2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ title: Backup Atlas Services and Drivers
description: Backs up default Atlas services and drivers, after all the tweaks are finished
privilege: TrustedInstaller
actions:
- !run:
exe: 'powershell.exe'
args: '-NoP -EP Unrestricted -File "BACKUP.ps1" "$env:windir\AtlasModules\Other\winServices.reg"'
- !cmd:
command: 'powershell -NoP -EP Unrestricted -File "BACKUP.ps1" "%windir%\AtlasModules\Other\winServices.reg"'
wait: true
exeDir: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ description: Disables mitigations in Windows dependant on the user's options
privilege: TrustedInstaller
actions:
- !run:
exe: '%windir%\AtlasDesktop\7. Security\Mitigations\Disable All Mitigations.cmd'
exe: 'Disable All Mitigations.cmd'
path: '%windir%\AtlasDesktop\7. Security\Mitigations'
args: '/silent'
wait: true
option: 'mitigations-disable'
6 changes: 4 additions & 2 deletions src/playbook/Configuration/tweaks/scripts/script-power.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ privilege: TrustedInstaller
actions:
# Disable Power Saving features
- !run:
exe: '%windir%\AtlasDesktop\3. Configuration\Power\Power Saving\Disable Power Saving.cmd'
exe: 'Disable Power Saving.cmd'
path: '%windir%\AtlasDesktop\3. Configuration\Power\Power Saving'
args: '/setup'
weight: 20
option: 'disable-power-saving'

# Disable Hibernation & Fast Startup
# Disabling makes NTFS accessible outside of Windows
- !run:
exe: '%windir%\AtlasDesktop\3. Configuration\Power\Hibernation\Disable Hibernation (default).cmd'
exe: 'Disable Hibernation (default).cmd'
path: '%windir%\AtlasDesktop\3. Configuration\Power\Hibernation'
args: '/setup'
weight: 20

0 comments on commit a185fd4

Please sign in to comment.