Results 1 to 4 of 4
  1. #1
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Annoying security warning (XP)

    I use a simple technique to download the latest version of an Access database from the server to the user's local disk. I put a shortcut to a .bat file (that sits on the server) in the user's Startup folder that does the actual copy.

    I've used this often, but with a user at a new site, she gets a Windows warning every time asking her if she wants to "Run or Cancel". Is there a setting somewhere that essentially says "Hey, we've already done this before, Run it!".
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

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

    Re: Annoying security warning (XP)

    Put a bat file to any folder of your choice and modify Registry adding a key to execute your bat file every time computer starts.
    Example of corresponding reg file:

    -------------------------------------------------------------------------------------------------------------
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentV ersionRun]
    "DownloadAccessDatabase"="C:tempupdate1.bat"

    ---------------------------------------------------------------------------------------------------------------

    Or, when specific user logs on:

    ---------------------------------------------------------------------------------------------------------------
    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVe rsionRun]
    "DownloadAccessDatabase"="C:tempupdate1.bat"

    ---------------------------------------------------------------------------------------------------------------

  3. #3
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: Annoying security warning (XP)

    But if the .bat file is sitting on the server, will this generate the same warning message?
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  4. #4
    5 Star Lounger
    Join Date
    Nov 2004
    Location
    Wilmington, North Carolina, USA
    Posts
    1,196
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Annoying security warning (XP)

    Mark,

    Using PSexec you could copy the .bat to the local drive of every PC on your network...then there's no message. <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    ____________________________
    Jeremy
    "If you spend more on coffee than on IT security, then you will be hacked. What&#39;s more, you deserve to be hacked." -Richard Clarke

Posting Permissions

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