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...
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...
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...
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...
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...
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...
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!
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.