Page 1 of 1

[SOLVED] PSinfo error

Published: January 7, 2023 - 4:01 PM
by adgm11
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

Re: PSinfo error

Published: January 9, 2023 - 12:20 PM
by dcardon
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

Re: [SOLVED] PSinfo error

Published: January 20, 2023 - 10:43 AM
by adgm11
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.

Re: [SOLVED] PSinfo error

Published: January 20, 2023 - 11:13 AM
by adgm11
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.