Results 1 to 5 of 5
  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cleveland, Ohio, USA
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Run Once Text File Notice (XP SP2)

    Company refreshed an old community / multi user desktop with a new box and the technicians thought it would be useful to have a text file popup at first log in reminding users that if they were missing any apps, etc. to contact the support center.

    The thought was to use the registry, run once area to launch notepad with a simple one line text display.

    Any ideas how to do this, quick and dirty since it will be needed for perhaps less than two weeks? Any more elegant ideas appreciated as well.

    Thanks,

    Jester
    I know enough to know I don't know enough

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,593
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Run Once Text File Notice (XP SP2)

    If you want it to appear every time a user logins for a two week period, put the notepad execution in the All Users | startup folder. Then just delete the entry from the folder. Much less hassle than messing with the registry. If you want it to appear only once then the registry is the place.

    Joe
    Joe

  3. #3
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Cleveland, Ohio, USA
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Run Once Text File Notice (XP SP2)

    Any samples of how the registry key would look?

    -Jester
    I know enough to know I don't know enough

  4. #4
    Silver Lounger
    Join Date
    Apr 2001
    Location
    New York, New York, USA
    Posts
    2,328
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Run Once Text File Notice (XP SP2)

    You have to create two text files: one to modify Registry and another with a text to display.

    ---------Sample of .reg file---------------------

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentV ersionRun]
    "NOTEPAD"="NOTEPAD.EXE "C:WINDOWSTEMPREMINDER.TXT" "

    -------------End of .reg file------------------------------------------------------

    Make sure this text file has .reg extension and your text file is named REMINDER.TXT and is in the C:WindowsTemp folder. Of course, you can choose another name and location - just make appropriate changes in .reg file and merge (double-click) it into Registry.

    More elegant solution.

    Create two text files - with .reg and .vbs extensions.
    ---------Sample of .reg file---------------------

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentV ersionRun]
    "Reminder"="WSCRIPT.EXE "C:WINDOWSTEMPREMINDER.VBS" "

    -------------End of .reg file------------------------------------------------------

    ---------Sample of .vbs file---------------------

    WScript.Echo "Write your reminder here"

    -------------End of .vbs file------------------------------------------------------

    Make sure that each file has appropriate extension, VBS file is in C:WindowsTemp folder and merge REG file into Registry.

    When you want to stop the file to appear, open Registry Editor, navigate to
    HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentV ersionRun
    and delete corresponding key.

  5. #5
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,593
    Thanks
    5
    Thanked 1,059 Times in 928 Posts

    Re: Run Once Text File Notice (XP SP2)

    The description in <post#=617,556>post 617,556</post#> will cause your message to appear each time any user logons to the PC until you remove the key. If you want it to appear only once (the next time the user logs on) you need to do a little more work. Using Regedit go to HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList. Expand the key (click the + next to it). Now click on the first key that begins with s-1-5-21. In the right pane note, the use should be in the value under ProfileImagePath. If there are any users that you do not wish to see the message note the complete key in the left pane s-1-5-21-xxxx...
    Now go to HKEY_USERSS-1-5-21-xxxxxxxxxx-yyyyyyyyy-zzzzzzzzzz-xxxxSoftwareMicrosoftWindowsCurrentVersionRunOnce where the x,y,z values are the same as from above. Enter a net REG_SZ value as described in <post#=617,556>post 617,556</post#>.

    Note: For more information see How to Associate a Username with a Security Identifier (SID).

    Joe
    Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •