Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

WindowsOSNameHelper- Global

The WindowsOSNameHelper script include provides methods to handle the formatting of Windows OS names.

Use in any server-side discovery scripts where you need to format OS names.

Parent Topic:Server API reference

WindowsOSNameHelper - formatWindowsOSName(String name)

Formats the given Windows OS name.

NameTypeDescription
nameStringThe name to format
TypeDescription
StringThe formatted name

WindowsOSNameHelper - makeOSChoiceValid(String value)

Ensures that the OS choice is valid.

Note: Deprecated. Use OSChoice.reconcile()

NameTypeDescription
valueStringThe value to validate
TypeDescription
void 

WindowsOSNameHelper - osCleanupName(String name)

Cleans up the specified Windows OS name by stripping out incorrect characters, incorrect capitalization, extra spaces, or trailing spaces.

NameTypeDescription
nameStringThe name to clean up.
TypeDescription
StringThe cleaned up name