Skip to content

Instantly share code, notes, and snippets.

View kvprasoon's full-sized avatar
🙏
>_

PRASOON KARUNAN V kvprasoon

🙏
>_
View GitHub Profile
@kvprasoon
kvprasoon / Get-BCinfo
Created July 6, 2015 03:44
Get-BCinfo
gwmi win32_operatingsystem|select CSname,Version,@{E={(gwmi win32_bios).serialnumber};L="Bios SerialNumber"},servicePackMajorVersion
@kvprasoon
kvprasoon / Get-BCinfo
Last active August 29, 2015 14:24
Get Bios Serialnumber,PSComputername,Version,ServicepackMajorversion
foreach($O in "Win32_operatingsystem","win32_bios"){if($O -eq "win32_bios"){$r+=(gwmi $O|select @{E="Serialnumber";L="BIOS Serialnumber"},Pscomputername,@{E={$r.servicepackmajorversion};L="servicepackmajorversion"},@{E={$R.version};L="version"})} else{[array]$r+=(gwmi $O|select @{E={""};L="Serialnumber"},Pscomputername,servicepackmajorversion,version)};$R[1]}