Hello,
I would like to automatically assign a computer to a group as soon as it is added to WAPT.
Is it possible to do this with a command line on the client machine?
Or from the server with a script that runs continuously?
Thank you.
Add the computers to a group during registration
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 :
No method to (basically) create the host machine package
But another method amounts to much the same thing:
Following the launch of waptdeploy, you can add a:
The other solution (which amounts to the same thing) is to add a line in the [Run] section of the file C:\wapt\waptsetup\waptsetup.iss
Don't forget to also add groupedebase to [CustomMessages]:
Then restart the creation of a Waptagent
The problem with these two commands is that they are launched with the account that launched the waptagent (or the waptdeploy)
In itself, nothing serious, but if the installation is performed at computer startup or shutdown, it can be problematic if the `preshutdowntimeout` setting hasn't been changed on the computer. Otherwise, the installation will stop after 15 minutes
Simon
But another method amounts to much the same thing:
Following the launch of waptdeploy, you can add a:
Code: Select all
wapt-get install groupdebaseCode: Select all
Filename: "{app}\wapt-get.exe"; Parameters: "--direct apt-get install groupedebase"; Flags: runhidden postinstall; StatusMsg: StatusMsg: {cm:groupedebase}; Description: "{cm:groupedebase}"
Code: Select all
[CustomMessages]
;English translations here
en.StartAfterSetup=Install base groupe
;French translations here
fr.StartAfterSetup=Install base groupe
;German translation here
de.StartAfterSetup=Install base groupe
The problem with these two commands is that they are launched with the account that launched the waptagent (or the waptdeploy)
In itself, nothing serious, but if the installation is performed at computer startup or shutdown, it can be problematic if the `preshutdowntimeout` setting hasn't been changed on the computer. Otherwise, the installation will stop after 15 minutes
Simon
-
Daniel Traversa
- Messages: 16
- Registration: February 21, 2017 - 2:26 PM
I would also like to do something similar:
The customer settles in, the station takes the group and proceeds with the installations.
I followed this procedure to register the position in the group and perform an upgrade, but without success.
In the waptsetup.iss file:
Can you help me?
THANKS.
The customer settles in, the station takes the group and proceeds with the installations.
I followed this procedure to register the position in the group and perform an upgrade, but without success.
In the waptsetup.iss file:
Code: Select all
[Run]
...
Filename: "{app}\wapt-get.exe"; Parameters: "--direct apt-get install 08307_coudon-groupe-commun"; Flags: runhidden postinstall; StatusMsg: StatusMsg: {cm:groupedebase}; Description: "{cm:groupedebase}"
Filename: "{app}\wapt-get.exe"; Parameters: "--direct apt-get upgrade"; Flags: runhidden postinstall; StatusMsg: StatusMsg: {cm:upgrade}; Description: "{cm:upgrade}"
[CustomMessages]
...
en.groupedebase=Install base groupe
en.upgrade=Install
fr.groupedebase=Install base groupe
fr.upgrade=Install
de.groupedebase=Install base groupe
de.upgrade=Install
THANKS.
-
Daniel Traversa
- Messages: 16
- Registration: February 21, 2017 - 2:26 PM
Isn't there an error in the order?
when I type on the post:
I have :
THANKS
when I type on the post:
Code: Select all
C:\wapt>wapt-get.exe --direct apt-get install 08307_coudon-groupe-communCode: Select all
Unknown action apt-get-
Daniel Traversa
- Messages: 16
- Registration: February 21, 2017 - 2:26 PM
if I use the group registration command:
The registration process on the workstation goes smoothly, then the packages are downloaded and installed.
On the other hand, nothing happens on the console: the workstation remains without a group, nothing is visible in the ongoing tasks and in General there is no monitoring of the installation.
Obviously, if we launch an update of the available packages, it will update itself.
Is this normal operation? If so, it's not very practical for ensuring the installation is working correctly after restoring a workstation.
Code: Select all
wapt-get install 08307_coudon-groupe-communOn the other hand, nothing happens on the console: the workstation remains without a group, nothing is visible in the ongoing tasks and in General there is no monitoring of the installation.
Obviously, if we launch an update of the available packages, it will update itself.
Is this normal operation? If so, it's not very practical for ensuring the installation is working correctly after restoring a workstation.
