It seems that I'm having issues with the execution of the SetupComplete.cmd. It seems to only run the lines up to the portion on installing Chocolatey. Is there a way to trouble shoot why it's not running? It used to work with the previous version of NTLite. I had to reinstall, and since then, it seems the second half of my script is not working. I have a second copy in a separate directory that i can run manually once logged in, and everythign works fine (except the winget, which is not a deal breaker)
TIA,
Carlos.
Code:
echo =====> Starting Customizations
echo =====> Installing Control
msiexec /i "%ALLUSERSPROFILE%\RMM\Control.ClientSetup.msi" /qn
echo =====> Configuring Power Schemes
powercfg -restoredefaultschemes
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
powercfg -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
powercfg /Change standby-timeout-ac 0
echo =====> Importing wireless profile
netsh wlan add profile filename="%ALLUSERSPROFILE%\RMM\bench.xml"
echo =====> Installing RMM Tools
"%ALLUSERSPROFILE%\RMM\Setup.exe" --console --allow-force-reboot
echo =====> Setting account Options
net accounts /maxpwage:unlimited
echo =====> Installing Chocolatey Modules
powershell -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
echo =====> Installing base Apps
choco install -y notepadplusplus adobereader googlechrome 7zip.install microsoft-teams-new-bootstrapper
echo =====> Installing Office (Will take some time)
choco install -y --force office365business --params "'/configpath:C:\ProgramData\RMM\Office-Install-BP.xml'"
echo =====> Install Windows Store Tools
winget update --accept-source-agreements --accept-package-agreements
winget install --accept-source-agreements --accept-package-agreements "Windows Scan"
winget install --accept-source-agreements --accept-package-agreements "HEIF Image Extensions"
echo =====> Done - Computer should reboot
TIA,
Carlos.