diff --git a/Autounattend/Custom-Scripts.txt b/Autounattend/Custom-Scripts.txt index 281860f..ab844b8 100644 --- a/Autounattend/Custom-Scripts.txt +++ b/Autounattend/Custom-Scripts.txt @@ -5,9 +5,13 @@ curl -L https://gitea.tcse.us/tricounty/tcse-deploy/archive/main.zip --output C: # 2. PS1 Expand-Archive -Path 'C:\Scripts.zip' -DestinationPath 'C:\Scripts' +timeout /t 15 Remove-Item -Path 'C:\Scripts.zip' + +# 3. PS1 Move-Item -Path 'C:\Scripts\tcse-deploy\*' -Destination 'C:\Scripts' +timeout /t 15 Remove-Item -Path 'C:\Scripts\tcse-deploy\' -# 3. CMD +# 4. CMD C:\Scripts\TCSE-Computer-Deploy.bat \ No newline at end of file diff --git a/Autounattend/Desktop/autounattend.xml b/Autounattend/Desktop/autounattend.xml index 3c93f3c..e5b640a 100644 --- a/Autounattend/Desktop/autounattend.xml +++ b/Autounattend/Desktop/autounattend.xml @@ -1,6 +1,6 @@ - + @@ -486,11 +486,15 @@ curl -L https://gitea.tcse.us/tricounty/tcse-deploy/archive/main.zip --output C: Expand-Archive -Path 'C:\Scripts.zip' -DestinationPath 'C:\Scripts' +timeout /t 15 Remove-Item -Path 'C:\Scripts.zip' + + Move-Item -Path 'C:\Scripts\tcse-deploy\*' -Destination 'C:\Scripts' +timeout /t 15 Remove-Item -Path 'C:\Scripts\tcse-deploy\' - + C:\Scripts\TCSE-Computer-Deploy.bat @@ -665,7 +669,10 @@ $scripts = @( Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\unattend-02.ps1' -Raw | Invoke-Expression; }; { - C:\Windows\Setup\Scripts\unattend-03.cmd; + Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\unattend-03.ps1' -Raw | Invoke-Expression; + }; + { + C:\Windows\Setup\Scripts\unattend-04.cmd; }; ); diff --git a/Autounattend/Laptop/autounattend.xml b/Autounattend/Laptop/autounattend.xml index 5b37392..a0309fb 100644 --- a/Autounattend/Laptop/autounattend.xml +++ b/Autounattend/Laptop/autounattend.xml @@ -1,6 +1,6 @@ - + @@ -512,11 +512,15 @@ curl -L https://gitea.tcse.us/tricounty/tcse-deploy/archive/main.zip --output C: Expand-Archive -Path 'C:\Scripts.zip' -DestinationPath 'C:\Scripts' +timeout /t 15 Remove-Item -Path 'C:\Scripts.zip' + + Move-Item -Path 'C:\Scripts\tcse-deploy\*' -Destination 'C:\Scripts' +timeout /t 15 Remove-Item -Path 'C:\Scripts\tcse-deploy\' - + C:\Scripts\TCSE-Computer-Deploy.bat @@ -698,7 +702,10 @@ $scripts = @( Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\unattend-02.ps1' -Raw | Invoke-Expression; }; { - C:\Windows\Setup\Scripts\unattend-03.cmd; + Get-Content -LiteralPath 'C:\Windows\Setup\Scripts\unattend-03.ps1' -Raw | Invoke-Expression; + }; + { + C:\Windows\Setup\Scripts\unattend-04.cmd; }; );