{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":1124,"path":"api-reference/server-api-reference/c_WindowsOSNameHelperAPI.md","title":"WindowsOSNameHelper - Global","bundle":null,"doc_type":null,"release":"australia","body":"\n# WindowsOSNameHelper- Global\n\nThe WindowsOSNameHelper script include provides methods to handle the formatting of Windows OS names.\n\nUse in any server-side discovery scripts where you need to format OS names.\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## WindowsOSNameHelper - formatWindowsOSName\\(String name\\)\n\nFormats the given Windows OS name.\n\n|Name|Type|Description|\n|----|----|-----------|\n|name|String|The name to format|\n\n|Type|Description|\n|----|-----------|\n|String|The formatted name|\n\n## WindowsOSNameHelper - makeOSChoiceValid\\(String value\\)\n\nEnsures that the OS choice is valid.\n\n**Note:** Deprecated. Use OSChoice.reconcile\\(\\)\n\n|Name|Type|Description|\n|----|----|-----------|\n|value|String|The value to validate|\n\n|Type|Description|\n|----|-----------|\n|void| |\n\n## WindowsOSNameHelper - osCleanupName\\(String name\\)\n\nCleans up the specified Windows OS name by stripping out incorrect characters, incorrect capitalization, extra spaces, or trailing spaces.\n\n|Name|Type|Description|\n|----|----|-----------|\n|name|String|The name to clean up.|\n\n|Type|Description|\n|----|-----------|\n|String|The cleaned up name|\n\n"}}