[SOLVED] WADS - Install WAPT agent - 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
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 18, 2022 - 5:47 PM

Hello,

when deploying WADS on a physical PC, the WAPT agent fails to install, even though it's checked in the deployment configuration, and it doesn't execute the post-installation script.
However, I have no problem when I perform this operation with a VM on an ESX host...
it doesn't seem to be a driver issue, as no drivers are missing in Device Manager...

I'm having trouble understanding this...
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 18, 2022 - 10:05 PM

It's strange that it works in a VM but not on a real PC.

The concept of the post-install script is very simple; it's based on this:
https://docs.microsoft.com/en-us/window ... windows-11.

Furthermore, the network doesn't need to be up for Wapt to install since the Windows image already contains waptagent.exe and waptsetup.exe.

You can verify that your script is indeed located in c:\windows\setup\scripts\Setupcomplete.cmd on the deployed machine at the end of the installation. You can even run it yourself to see what's wrong.
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

May 19, 2022 - 08:58

Thanks for the link, Simon, this MS article is super interesting!
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 19, 2022 - 09:20

sfonteneau wrote: May 18, 2022 - 10:05 PM It's strange that it works in a VM but not on a real PC

. The concept of the post-install script is very simple; it's based on this:
https://docs.microsoft.com/en-us/window ... windows-11

Furthermore, the network doesn't need to be up for Wapt to install since the Windows image already has waptagent.exe and waptsetup.exe.

You can verify that your script is indeed located in c:\windows\setup\scripts\Setupcomplete.cmd on the deployed machine at the end of the installation. You can even run it yourself to see what's wrong.
Ah yes, I also used that method with my sysprep!
I'll take a look and keep you posted.
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 19, 2022 - 1:52 PM

So, no problem when manually running the script after deployment...
I'll try again with a standard response file imported from the WAPT templates
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 19, 2022 - 3:00 PM

Yes, that's right.
It was coming from my answer file...
But then why does my answer file work for a VM and not a desktop computer? :shock:
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 19, 2022 - 3:20 PM

According to Microsoft:

%Windir%\Setup\Scripts\SetupComplete.cmd: this script runs with local system permissions and starts immediately after the user sees the desktop.

So apparently, an autologon is needed...
But that still doesn't explain the difference between my VM and a physical machine....
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 20, 2022 - 09:31

Here, I don't need the session to open for the script to work, so that's strange.

Could you send your answer file so we can see what the problem is?

I admit I don't understand the difference between a VM and a physical PC in the tests.
smandel
Messages: 111
Registration: May 5, 2022 - 11:30

May 20, 2022 - 10:30

Hi Simon,

so I think I've figured out why...
In my answer file, I removed the ProductKey provided by the template and enabled automatic activation.
As a result, on a physical PC, it activates the UEFI OEM license, but on my VM, Windows doesn't activate because there's no valid license.
So, from what I understand, SetupComplete only runs on an unactivated Windows 10...
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 20, 2022 - 10:51

Hmm, during our tests here our Windows systems weren't activated and it worked
Locked