KiXtart Learning Series - Lesson 03
RULES
- No KiXtart.org Moderators or Administrators aside from myself are allowed to post in this thread.
- (This is for those with less experience to learn, not for bored, experienced users to bump their post count)
- (If you're able to easily do this task then please don't participate with any solutions)
- No using IM,PM, KiXtart.org search feature, or Google to locate/find an answer (you're on the honor system here).
- The only help you're allowed to use is the KiXtart User Manual. Please be honest and don't use other resources
- All submitted code must be as though it were to be used in production. ie.. code should set options and
have error checks as well as documentation of what the code is doing. Error checking does not need to
be extensive but should have some basic check.
Objectives:
- Read local and remote registry to obtain a value
- Create and modify an .INI file with values read from the Registry
- Modify the .INI to include the current PID of KIX32.EXE or WKIX32.EXE
- Execute a second script that has a different Process ID Number and add to the .INI it's value
- Pick 5 computers from your network and read the timeout value from their boot.ini file
then input that value into the new INI you created.
- Given strings with variable length locate the term NOW and return the first
character before it and after it and place in the INI file
(exclude/ignore blank space before or after the term)
DO NOT post a solution until Tuesday, Oct 10, 2006.
- I will make a post on Tuesday to indicate when you can post a solution.
- If I've made an error or have not provided enough information you can post asking for clarification
but please do not post any solutions until Tuesday.
Details for objectives
- Create an INI file in the same folder the script runs from named KiX-Lesson03.ini
The case of the saved file name is to be maintained.
Example KiX-Lesson03.ini
Code:
[LESSON_03]
LOCAL_SYSTEM_MAIN_PID=VALUE
LOCAL_SYSTEM_SECOND_PID=VALUE
LOCAL_SYSTEM_Bitmap=VALUE
REMOTE_SYSTEM_2K_Bitmap=VALUE
REMOTE_SYSTEM_XP_2K3_Bitmap=VALUE
REMOTE_SYSTEMNAME_01_TIMEOUT=VALUE
REMOTE_SYSTEMNAME_02_TIMEOUT=VALUE
REMOTE_SYSTEMNAME_03_TIMEOUT=VALUE
REMOTE_SYSTEMNAME_04_TIMEOUT=VALUE
REMOTE_SYSTEMNAME_05_TIMEOUT=VALUE
RANDOM_STRING1=VALUE
RANDOM_STRING2=VALUE
RANDOM_STRING3=VALUE
Registry Reading
- Read the value from the Registry key here from a remote Windows 200 system
and from a remote XP or Server 2003 system and from your local system.
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Folder
- The value: Bitmap
- Modify the VALUE entry in the INI with the returned value. The value must include the full
path of the local and remote system and not just the variable.
BOOT.INI Reading
- Remotely read the BOOT.INI timeout value of 5 computers on your network and enter the value into the
KiX-Lesson03.ini file as show above where SYSTEMNAME is the real name of the system
as well as the DATE and TIME the file was last modified.
- Return the the DATE in this format MMDDYYYY-HHMMSS
STRINGS reading
- The quick or was it now slow fox ran in the snow
- The snow in France is now gone but will return again next Winter
- There is now a slow return on investments at the bank
Previous Learning Series
9/21/2006
KiXtart Learning Series - Lesson 01
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=168455
9/25/2006
KiXtart Learning Series - Lesson 02
http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=168694
Post 9,000 for me