→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
SofaKing
Engaged Sweeper II
Mr. Moernaut,

I am very impressed with the upgraded 3.0! Everything that 2 had plus everything it didn't!. Good show.

But as I started working with 3.0, I noticed my computer descriptions aren't being populated. I followed the guide, but did I miss/misconfigure something?

Also, where are the queries stored/how do I make new ones? I didn't see any way in the admin console.

Thank you!
Sofa King
6 REPLIES 6
Dimensio
Engaged Sweeper
That script works perfectly. Thanks much.
SofaKing
Engaged Sweeper II
I have a .vbs that does exactly that.
Just make the following a .vbs script. I run it as a login script in my domain.

'AD Info to local description'
'This info will show up after a reboot of the system.
'If you want it updated in LanSweeper, shorten the rescan time for the OS Scan
' -------------------------------------------------------'

Const HKEY_LOCAL_MACHINE = &H80000002
On Error Resume Next

Set objSysInfo = CreateObject("ADSystemInfo")
strComputer = objSysInfo.ComputerName

Set objComputer = GetObject("LDAP://" & strComputer)

objProperty = objComputer.Get("Description")

'If you wanted the AD Location info copied to the local description you could use the following line
'We use it since LanSweeper gives us the computer description
'objProperty = objComputer.Get("Location")

strDescription = objProperty

strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "System\CurrentControlSet\Services\lanmanserver\parameters"
strValueName = "srvcomment"
objRegistry.SetStringValue HKEY_LOCAL_MACHINE, strKeyPath, strValueName, strDescription
Dimensio
Engaged Sweeper
I don't necessarily need it scanned, if I can automate copying the data to the local computer description where it is scanned.

Unfortunately, I can't figure out how to pull the AD description from a computer. Is there an easy way that I could do that at the command line or -- if necessary -- through vbs? If I had a means to pull it, copying it to the local computer description through a registry import would be trivial.
Hemoco
Lansweeper Alumni
Is there a way to auto-refresh the Service webpage? I have tried using the <meta http-equiv="refresh" content="30" /> style tag, but I don't think it's designed to work in a .config file.

There is no way to autorefresh it at the moment (but you can always press F5)

Actually, I'm wondering if the AD Descriptions are being stored anymore and, if so, where. That was useful information in our reporting. Is there a way to get that information in 3.0?

In the current version, the AD computer info isn't scanned anymore. -> you can make a post in the "wishlist" for the next release.
Dimensio
Engaged Sweeper
Actually, I'm wondering if the AD Descriptions are being stored anymore and, if so, where. That was useful information in our reporting. Is there a way to get that information in 3.0?
SofaKing
Engaged Sweeper II
I'm silly. I was expecting AD Descriptions, not local computer descriptions. You can scratch that one.

You can scratch the query question too. Figured it out as well.

But I do have a new question.

Is there a way to auto-refresh the Service webpage? I have tried using the <meta http-equiv="refresh" content="30" /> style tag, but I don't think it's designed to work in a .config file.

Thanks again!