On Error Resume Next
strComputerlyrj = "."
Set lianjieobjlinyangrj = GetObject("winmgmts:\\" & strComputerlyrj & "\root\cimv2")
Set colItemslinyangrj = lianjieobjlinyangrj.ExecQuery("Select * from Win32_ComputerSystem")
For Each objItemlyrj in colItemslinyangrj
getcomputerstr = objItemlyrj.name
getcomputerdomainstr = objItemlyrj.Domain
getusernamestr = objItemlyrj.UserName
getmodelstr = objItemlyrj.Model & "(" & objItemlyrj.Manufacturer & ")"
next
Set colItemslinyangrj = nothing
Set ercolItemslinyangrj = lianjieobjlinyangrj.ExecQuery("Select * from Win32_OperatingSystem")
For Each erobjItemlyrj in ercolItemslinyangrj
getosnamestr = erobjItemlyrj.Caption
getoslastbootuptimestr = erobjItemlyrj.LastBootUpTime
next
Set ercolItemslinyangrj = nothing
Set lianjieobjlinyangrj = nothing
If getusernamestr <> "" Then
Else
Set SetobjNetlinyangrj = CreateObject("WScript.Network")
getusernamestr = SetobjNetlinyangrj.UserName
Set SetobjNetlinyangrj = nothing
End If