[SOLVED] PSinfo error

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
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
Locked
adgm11
Messages: 45
Registration: Apr 12, 2022 - 07:00

January 7, 2023 - 4:01 PM

Good morning
I am trying to deploy a package that allows me to know the Windows version on my machines by creating a common text file.
The package is as follows

Code: Select all

def install():
    run(r'psinfo -accepteula "kernel build number" >> u:\winver.txt')
but I get this error in Wapt
returned non-zero exit status 1.
Output: Access denied.

Note that if I select a local drive like C:, the file is created correctly. It only fails when I choose a shared drive like U:

Any ideas? Thanks in advance
User avatar
dcardon
WAPT Expert
Messages: 1929
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

January 9, 2023 - 12:20

Hello,

as mentioned in the documentation, the installation is done using a LOCAL SYSTEM account, which is unaware of the user's U: drive.

The build version should normally be reflected in the WAPT inventory.

If you have other information to report, you can do so using audits (in the Enterprise version).

In any case, using `share` in asset management scripts is a very bad idea. There are far too many situations where it can cause problems.

Sincerely,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
adgm11
Messages: 45
Registration: Apr 12, 2022 - 07:00

January 20, 2023 - 10:43

Thank you for the clarification.
Indeed, the Windows version appears in the WAPT console under the Hardware Inventory tab, then Win32_Volume > Win32_Operati,gSystem>Version.

Is there a way to retrieve this information for each workstation by grouping it into a file so I know which workstations I need to update?

If my shared drive U: is not detectable by WAPT, is there a way to send my text file to the WAPT server?

I am on the Discovery version, so I don't have access to the auditing feature you mentioned.
Thank you.
adgm11
Messages: 45
Registration: Apr 12, 2022 - 07:00

January 20, 2023 - 11:13

I'm answering my own question; I found the information I was looking for and an easy way to access it.
In fact, in the "Hardware Inventory" tab, you need to type "version" in the search bar.
In the "Host_Info" > "Windows_Product_Info" submenu, select the "Windows_Version" or "Windows_Version_PrettyName" entry and then click the "Add Item to List" button.
This adds a column to the machine list and shows the Windows version.
Locked