Hey guys, I just started getting into scripting an thought I'd post my first script. In LANDesk (Server Management Suite) there is an option to create a "Custom Data Form". At my business (12,000+ end users strong) we have a custom form for inventory that we use to save an individual PCs location. (Building #, Floor #, Room #, closest phone extension, and Fleet use = Yes/No).
We sent out techs to each PC, one at a time, to fill out this form so it would populate in LANDesk and we would have a record of every PCs location. After some digging around, I found that through rigorous documentation, we had all the information we needed for each PC so I created this script to modify the form remotely. According to our client/server integration team, this form saves our company thousands of dollars. Just thought I would share.
I know it's simple but it's effective.
const HKEY_LOCAL_MACHINE = &H80000002
Set WshNetwork = WScript.CreateObject("WScript.Network")
strPCName = InputBox("Enter PC Name", "CDF Reader", WshNetwork.ComputerName)
If strPCName = "" then
wscript.quit
End If
set shell = CreateObject("WScript.Shell")
shell.run """\\" & strPCName & "\c$\Program Files\LANDesk\LDClient\LDCSTM32.EXE"""