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,
[SOLVED] OS deployment + post-install script
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
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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
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?
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?
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
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.
We added this recently.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
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.
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.
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
You can change it by:
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?
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
When it doesn't work, is Wapt installed?
It still doesn't work, and WAPT is properly installed.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
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Perhaps an update is needed at the beginning
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" 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
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
