Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to create a logon script that changes this option. It can either be a batch file or a .vbs

"Internet Options\Browsing History\Settings\Check for Newer Versions of stored pages"

Anybody have any idea how to do this?

share|improve this question

1 Answer 1

up vote 0 down vote accepted
  1. Figure out what registry key this option changes, export that key to a .reg file
  2. Use something like this

    Set oShell = CreateObject("Wscript.Shell") 
    sRegFile = "C:\Temp\MyFile.Reg" 
    'This line runs Regedit in silent mode
    oShell.Run "regedit.exe /s " & Chr(34) & sRegFile & Chr(34), 0, True
    

Or instead you may directly edit registry from your vbs code as described here http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/registry/

share|improve this answer
    
Thanks! I'll look into that! Prob. what I am looking for.... –  Usta Jun 11 '12 at 20:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.