Skip to content

Commit

Permalink
fix: move to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyueta committed Oct 21, 2023
1 parent 5a2f2b2 commit cea0809
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/playbook/Configuration/atlas/start.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ actions:
# Do not change the line position of this, otherwise things will break
# - !run: {exe: 'cmd.exe', args: '/c start "AME Wizard Live Log" PowerShell -NoP -C "gc -Wait Logs\TIOutput.txt -EA SilentlyContinue | Write-Output; pause"', baseDir: true, wait: false}

# Update Microsoft Store applications
- !run:
exe: 'NSudoLC.exe'
args: '-U:E -UseCurrentConsole -Wait powershell.exe -NoP -C "Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod"'

# Prevent annoying notifications during deployment
- !registryValue: {path: 'HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance', value: 'Enabled', type: REG_DWORD, data: '0'}

Expand Down Expand Up @@ -43,12 +48,6 @@ actions:
- !run: {exe: 'DISM.exe', args: '/Online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2" /NoRestart', weight: 30}
- !run: {exe: 'DISM.exe', args: '/Online /Disable-Feature /FeatureName:"MicrosoftWindowsPowerShellV2Root" /NoRestart', weight: 30}

# Update Microsoft Store applications
- !writeStatus: {status: 'Updating dependencies'}
- !run:
exe: 'NSudoLC.exe'
args: '-U:E -UseCurrentConsole -Wait powershell.exe -NoP -C "Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod -MethodName UpdateScanMethod"'

- !writeStatus: {status: 'Installing software'}
- !run:
exe: 'powershell.exe'
Expand Down

0 comments on commit cea0809

Please sign in to comment.