[SOLVED] OS deployment + post-install script

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Eyji
Messages: 13
Registration: February 15, 2022 - 09:32

August 10, 2022 - 12:25

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,
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 10, 2022 - 4:11 PM

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?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 10, 2022 - 4:12 PM

Regarding the administrator account:

https://docs.microsoft.com/en-us/previo ... dfrom=MSDN
Eyji
Messages: 13
Registration: February 15, 2022 - 09:32

August 10, 2022 - 4:28 PM

Hello,
Yes I changed the key, I put a Windows GVLK installation key for KMS clients.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 10, 2022 - 5:03 PM

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.
Eyji
Messages: 13
Registration: February 15, 2022 - 09:32

August 11, 2022 - 10:33

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.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 17, 2022 - 10:19

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?
Eyji
Messages: 13
Registration: February 15, 2022 - 09:32

September 2, 2022 - 2:04 PM

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.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

September 2, 2022 - 2:19 PM

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
Locked