Skip to content

Commit

Permalink
fix(service backup): expand windir properly
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Nov 25, 2023
1 parent a559bcb commit 51d78e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/playbook/Configuration/atlas/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ actions:
- !writeStatus: {status: 'Configuring services'}

# Backup default Windows serivces & drivers
- !run:
exe: "PowerShell"
args: '-NoP -EP Bypass -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

##############################################################################################
Expand Down
6 changes: 3 additions & 3 deletions src/playbook/Configuration/tweaks/scripts/script-backup2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +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"
args: '-NoP -EP Bypass -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

0 comments on commit 51d78e0

Please sign in to comment.