VBscript - how to disable 'Use Automatic configuration Script'

Hello

I currently have the script in a vbs file. below

Const HKEY_CURRENT_USER = & H80000001
Set objShell = CreateObject ("WScript.Shell")
strPC = objShell.ExpandEnvironmentStrings("%COMPUTERNAME%") "

On Error Resume Next

Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")

strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet settings"
strValueName = "ProxyEnable".

objReg.GetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName and dwValue

'#==============================================================================
'# Proxy of IE if is currently on display message and ask the user if he
'# should then be disabled
'#==============================================================================
If dwValue = 1 Then
IEPrompt = MsgBox ("Hello David.") Your Proxy is on, you want to turn it off? (", vbQuestion + vbYesNo,"disable IE Proxy")
If IEPrompt = vbYes Then
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName and dwValue
MsgBox "Thank you David, your proxy is now off.» "Have a nice day" & _
".", vbInformation, "off of the Proxy IE.
ElseIf IEPrompt = vbNo Then
MsgBox "David, your Proxy is always on" & _
".", vbInformation, "off of the Proxy IE.
End If
'#==============================================================================
'# If IE Proxy is currently disabled display message and ask the user if he
'# must then be activated
'#==============================================================================
Else if dwValue = 0 Then
IEPrompt = MsgBox ("Hello David.") Your Proxy Server is turned off, you want to turn on? (", vbQuestion + vbYesNo,"activate IE Proxy")
If IEPrompt = vbYes Then
dwValue = 1
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName and dwValue
MsgBox "Thank you David, your proxy is now on." Have a wonderful day"& _
".", vbInformation, "enable Proxy from IE.
ElseIf IEPrompt = vbNo Then
MsgBox "David, your Proxy is always on" & _
".", vbInformation, "enable Proxy from IE.
End If
End If

This only disables the proxy server in Internet Explorer/Tools/Options/connections/Lan Settings.

I get this same code to enable check boxes "Automatic Configuration" instead of or as well?

Thank you very much

Luke

This issue is beyond the scope of this site and must be placed on Technet or MSDN

http://social.msdn.Microsoft.com/forums/en-us/home

Tags: Windows

Similar Questions

  • I want to know how to disable the automatic download of the documents in my player. I used to get a dialog that ask me if I wanted to view or download. I click an option that says always perform this action to download and now they still download. I want

    I want to know how to disable the automatic download of the documents in my player. I used to get a dialog that ask me if I wanted to view or download. I click an option that says always perform this action to download and now they still download. I want to return it to where to get the dialog box that will give me the opportunity to view or download.

    Review the settings of your browser.

  • How to enable the automatic configuration service in Windows XP

    How to enable the automatic configuration service in Windows XP

    Hi SamuelOkon,

    Are you facing any problem on your computer?

    You can follow the steps in this link & check if it helps.

    How to activate the Wireless Auto Configuration startup type?

    Hope the helps of information.
    Please post back and we do know.

  • How to disable the automatic locking of the screen of the computer with windows XP

    How to disable the automatic locking of the screen of the computer with windows XP? so many people responded on windows 7, but NOT a SINGLE spoke of XP.  I have this problem.  screen goes into sleep mode and I have to wake up even if NO PASSWORD is selected.  I changed the POWER SETTINGS. Nothing helps.  NEED HELP. Thank you

    Well since it is already assigned, and a mod has not moved this somehow already in the XP section:

    On your desktop, right-click right properties, under the screen saver are of course "on Resume, display logon screen" is NOT checked. You can also disable screen saver.

  • How to disable the automatic launch of firefox at startup in windows vista?

    Firefox launches automatically when I start my computer. How to disable this option?

    Try to disable it from msconfig.

    read here how to find (if you did not know) configuration of the system (by typing msconfig in the search box):

    http://netsquirrel.com/Msconfig/msconfig_vista.html

    Follow the instructions to go to the Startup tab,

    then Start unckeck firefox tab and then click OK to save the changes, then click restart.

    Thanks again

  • How to disable the automatic launch of Soft Front Panel?

    So, I foolishly decided to my NO-Scope to launch automatically when I insert the USB cable to my PC.

    I can't figure out how to disable this option. OR Scope does not appear in my AutoPlay settings in Control Panel.

    I use Windows 7.

    If you know the answer, I would like to know also. Thank you.

    Right, I do not expect the device appears in the AutoPlay list since our driver does not AutoPlay API at all.

    I managed to reproduce the problem that you have on my machine, and I was able to fix, follow these steps:

    1. disconnect the equipment

    2. right click on the icon "monitor of devices OR" in the system tray

    3. Select 'clear all device associations '.

    4. click on "Yes" in the dialog box "are you sure that...". ».

    Turns out that the monitor of devices OR implements its own custom 'AutoPlay' form that is not connected to the Windows API at all.

    I hope this helps!

    Kind regards

    Nathan

  • Yoga 2 pro how to disable the automatic slides

    Anyone know how to disable the slides in the presentation of yoga when the laptop is not in use. It's all just too annoying!

    This is a screen saver, dosed to customize

  • How to disable the automatic updates of windows and to update on demand

    At the same time, I had disabled the automatic updates of windows and updated on demand by opening windows update.  Where is the place to activate and deactivate the automatic updates of windows.

    It worked.  Thank you!

    I wasn't able to get automatic updates to download a microsoft windows update.  The fix for microsoft in default mode indicated that he needed to be repaired and that fixed it.  When windows update was used again the update has failed once again.  The fix even that it was then run in aggressive mode and with a recheck has failed to correct the problem.  At each restart, automatic updates took the time to start producing a yellow shield and then pop-up reminders.  So thank you to help us with these questions to disable the automatic updates of windows.

    Thanks for posting the results of your efforts, I don't know they will be read and appreciated.

    UTC/GMT is 15:27 on Thursday, October 6, 2011

  • How to disable the automatic creation of folders of documents under Vista?

    How can I disable the automatic creation of folders on my desktop windows wista SP2 documents?

    Hi ZucOrc,

    (1) since when are you facing this problem?

    (2) remember to make changes?

    Method 1: Run the fixit available in the links below and check if that makes a difference-Worth to try
    Diagnose and repair Windows files and folders problems automatically
    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Note: FixIt would attempt to recover bad sectors on the hard disk, in the course of this process there are chances of DATA loss from that particular area.

    Method 2: Run Microsoft Security scanner (MSS) to any threat and try to correct

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: Infected files can be deleted from your computer; There is a chance of data loss.

  • How to disable billing automatic renewal for adobe stock?

    just uploaded my CPD. both pis (for us) Adobe ate them. How to disable auto renewal of billing for shares of adobe, while I decide to renew or not once my year's up?

    Hello

    Under the terms, the contract will be renewed automatically, on your annual renewal date, until that you cancel.

    We will notify you by electronic mail concerning the renewal 30 days before the renewal date.

    Thank you

    Bev

  • How to disable Adobe cross-site scripting.

    disable Adobe cross-site scripting. I have a vista running on a laptop

    http://forums.Adobe.com/index.jspa

    Try the Forums Adobe above, relating to your question.

    Or Vista programs Forum:

    It's updated operating system Vista, upgraded installation and activate Forum.

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/threads

    They will help you with your question in Forum Vista programs at the above address.

    See you soon.

    Mick Murphy - Microsoft partner

  • disable the automatic configuration of the window

    Dear experts,

    I put the static ip address to my windows 7 PC, but what issue ipconfig/all-command in Dos mode, it will show 169.254.x.x. I tried to search the web and

    has found that under control and I tried and finally solved my problem. In fact, I don't know what is the root cause of on this subject. Any expert can explain it or any article can explain what is the first cause I need to use method below to resolve the issue.

    : \Users\lyngtinh > netsh interface ipv4 inter show
    result as:

    IDX met MTU State name
    --- ---------- ---------- ------------ ---------------------------
    1 50 4294967295 connected Loopback Pseudo-Interface 1
    11 10 1500 connected Local area connection

    11:<=Keep it="" in="">

    Then, run this command:

    C:\Users\lyngtinh>netsh interface ipv4 set interface 11 dadtransmits 0 = store = persistent

    Hello

    In software, netsh, or network shell, is a command line utility included in Microsoft Windows. It allows a local configuration or network such as interface devices remotely. A common use of netsh is to reset the default TCP/IP, known parameters stack. Netsh interface command is used to configure the Protocol TCP/IP (including addresses, default gateways, DNS servers, and WINS servers) and displays the configuration and statistics information.

    I recommend you post the same question in Windows IT Pro TechNet for a better understanding of the netsh command lines.

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

    Hope that the information provided is useful.

  • How to disable the automatic updates?

    Hi all

    I would like to disable the automatic updates and be able to manually check for updates without it becomes a task complicated.

    The only answer I could find so far is the following: https://helpx.adobe.com/creative-suite/kb/disable-auto-updates-application-manager.html

    Is this the only solution? Because, in reading the notes, also seem to which would prevent me from easily control updates. Have I misunderstood?

    I absolutely need to do because when I'm at work, in my office, I have absolutely no problem connecting.

    But coming to the House, in a very rural village with a... Let's say "connecting powered-pigeons", automatic updates can become a serious problem for me.

    Thank you in advance!

    Carlo

    Acrobat has its own settings to update.  Open your preferences and disable the auto update.  I'm no expert, but Acrobat seems to be a strange duck in the world of CC.  Although it is part of the CC, it still seems to work more as a stand-alone product.

  • How to write different words in different image files using automate batch script

    I have 1000 line of words in the text file. That all the lines of words written in 1000 images.is there any script commands of automation

    for example

    def.jpg.

    Did you check that?

    Create graphs based on data in Photoshop

    What exactly is the relationship of the words for files, how do you determine which word belongs with the image which ultimately?

  • RoboHelp: How to disable the automatic correction of the HTML in Design view?

    Hello

    I have observed that a code in the html page broken will if auto correct when we view it in Design view. How do I disable this feature?

    My requirement is that I need to have excerpts as

    First single: < div id = "extract" >... Text has a value of 1 <! - opening first extracted div - >

    Second excerpt: text is set to 2 < / div > <! - div in the second extract from closing - >

    Current problem is when I save the first and the second extracted and after the consultation in the 'Design', a closing div (< div >) got automatically created in the first extract and open div (< div >) was created in the second excerpt.

    Is it possible to disable this feature of HR?

    Thank you

    Remesh

    I have that reason to read this as simply an excerpt in a snippet? If this isn't something, I tried and I doubt it's possible. You cannot turn off AutoCorrect, but you can avoid it by using a rather text editor. However, you lose a lot of the features of RoboHelp.

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

Maybe you are looking for