WindowsOSNameHelper - Global

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:1分
  • 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.

    WindowsOSNameHelper - formatWindowsOSName(String name)

    Formats the given Windows OS name.

    表 : 1. Parameters
    Name Type Description
    name String The name to format
    表 : 2. Returns
    Type Description
    String The formatted name

    WindowsOSNameHelper - makeOSChoiceValid(String value)

    Ensures that the OS choice is valid.

    注:
    Deprecated. Use OSChoice.reconcile()
    表 : 3. Parameters
    Name Type Description
    value String The value to validate
    表 : 4. Returns
    Type Description
    void

    WindowsOSNameHelper - osCleanupName(String name)

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

    表 : 5. Parameters
    Name Type Description
    name String The name to clean up.
    表 : 6. Returns
    Type Description
    String The cleaned up name