Login | |
|
 |
Network application/script to check client laptop/compu... - 11/8/2005 11:27:28 PM
|
|
 |
|
| |
BlackZ
Posts: 3
Score: 0
Joined: 11/8/2005
Status: offline
|
First off all , I think I have to post it here so please dont be mad If I am wrong, ok here it goes, Hi there, I am a student (of Belgium) and I have to make an application for one of my courses (Network Scripting). Each student of my class was given a different subject for creating a network client-server application. Since we just see the basic in class of some script languages we are allowed to get help from other people to create our application, thats why I came here to ask for help and tips so I could finish my project succesfull. The project: ------------ I have to make a client-server application. The meaning of it is to check for newly installed software on a client. What do I mean by newly installed software ? Well, software that has been installed after the client got his laptop/computer from his superior. Each time the client installs new software like MSN/MIRc/... the server will be informed that CLIENT001 installed those non allowed software. On the server there will be a list available of the clients that installed unwanted programs. Motivation: ----------- People that get their laptop from work only have to use it for work and not for personal affairs. If you limit the pleasure programs like Games/MSN/MIRC/... you limit the probability for security leaks, software problems, unfocussed workers. What can I use ? ---------------- I may use any program but I would like to program it in Visual Studio .NET since I know that program the best. First I want to get it working in WSH. Problem ? --------- Still my knowledge of scripting/programming is very poor so I have completely no idea where to start. Any help is welcome, any tips and hints also. The deadline is at the beginning of January, the program doesnt have to be complex it only has to work. If it can say, on a server, which new software has been installed on which client then I will have succeeded in my project. Thank you for your time and I hope for a positive response so I know what I can do for the best to start my project. You can contact me anytime , reply on this forum or if you really want you can add me on MSN. I still have other projects to finish so I wont make the program complex , it just needs to work with the basics.
|
|
| |
|
|
|
 |
RE: Network application/script to check client laptop/c... - 11/8/2005 11:49:43 PM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
Well, it should be easy enough. You can use Vbscript to list all installed software, that's easy. This little bit of code will do that Const HKLM = &H80000002 Set objRegistry = GetObject("winmgmts://./root/default:StdRegProv") sBaseKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" arrKeys = objRegistry.EnumKey(HKLM, sBaseKey, arSubKeys) For Each sKey In arSubKeys objRegistry.GetStringValue HKLM, sBaseKey & sKey, "DisplayName", strName If Trim(strName) <> "" Then wscript.echo strname End If Next Ideally, you'd want to run this every day and compare each day's results with the previous day to see if anything has been added. Take a look at the FileSystemObject to find out how to write things to files.
|
|
| |
|
|
|
 |
RE: Network application/script to check client laptop/c... - 11/9/2005 12:27:19 AM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
There's a limitation using the WMI class Win32_Product as it will only return software installed with Windows Installer. So, if something was installed with, say, InstallShield it won't show up. If you use the code from my previous post it will show ALL installed software regardless of install method.
|
|
| |
|
|
|
 |
RE: Network application/script to check client laptop/c... - 11/9/2005 1:10:53 AM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
Well, my previous statement wasn't strictly 100% true. It will show all installed software that puts an entry into the Uninstall registry subkey. I'd guess 99% of software does that these days. You might get the odd crappily designed application that doesn't do it though.
|
|
| |
|
|
|
 |
RE: Network application/script to check client laptop/c... - 11/9/2005 9:07:48 AM
|
|
 |
|
| |
Cybex
Posts: 412
Score: 0
Joined: 9/14/2005
From: Florida
Status: offline
|
quote:
I'd guess 99% of software does that these days. You might get the odd crappily designed application that doesn't do it though. Or maleware, spyware, or just about any software you as a SA do not want on your machines. Cybex
|
|
| |
|
|
|
 |
RE: Network application/script to check client laptop/c... - 11/10/2005 1:18:38 AM
|
|
 |
|
| |
ginolard
Posts: 1068
Score: 21
Joined: 8/10/2005
Status: offline
|
Dumb users need dumb terminals.
|
|
| |
|
|
|
|
|