Created
August 4, 2016 13:44
-
-
Save wsmelton/3edce4fb3cd0816d17b30661b68df604 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$os = Get-ItemProperty 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion' -ErrorVariable $osinfoError | |
$osInfoData = [pscustomobject]@{ | |
"ProductName" = $os.ProductName; | |
"Version Number" = $os.CurrentVersion | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment