Skip to main content

Overview

This document sets the 'xPVAL OS Build' custom field value on machines.

Requirements

  • Module: VSAAPI

Process

The process uses API calls in the VSAAPI module to get the OSInfo field from the audit, parse it to extract the build number, and set the appropriate custom field.

Payload Usage

The following command passes the parameters to VSAAPI for use in the API call:

./Update-OsBuildCustomField.ps1 -BaseURL https://vsa.provaltech.com -VsaUserName apiservice -RestApiToken abcd-1234-efgh-5678

Parameters

ParameterAliasRequiredDefaultTypeDescription
BaseURLTrueStringVSA URL
VsaUserNameTrueStringUser with API Access
RestApiTokenTrueStringREST API Token for User

Output

The output location for log, result, and error files is as follows:

./Update-OsBuildCustomField-log.txt