Recent content by dansutton24

  1. D

    SetupComplete.cmd not executing

    The script still needs the “--accept-source-agreements” to run without user interaction hence you getting the prompt for yes or no. I believe that winget may not be registered yet when the script is trying to run. If you check out garlin above comment - there is a thread and guide on how to...
  2. D

    SetupComplete.cmd not executing

    Just to add to this: - 7zip.7zip.exe needs changed to 7zip.7zip - winget install --id $app --accept-package-agreements --silent needs changed to winget install --id $app --accept-source-agreements --accept-package-agreements --silent
  3. D

    SetupComplete.cmd not executing

    Hi N7Commander you should just be able to add the script to post setup user (after-logon) and NTLite does everything else. It’ll create the relevant registry entry to execute this after logon. You shouldn’t need to add the set-execution policy to this, all scripts are ran with this already I’ve...
  4. D

    SetupComplete.cmd not executing

    Hi nuhi please see the attached. The only other thing that is copied is PSTools which had the scripts added for when I was attempting to run both as commands so it looked for the file in C:/Windows/Setup/PSTools Just to confirm my working process: PSTools folder is copied to the machine using...
  5. D

    SetupComplete.cmd not executing

    Finally managed to test this and seemed to work fine this time round. The post setup user deployed successfully. I have ran in to an issue when trying to run 2 commands though. Initially, I added my post setup machine with the PSTools directory. Added my Poweshell script and then a second...
  6. D

    SetupComplete.cmd not executing

    Thanks for the info garlin. Appreciate it!
  7. D

    SetupComplete.cmd not executing

    Hi nuhi - thanks for the updates here. I’ll be testing again next week so will come back if I have any further issues. This was just using a local account so don’t think it’s related to the MS Account. This wasn’t signed in to an MS Account at any point. Wi-Fi was also just connected at OOBE...
  8. D

    SetupComplete.cmd not executing

    Thanks for the response nuhi. I have a folder added to the machine section which adds PSTools to the machine and then 2 scripts which are added to the user section which I would expect to run after the machine logs in. The PSTools folder is added without issue as expected but the scripts don’t...
  9. D

    SetupComplete.cmd not executing

    Hi, thanks for the response. I’ve attempted this but don’t have that reg key showing when I reload the image to try and edit it. I’ll wait for the fixes that garlin has mentioned - hopefully sorts it out!
  10. D

    SetupComplete.cmd not executing

    Hi, I’m fairly new to using NTLite and am currently working on an image that executes 2 scripts after setup. 1 needs internet to run. I am using a Windows 11 Enterprise iso. The issue I am having is once the setup completes, the post setup commands don’t execute - I am guessing this is as...
Back
Top