Page 1 of 2
[SOLVED] OS deployment + post-install script
Published: August 10, 2022 - 12:25
by Eyji
Hello,
Our OS deployment via WAPT works perfectly except for the post-installation script.
We have a GPO that creates a local administrator account, but when the image is finished, this account is disabled, so the post-installation script doesn't run.
If I re-enable the local administrator account and manually run the script in C:\Windows\Setup\script\SetupComplete, all the repositories install.
Is there a solution to prevent the created local account from being disabled?
Thank you in advance for your help.
Best regards,
Re: OS deployment + post-install script
Published: August 10, 2022 - 4:11 PM
by sfonteneau
We noticed something about the post-install script.
A KMS key must be included in the XML file for it to run, so leave the original key (if it's an OEM key, it won't launch via Windows).
Did you modify the key?
Re: OS deployment + post-install script
Published: August 10, 2022 - 4:12 PM
by sfonteneau
Re: OS deployment + post-install script
Published: August 10, 2022 - 4:28 PM
by Eyji
Hello,
Yes I changed the key, I put a Windows GVLK installation key for KMS clients.
Re: OS deployment + post-install script
Published: August 10, 2022 - 5:03 PM
by sfonteneau
Try leaving the default key (W269N-WFGWX-YVC9B-4J6C9-T83GX) and adding your key to the product key column in WADs.
We added this recently.
Re: OS deployment + post-install script
Published: August 10, 2022 - 5:09 PM
by sfonteneau
Re: OS deployment + post-install script
Published: August 11, 2022 - 10:33
by Eyji
The problem with the disabled account is resolved using
https://docs.microsoft.com/en-us/previo ... dfrom=MSDN.
However, I left the default key (W269N-WFGWX-YVC9B-4J6C9-T83GX), and the repositories I added to my post-installation script still won't install.
Could I have missed a command in my post-installation script?
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-trend-micro-agent-x64
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-adobereader
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-7zip
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-microsoft-edge
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-chrome
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-firefox-esr
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-vlc
And another problem: I cannot deploy operating systems on laptops connected to a docking station.
Re: OS deployment + post-install script
Published: August 17, 2022 - 10:19
by sfonteneau
You can change it by:
Code: Select all
net stop waptservice
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-trend-micro-agent-x64
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-adobereader
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-7zip
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-microsoft-edge
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-chrome
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-firefox-esr
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-vlc
net start waptservice
The service is disabled between installations to avoid conflicts between the service installation and command-line launches.
When it doesn't work, is Wapt installed?
Re: OS deployment + post-install script
Published: September 2, 2022 - 2:04 PM
by Eyji
net stop waptservice
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-trend-micro-agent-x64
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-adobereader
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-7zip
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-microsoft-edge
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-chrome
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-firefox-esr
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-vlc
net start waptservice
It still doesn't work, and WAPT is properly installed.
Re: OS deployment + post-install script
Published: September 2, 2022 - 2:19 PM
by sfonteneau
Perhaps an update is needed at the beginning
Code: Select all
net stop waptservice
"C:\Program Files (x86)\wapt\wapt-get.exe" update -f
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-trend-micro-agent-x64
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-adobereader
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-7zip
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-microsoft-edge
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-chrome
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-firefox-esr
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-vlc
net start waptservice
If you have certificate-based authentication, you may need to register beforehand for the update to go through.
Code: Select all
net stop waptservice
"C:\Program Files (x86)\wapt\wapt-get.exe" register -f
"C:\Program Files (x86)\wapt\wapt-get.exe" update -f
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-trend-micro-agent-x64
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-adobereader
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-7zip
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-microsoft-edge
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-chrome
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-firefox-esr
"C:\Program Files (x86)\wapt\wapt-get.exe" install wapt-vlc
net start waptservice