I need a software that on each user login automaticely checks a computer for its configuration. Intention is that this helps in software administration in a big company.
This should be Windows service working on NT4.0, 2000, XP, Vista, that runs a specified remote script with admin priviliges. (If there is a problem, NT4.0 may be not required). Also it does some shutdown operations.
Should be simple i.e. installable without any additional software (like .NET). I expect to get source code as well as binaries.
How it should work:
There are 2 files: [url removed, login to view], config.txt.
Setup copies configuration file into Windows path. In case of missing [url removed, login to view] setup stops and generates error message. The service starts on each computer start and reads config file (file should be editable by admin in the future).
Config file looks like:
/computer/share/path/to/[url removed, login to view]
On each user login the service reads remote script from [url removed, login to view] (in example: /computer/share/path/to/[url removed, login to view]).
Then the service executes the [url removed, login to view] locally under admin priviliges.
Script [url removed, login to view] shall be like:
route -p add 192.168.111.0 mask 255.255.255.0 192.168.100.1
arp -s 192.168.100.5 00-0e-0c-4b-44-99
arp -a >> smb/komputery/%USERNAME%.txt
linux/komputery/log/[url removed, login to view] ukryty=tak linux/komputery/log
# in line above slashes should be replaced by windows backslashes
(But do not assume precise content of the script, this is given for testing purposes only).
Section [wylacz] (means "turn-off"), have two parameters:
akcja - can be either "wylaczenie" (means turn the computer off) or "hibernacja" (puts windows into hibernation);
czas - is a time in format HH:MM (hours minutes)
On defined time if there was no user action (mouse move or keyboard press), the computer should be turned-off or hibernated (as first parameter specifies).
1. If there is no [url removed, login to view], service does nothing apart from storing the info into c:/%COMPUTERNAME%.txt
(%COMPUTERNAME% is an enviromental variable).
2. Wrong or missing [logi] section - stores info into c:/%COMPUTERNAME%.txt file.
3. Missing or incorrect remote script ([url removed, login to view]) => stores info into [logi] file.
4. Incorrect time or action in [wylacz] section - stores info info [logi] file.
All log storage in format: date|time|human readable comment