I have the following vbscript
' VBScript to Display ComputerName
Set WshNetwork = WScript.CreateObject("WScript.Network")
'
WScript.Echo ("This computer is... "& WshNetwork.ComputerName & vbCrLf & vbCrLf & _
"Active user is... " & WshNetwork.username)
I want to add OS name to my script. I have found these two "ways":
wmic os get caption
(gwmi win32_operatingsystem).caption
but I don't know "OO" or VBS scripting so I don't know what to do.
TIA