Private/Helper/Get-OSName.ps1
<#
Copyright © 2024 Integris. For internal company use only. All rights reserved. #> FUNCTION Get-OSName { <# .SYNOPSIS Retrieves the name of the operating system. .DESCRIPTION This function returns the name of the operating system installed on the machine. .PARAMETER None .EXAMPLE Get-OSName .NOTES The function uses the Get-CIMInstance cmdlet to get the operating system name. #> RETURN (Get-CIMInstance -class Win32_OperatingSystem).Caption } |