testpublish.psm1
Function Get-OSinfo { <# .SYNOPSIS Function to get OS information .DESCRIPTION This will fetch the OS information for computer .PARAMETER CName Enter the Computer Name .EXAMPLE Get-OSInfo -CName DC .LINK https://powershellgallery.com #> param([String]$CName="*") Get-WmiObject -class win32_operatingsystem -ComputerName $cname } |