Page 1 of 1
Software update on a few workstations
Published: May 3, 2024 - 11:03
by yann83
Hello,
on my network I have, let's say, 100 workstations spread across different OUs, each with a specific software version.
Is it possible to update these workstations solely with a software update, perhaps through a dynamic group or a request?
Re: Software update on a few workstations
Published: May 3, 2024 - 3:44 PM
by dcardon
Hello Yann83,
WAPT version, edition, server OS, client OS, etc. See forum rules.
If the goal is to qualify a new version of software on a subset of workstations before deploying it across the entire fleet, the best approach is to use maturity levels.
Alternatively, you can create a package with dynamic installation
if my_condition:
WAPT.install('my_package')
That said, the explanation of the need is unfortunately a bit too vague to give a clear answer. And regarding your other topic, it's not necessary to have a package as a dependency on a machine package for the latter to be installed (see pseudo-code above)
Sincerely,
Denis
Re: Software update on a few workstations
Published: May 3, 2024 - 4:01 PM
by yann83
This is a WAPT Enterprise 2.5.4 server (version 15342)
on a CentOS 7 server with Windows 10 22H2 Pro clients.
I can indeed add a condition to the code.
The idea is to create a group of workstations with a specific software and version, as they are scattered across Active Directory.
I know I can use a query for this.
Because if I add the condition to the code and deploy to the entire network, won't I get failures on those that don't meet the correct condition?
Re: Software update on a few workstations
Published: May 3, 2024 - 4:05 PM
by dcardon
Hello Yann83,
the conditional package can be installed on the entire network. As long as it doesn't return an error, there won't be any problems, and you can leave it on the machines and add other conditions/packages later.
The only issue with this method is that the download will occur when the WAPT.install() function is launched. Therefore, if there are 802.1x, Wi-Fi, VPN, etc., connections in the loop when the machine shuts down, the WAPT agent may not be able to download the package.
Regards,
Denis
Re: Software update on a few workstations
Published: May 6, 2024 - 7:39 AM
by yann83
By conditional package, are you suggesting that I code the package like this:
Code: Select all
import os
def install():
# Declaring local variables
check_file = 'C:/Program Files (x86)/monlogiciel/monlogiciel.exe'
if os.path.exists(check_file):
# Installing the software
print("Installing: monlogiciel.exe")
install_exe_if_needed('Setup_monlogiciel.exe',
silentflags='/VERYSILENT /LOG=C:\\LOG\\WAPT_monlogiciel.log',
key='4F68CCF4-7418-49A0-A32F-315087D889A7_is1',
min_version='1.2.6',
killbefore=['WINWORD.exe']
)
else:
print('logiciel non présent.')
exit(1)