VBscript - how to Disable "Use Automatic configuration Script"

Hi There
I currently have the below script in a vbs file;
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,dwValue
'#==============================================================================
'# If
IE Proxy is currently enabled display message and ask user whether it
'# should
then be disabled
'#==============================================================================
If dwValue = 1 Then
IEPrompt = MsgBox ("Hello David. Your Proxy is on,  Do you want to turn it off?", vbQuestion+vbYesNo, "Disable IE Proxy")
If IEPrompt = vbYes Then
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue 
MsgBox "Thank You David, your proxy is now off. Have a nice day" & _
".",vbInformation, "Disable IE Proxy"
ElseIf IEPrompt = vbNo Then
MsgBox "David, your Proxy is still on " & _
".",vbInformation, "Disable IE Proxy"
End If
'#==============================================================================
'# If
IE Proxy is currently disabled display message and ask user whether it
'# should
then be enabled
'#==============================================================================
ElseIf dwValue = 0 Then
IEPrompt = MsgBox ("Hello David. Your Proxy is off,  Do you want to turn it on?", vbQuestion+vbYesNo, "Enable IE Proxy")
If IEPrompt = vbYes Then
dwValue = 1
objReg.SetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
MsgBox "Thank You David, your proxy is now on. Have a wonderful day" & _
".",vbInformation, "Enable IE Proxy"
ElseIf IEPrompt = vbNo Then
MsgBox "David, your Proxy is still on" & _
".",vbInformation, "Enable IE Proxy"
End If
End If
This only turns off the proxy server in IE/Tools/Internet Options/Connections/Lan Settings.
Can I get this same code to turn of the 'Automatic configuration' check boxes instead or as well?
Many thanks
Luke

Hi Luke,
We hope your issue has been resolved
The registry for use automatic configuration script is under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL
(For per user) It shows when script is set to work.
Regarding to question about scripting or VB script, I’d suggest that post your issue at TechNet scripting Forum and MSND forum. There you can get more effective suggestion by other experts who familiar with scripting. Your understanding is highly appreciated.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral
And just for your reference, we do have a Group Policy for that, link it to a scope (Site, Domain, or OU level) which contain user account object.
For more information please refer to following MS article:
Configure a Registry Item
https://technet.microsoft.com/en-us/library/cc753092.aspx
Regards
D. Wu
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Similar Messages

  • How to make system update with "use automatic configuration script" and an URL

    Hello,
    all our laptop using "use automatic configuration script" with an "accelerated_pac_base.pac" prxy setting.
    How can we make system update work with that ?
    And no way for us to by pass this proxy settings with
    Thanks

    I mean there is no general method which is capable of correcting all possible errors found by schema validation.
    For example if the validation says it expected to find an <organization> element or a <company> element but it found a <banana> element, there is no way to determine what repair is necessary.
    Anyway the requirement is fighting against the way things work in the real world. The purpose of validation is just to find out whether a document matches a schema. If it doesn't, then too bad. Send it back to be fixed or replaced. If you are having a problem because you repeatedly get documents which don't quite match your schema, then you need to train the users to produce valid documents or to give them tools which help them do that.

  • Why does unchecking the "use automatic configuration script" box on Internet Explorer 8 fix connectivity errors?

    As long as I have been in the job and we have been using IE as our browser, we have controlled the proxy settings with an automatic configuration file.
    Recently, with IE8 on WinXP and Win7, we have had situations with the user getting various connectivity errors. By unchecking the "use automatic configuration script" box, they start working. But we don't change anything else.
    These error are not consistent from machine to machine.
    We are in a AD Domain environment
    These are the two errors I have documented.
    Error: 5
    Description: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
    Access to resrouce is forbidden by server while attempting to access server at
    http://content.mpl.org/cgi-bin/admin/pwtest.exe?CISOVER=60.
    Please check the permissions to the file on th eserver.
    Two very different problems. Both somehow fixed by unchecking the box.
    The config file itself has not been changed in over a year.
    Can anyone explain why unchecking this box, but not making any other changes to the proxy settings would fix connectivity problems? These are all external sites that need to go through the proxy.
    Thanks.

    Hi,
    You can use the steps in the following thread to disable this option:
    uncheck "use automatic configuration script" in IE LAN settings 
    http://social.technet.microsoft.com/Forums/en-US/winserverGP/thread/05a7c683-075e-435c-8583-da8fd3559cf2
    Or try to
    reset Internet Explorer settings and select use automatic configuration script to see whether it could work.
    Hope this helps.
    Vincent Wang
    TechNet Community Support

  • Use System Proxy Settings - when this is selected in FF v3.6.6, does it adhere to the same local IE proxy setting? We use a pac file configured in "Use automatic configuration script."

    Does anyone know what Firefox looks at locally on the PC when the "Use System Proxy Settings" setting is selected? It appears to be the default setting, recently changed from "No Proxy" of versions past...
    Our company uses a pac file specified in IE under "Use automatic configuration script" - with this new default, does it adhere to the same setting in:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

    I may be wrong but I think that the "Use System Proxy Settings" makes sense only on Linux and generally speaking "other OSes". As far as I know there is no generic proxy settings in Windows operating system.
    The one I know is in the registry part of Internet Explorer.
    So in my understanding in Windows, Use System Proxy Settings = No Proxy

  • How to disable the automatic conversion from JPEG to TIFF?

    I am using Keynote '09 and Safari 4 on OS X 10.6.8, and I often want to drag and drop a JPEG image from Safari to my slides. I would like to keep the image format as is, but Keynote automatically converts the image format from JPEG to TIFF, so the .key file size becomes large.
    Does anyone know how to disable this automatic conversion? Any idea? I know that I can use the original format if I save the JPEG image at a temporary location, such as ~/Desktop. But I would prefer simpler way. Drag and drop is the best.

    Indeed, having the same problem here.  A simple PPT file that was 1 MB ballons often to more than 10 x the size as a KEY file.  If you rename to zip and open, one notices lots of completely useless "PLACEHOLDER" and background files that occupy several MB in total, plus some small JPGs have been converted to very large PNGs.  This is truly annoying. 
    A similar lack of "file size economy" is present in all applications apple produces for the ipad/iphone.  Images I uplodaded to the photo app become very large (often 10 x bigger).  WTH apple?  Be more economical!  Even my 64 GB ipad2 is starting to feel small with your waste.

  • Workstation Manager service clears Automatic Configuration Script Properties.

    We have a weird problem where when the workstation manager service
    starts it clears the Automatic Configuration Script within Internet
    Explorer. Now out of our 400 odd PCs, only about 3 are doing it. For
    now we have counter acted it by putting in an actual Proxy Server in,
    but if we disable the workstation manager service, restart the PC, the
    Automatic scripting is still in place.
    We have gone through the group polices, and through the Zen
    policies, we can't work out where Workstation Manager is receiving its
    instructions to do this?
    We are running Novell Client 4.9.1 SP2, we applied SP2 for the client
    to see if this would resolve the error but it didn't
    Thanks in advance,
    Jim

    I will follow those instructions in that TID you supplied me, you can
    log in as any user, and even if you tick the workstation only box, the
    problem still occurs.
    Thanks,
    Jim
    Jared Jennings wrote:
    > Jim,
    >
    > > We have gone through the group polices, and through the Zen
    > >policies, we can't work out where Workstation Manager is receiving its
    > >instructions to do this?
    >
    > What if you unassociate all policies from the user and workstation that
    > this happens to?
    >
    > Does it matter who logs into the machine?
    > You might enable group policy logging to find which policy is doing this.
    > http://support.novell.com/cgi-bin/se...i?10093312.htm
    >
    > --
    > Jared Jennings
    > Data Technique, Inc.
    > Novell Support Forums Sysop
    > http://wiki.novell.com

  • Trying to use a proxy server automatic configuration script

    I have just started a new course and my university require every machine that connects to use a proxy configuration script and I am having a spot of bother getting it all set up.
    I have managed to get Firefox set up using the script (I was given a URL for the script and was able to get point the firefox settings at it.) Whilst this allows me to browse the web whilst on campus, it does not allow me to sync all my work to my git, svn and backup server, or in other words, anything that requires an internet connection.
    I am currently using Gnome 3, however, if it is easier to use this kind of thing, then I can switch off to another WM.
    If it helps, the URL for the config file is located here:  http://www-config.strath.ac.uk/proxy.config
    Thanks in advance for any help that can be offered.
    Edit: I tried sticking the url into the Proxy configuration URL bit in the Network settings screen, but that either doesn't work, or I don't know what I am doing (In all fairness, one is just as likely as the other)
    Last edited by nimmo (2011-09-02 21:46:21)

    Ah, I hadn't noticed it giving different contents when you grabbed it when off campus...
    I have  a copy that I downloaded yesterday here:
    function FindProxyForURL(url, host) {
    if (
    isInNet(dnsResolve(host),"130.159.0.0","255.255.0.0")
    || isInNet(dnsResolve(host),"10.0.0.0", "255.0.0.0")
    || isPlainHostName(host)
    || dnsDomainIs(host, "localhost")
    || isInNet(dnsResolve(host),"127.0.0.1","255.255.255.255")
    ) return "DIRECT";
    else if (
    shExpMatch(url, "http://www.gownhire.co.uk/*")
    || shExpMatch(url, "http://www.edeandravenscroft.co.uk/*")
    || shExpMatch(url, "http://launch01.strath.youth-unlimited.com/*")
    ) return "PROXY dangermouse.net.strath.ac.uk:8080";
    else if (
    shExpMatch(url, "http://*.facebook.com/*")
    || shExpMatch(url, "https://*.facebook.com/*")
    || shExpMatch(url, "http://*.fbcdn.net/*")
    || shExpMatch(url, "https://*.fbcdn.net/*")
    || shExpMatch(url, "http://*.bebo.com/*")
    || shExpMatch(url, "https://*.bebo.com/*")
    || shExpMatch(url, "http://*/gateway/gateway.dll*")
    || shExpMatch(url, "https://*/gateway/gateway.dll*")
    ) return "PROXY zloty-p.net.strath.ac.uk:8080";
    else return "PROXY tambala-p.net.strath.ac.uk:8080; PROXY kwacha-p.net.strath.ac.uk:8080; PROXY rouble-p.net.strath.ac.uk:8080";
    [rant]
    Looking more closely at the contents of that file, I am starting to be less impressed with the wireless service. At St Andrews I just had to install a certificate and setting up a WPA2-Enterprise profile and that was that, none of this logging into a web portal as if I was in a coffee shop hotspot nonsense.
    [/rant]

  • How do I use a Java script in place of a standard link?

    Hi! I'm very new to html and totally unfamiliar with Java. Basically my html has a link like this: Mr Nobody and I didn't like how easy it was for spammers to harvest that email address from my website. I looked at this site http://www.bronze-age.com/nospam/ which allowed me to download a javascript .js file and some instructions on how to recode my email link so that it's hidden.
    I've loaded the java procedure in the head of the html just like the website says. He says that every link must be converted to a script call; so what previously was Mr Nobody changes to <script>mail2("nobody","fake.address9z",0,"","Mr Nobody")</script>. What does this mean? I replaced the stuff from the inside of the quotes in the href and weird stuff happens. What do I actually replace or how do I call up this script?
    I basically have created an image mapped link that I want to call this javascript when clicked.
    thanks for any help!! :)

    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    nclow wrote:
    BigDaddyLoveHandles wrote:
    nclow wrote:
    Beats me. Read the documentation. Or ask on a javascript forum, but they'll probably tell you the same thing.Yeah, they're all a bunch of ASCII porn lovers.Really, who isn't?!Even the sounds of an impact printer pounding out a solid page of characters gives me a thickie.Well actually... unless you're in the habit of using mustard during foreplay, and really who can tell, then I think that's actually one of them cd-rom hotdogs that you dropped in your lap.Is it too late to mention what a cultured and sophisticated person I am?If by cultured you are referring to bacterial growth between your toes then yes I think we covered this.It's just that I'm still holding out for that sponge bath from Fiest.Well if she ever gets off Bravo I'll send her your way.
    But not on the train. Yikes!Sigh... It's just that I've got that big guy's weakness for bony women...

  • HT201320 how can i stop automatic configuration of email accounts on my ipad...the ports are not correct and i cannot access my email

         i cannot get my "frontier" email account set up on my ipad so that i cannot either or receive email.  Frontier says that the "automatic" verifying tool puts the wrong ports in and that is why i cannot get or send emails from the ipad.  We know we have the correct name and password in but when in comes to verifying, an error message comes up and says "the wrong user name or password has been entered".
          How do i disable the automatic set up of email so i can be assured the correct ports are enabled?

    -Tap "Settings" app,
    -Select "Mail, Contacts, Calendars" option on the left hand side,
    -On the right, under "Accounts" on top, tap "Add Account...",
    -Select one of the email service providers or "Other",
    -Under "Mail", tap "Add Mail Account",
    -A window pops up and enter your new email account details.
    -Repeat for new email accounts.

  • Jabber for Window, phone mode, how to disable "use my computer for calls"

    We have a Citrix environment and only want to control the Cisco deskphone with Jabber for Windows in the phone mode.
    We use CUCM 8.6.2 and I have installed Jabber for Windows 9.7.0 and all works fine, I can control my deskphone, make and receive calls, phonebook and Outlook integration works fine.
    Is it possible to disable "use my computer for calls" as we do not want users to make calls via Citrix, but only use the deskphone for this.
    Thanks, Perry

    Hi Matthias,
    Soft-phone mode cannot be disabled. Supported Features on Virtual Environment are the following.
    Supported Features
        Instant messaging and presence with other Cisco Jabber clients
        Desk phone control
        Voicemail
        Presence integration with Microsoft Outlook 2007, 2010 and 2013
    We have an existing defect which is in Terminated state because feature is not supported hence cannot be fixed.
    CSCub40605 - J4W - Ability to disable softphone mode in Citrix environment.
    HTH,
    Please rate if you find this post helpful.
    Regards,
    Mohammed Noor

  • How to disable WMC automatic update

    Windows Media Center does update itself via Internet, regardless of the Windows Update configuration.
    How can I disable this?

    So, you're never, ever going to use Windows Update? 
    You do realize that this is how you get updates for the operating system (Windows itself), as well as any other MS software that you have installed, yes?
    Honestly, not a good idea.
    Perhaps you could say what you've observed to occur, so that we might be able to offer a more proper resolution (read:  fix why this isn't working for you?)
    The earlier suggestion should work.  I've verified it myself.
    On my laptop (which has no tuners; therefore, it doesn't need a Guide to go with them), I unchecked that box, oh, well before I wrote that post in March 2009.  Never since have I seen the 'downloading Guide data' icon pop up in my
    systray, never has the laptop woken itself to run a Guide update.
    Regards,
    Chris
    MS-MVP (Windows Entertainment and Connected Home) [If this post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others
    find the answer faster.]

  • How to disable log4j via configuration file

    Howdy,
    I am using the quartz library which uses log4j, how can I disable log4j in my release version? where can I find a sample configuration file to disable log4j?
    TBH i am not sure if its actually running as i am not pointing it to config, i get these warnings:
    log4j:WARN No appenders could be found for logger (org.quartz.simpl.SimpleThreadPool).
    log4j:WARN Please initialize the log4j system properly.
    But I would prefer to just disable it all together (or initialize it correctly and make it do nothing)...so I am looking for how I can accomplish this. I've read over the docs here:
    http://logging.apache.org/log4j/1.2/manual.html
    They are a bit long winded for what I need to do so I might have missed it, but i am just looking for how to structure a minimal con fig file to properly initialize log4j and prevent it from logging anything

    tiburblium wrote:
    Now quick question, how can I modify this to prevent logging from occuring? It seems as if I set log4j.debug=FALSE nothing is logged, is that all thats required? set rootLogger to OFF if you intend to turn off logging, something like this.
    log4j.rootLogger=OFF, R
    Also how can i specify a null appender? I dont want log4j to attempt to log to a file on an end users systemlog file is not created on the end users system. It is created in the app server where the application is running. Setting rootLogger to OFF should take care of your problem as nothing will be logged.

  • How do I use a terminal script when starting IMovieHD6??

    My new mini is hooked up to my TV. I'd love to create a script that converts to a higher resolution (using cscreen) when opening iMovie and then sets me back to lower resolutin when I close iMovie
    reasons:
    I can't open iMovie unless I am in higher res
    I can't read text in other apps in the same high res
    If I manually change the res using the preferences, I get into a flicker thing and need to go through a painful process (explained elsewhere) to reset.
    The cscreen terminal commmand I want to execute upon opening iMovie:
    /Applications/Utilities/cscreen -x 1024 -y 768
    and upon closing:
    /Applications/Utilities/cscreen -x 800 -y 600
    I know what I want, just not quite sure how to do it....
    Thanks
    mini dual core, G4   Mac OS X (10.4.6)  
    mini dual core, G4   Mac OS X (10.4.6)  

    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    cotton.m wrote:
    BigDaddyLoveHandles wrote:
    nclow wrote:
    BigDaddyLoveHandles wrote:
    nclow wrote:
    Beats me. Read the documentation. Or ask on a javascript forum, but they'll probably tell you the same thing.Yeah, they're all a bunch of ASCII porn lovers.Really, who isn't?!Even the sounds of an impact printer pounding out a solid page of characters gives me a thickie.Well actually... unless you're in the habit of using mustard during foreplay, and really who can tell, then I think that's actually one of them cd-rom hotdogs that you dropped in your lap.Is it too late to mention what a cultured and sophisticated person I am?If by cultured you are referring to bacterial growth between your toes then yes I think we covered this.It's just that I'm still holding out for that sponge bath from Fiest.Well if she ever gets off Bravo I'll send her your way.
    But not on the train. Yikes!Sigh... It's just that I've got that big guy's weakness for bony women...

  • 5230: how to disable all automatic calling (intern...

    Another problem with my new 5230: I have a pre-paid card (Pay and Go, Proximus, Belgium).
    I left my phone standby (and ... the battery still doesn't last 1 day, see other post) all day.
    I checked the amount of pre-paid credit I had in the morning.
    I checked again a few hours later (and I did not use the phone): credit is decreased !
    Checked again a few hours later: credit still decreases. this is becoming very expensive (few Euro's a day) so here are my questions:
    -anyone any idea what can cause this?
    -anyone any idea how I can find out what causes this when no-one knows?    ;-)
    -how can I disable ALL possible "auto-connections" ?
    Thanks in advance.

    Hello!
    I have the 5230 NAM version unlocked on AT&T. When I first got my device after I would run Nokia Email Program the internet connection would remain active no matter what until I rebooted the device. This issue was resolved after upgrading to the newest version of Nokia Email.
    My advice run any updates to your firmware and software. (pertaining to nokia messaging or email).
    Make sure that even if you are closing Nokia email you select - GO OFFLINE option as well.
    Best Wishes From The USA!
    JM

  • How can one use automatic panning effectively in captivate 8 ?

    I am trying to capture some screen sessions ina  software tool ( it is eclipse based, many out there will be familiar with eclipse) , and occasionally i would like to pan there  and zoom. there is an automatic setting in captivate 8, but i don;t see any examples of how to use it. i see that there are limits to what can be done automagocally, but adding everything afterwards is very time consuming.  i have added a discussion point from a related cap 7 discussion below. there should be awa y for a user to set the thresholds, so it works to suit the needs of the creator.
    thanks!
    3. Re: Automatic Panning
    Sivakumar Nagarajan Aug 21, 2013 9:37 AM (in response to aedoherty)
    Hi
    There have been some changes in the auto-panning behavior of Captivate across versions.
    The most note-worthy change being increase in the tolerance bounds beyond which auto-pan kicks in.
    In earlier versions, when the mouse moves beyond (approx) 1/4th the dimensions of the recording area away from the center of the recording area, auto-pan would get triggered.
    In recent versions, this tolerance limit has been increased to 1/2 of the dimensions of the recording area away from the center of the recording area. In other words, the mouse has to fall on the edges of or further away from the recording area. This has been done to reduce unwanted panning when mouse is well within the recording area.
    If this is unsuitable for you and you want the recording to involve a pan action when you move the mouse cursor to the menu item, you may reduce the height of the recordig area before you start recording. This way, when the mouse cursor reaches the menu item, it would fall outside the recording area and an auto-pan will get triggered.
    Please let us know if that worked
    Cheers
    Siva

    Hi,
    Check out this posting on my blog:
    [http://obiee-tips.blogspot.com/2009/09/obiee-security.html|http://obiee-tips.blogspot.com/2009/09/obiee-security.html]
    In this case the example is for org based security. However, you just need to change it so that you are checking whichever column in the row holds the owner of the row against a session variable which is intialised to hold the id of the logged in user.
    Regards,
    Matt

Maybe you are looking for

  • I need an Exorcist for my iPhone

    Hi, I've had an iPhone since the original one came out. A few months ago I upgraded to a 3GS and it has been fantastic until a couple of weeks ago when a poltergeist seems to have taken over it. First, it was just not recognized by my MacBook Pro. No

  • Avconvert: failed to create Export Session.  Check setup

    I'm trying to convert an mpeg file so its readable on my macbook pro, I have OS 10.7.5.  I right click the file and select Encode selected video file.  For setting I click 1080p.  The next window pops up: acconvert: failed to create an Export Session

  • IE 7 Not Adding Padding at Bottom of LIs as Nav Buttons

    At the test page, I want a 1 pixel border on the bottom and right of nav buttons (made from li elements). Works in some browsers, but not IE7. I added bottom padding to the <a> elements, but IE 7 neither applies the padding nor the border.

  • Pasted images always landing slightly off-center. Is there a fix?

    I'm editing individual frames of an animation sequence. I find that when I add the next frame (jpg) as a new layer, it always lands a few pixels off from where it should be. Every frame is exactly the same size (1920x1080) and when photoshop opens an

  • I can´t import to motion

    Hello: Since a couple of days ago I´m not able to import any sort of media to motion from my internal disks. When I´ve tried the colour wheel appears and I need to force quit. I´ve trash my preferences,repair permissions and sbin/fsck and also reinst