Whoops, I skipped the answer on logging to a central location. I do that with my user logon script...a giant txt file that gets renamed each night. The below gathers machine name, IP, time and date of each user logon. The last section writes it to a server shared and a csv.
I suspect the code breaks and line fees will be all fubar'd. strComputer = objNetwork.ComputerName Set objWMIService = GetObject( _ "winmgmts:\\" & strComputer & "\root\cimv2") Set IPConfigSet = objWMIService.ExecQuery _ ("Select IPAddress from Win32_NetworkAdapterConfiguration ") For Each IPConfig in IPConfigSet If Not IsNull(IPConfig.IPAddress) Then For i=LBound(IPConfig.IPAddress) _ to UBound(IPConfig.IPAddress) strIPAddress = strIPAddress & "," & IpConfig.IpAddress(i) Next End If Next strInfo = objNetwork.ComputerName & "," & objNetwork.UserName & "," & Date() & "," & Time() & "," & StrIPAddress SET objFSO = CreateObject("Scripting.FileSystemObject") SET objOutputFile = objFSO.OpenTextFile("\\SERVERNAME\Logs\log.csv", ForAppend, False) objOutputfile.writeline strInfo objFSO.Close From: Kennedy, Jim Sent: Tuesday, April 10, 2012 10:01 AM To: NT System Admin Issues Subject: RE: Looking to grab this info at login The first 5 are all doable with WMI query. If you haven't done much of that dig in. Very useful and not too difficult to figure out. Heck, a google search 'WMI query for ******" gets you there 9 times out of 10. Not giving you a hard time about googling just pointing it out. For example number 5: http://blogs.technet.com/b/heyscriptingguy/archive/2005/07/21/how-can-i-determine-the-current-screen-resolution-being-used-on-a-computer.aspx For Flash and browser you will need to hit \root\cimv2\application and test for each possibility. Similar to this: http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/09/how-can-i-determine-which-version-of-internet-explorer-is-installed-on-a-computer.aspx 6 will be a bit more difficult. You are going to need to script a ping and record it. For bandwidth I would think you would need to script a download from a remote site. I really got nothing on that one. From: David Lum [mailto:david....@nwea.org] Sent: Tuesday, April 10, 2012 9:49 AM To: NT System Admin Issues Subject: Looking to grab this info at login I've been requested to get this info at each machine's login. This would be for hundreds of networks, none under my control, but would be helpful for the setup of a product we sell. Client systems are MacOS, WinXP/Vista/Win7: 1. Workstation name (and any other identifying information) 2. Operating System 3. Default browser and version 4. Version of Adobe Flash 5. Screen Resolution setting 6. Bandwidth or response time Most of this looks straightforward, but 5 and 6 I am not sure how to handle in a scripted manner. Ideally we (NWEA) has a .ZIP file our clients could unpack and deploy via GPO/login script. I've been talked to come up with a script template and documentation our customers could use. Also ideally the output would be into a single .CSV so our customer's AD guys would look at a page and quickly find suboptimal systems. Even if could only be Windows machines that would be helpful. Anyone? David Lum Systems Engineer // NWEATM Office 503.548.5229 // Cell (voice/text) 503.267.9764 ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin