Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Computer Description

Status
Not open for further replies.

MatrixReloaded

Technical User
Apr 16, 2003
3
AU
Does anyone know the syntax to display the description of a computer in Windows NT. Getting the Name is straight forward but when I put in description the script bombs out!

Thanks

Set WSHShell=WScript.CreateObject("WScript.Shell")
Dim accountsDomain
Dim Computer

accountsDomain = "domainname"
Set Domain = GetObject("WinNT://" & accountsDomain)
Domain.Filter = Array("computer")

For Each Computer In Domain
WScript.Echo Computer.Name
Wscript.Echo Computer.?????
Next
 
The WinNT provide does NOT support the description property.

Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top