Jason Roberson Posted March 22, 2023 Share Posted March 22, 2023 Does anyone have information on when RunSystemScripts.ps1 and RunBuildScripts.ps1 are triggered? looks to me that the runMode would have to be 2 or => 5 for the SystemScripts When is this condition met? Link to comment
0 Rob Zylowski Posted March 22, 2023 Share Posted March 22, 2023 The runsystemscripts will be run if its a master image booting or if its a VDA booting if you create the appropriate folders and add scripts to them. FOr the system one it looks for c:\Windows\Setup\scripts\system_runevery or c:\Windows\Setup\scripts\system_runonce If there are cmd files in there it will run them. The idea here was that you could create those folders in your os layer. Then in any app layer you could add whatever cmd files you wanted to run at boot and they would be executed. The user script will only run if you add a gpo to run it at user logon. Again it will nto run on packaging machines or when the gold image is being imported. Let me know if that is not explained well enough Im sure i have documentation somewhere from when i created those. It was a very long time ago. 1 Link to comment
0 Jason Roberson Posted March 23, 2023 Author Share Posted March 23, 2023 I found my problem the kms script only looks for the system_runevery folder and I was trying to only use the system_runonce. I will create the system_runevery to trigger this. For the RunBuildScripts when is the run mode eq 1? Thank you for your help with this. Link to comment
Question
Jason Roberson
Does anyone have information on when RunSystemScripts.ps1 and RunBuildScripts.ps1 are triggered? looks to me that the runMode would have to be 2 or => 5 for the SystemScripts When is this condition met?
Link to comment
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now