Announcement

Collapse
No announcement yet.

reg pol question.

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • reg pol question.

    I am trying to use RegPol to deploy proxy settings. the only problem is where i specify the proxy using the proxy server key i would put for example 1.1.1.1:8080 if i put the : it starts from that and takes whats after it. so in the reg it would put 8080". how can i get it to import the whole key starting start at the first character and not the :. if i run the reg file manually it works fine. any idea's?
    MCSE 2000\2003, A+
    00000001-00000011-00000011-00000111

  • #2
    still woudln't mind knowing the answer but i found a way to do it with a vb script. in case anyone else needs to know how here it is.

    Const HKEY_CURRENT_USER = &H80000001

    strComputer = "."
    Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")

    strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Interne t Settings"

    strValueName = "ProxyEnable"
    dwValue = 1
    objRegistry.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, strValueName, dwValue

    strValueName = "ProxyServer"
    strValue = "ProxyServerName:8080"
    objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue

    strValueName = "ProxyOverride"
    strValue = "<local>"
    objRegistry.SetStringValue HKEY_CURRENT_USER, strKeyPath, strValueName, strValue
    MCSE 2000\2003, A+
    00000001-00000011-00000011-00000111

    Comment


    • #3
      just a question... you can't use a grouppolicy to set this up?
      Marcel
      Technical Consultant
      Netherlands
      http://www.phetios.com
      http://blog.nessus.nl

      MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
      "No matter how secure, there is always the human factor."

      "Enjoy life today, tomorrow may never come."
      "If you're going through hell, keep going. ~Winston Churchill"

      Comment


      • #4
        that was my first idea but them problem is we have 2 different sites and they both use different proxys and since the site aren't seperated into different ou's we had to do it using the secuirty groups.
        MCSE 2000\2003, A+
        00000001-00000011-00000011-00000111

        Comment


        • #5
          you can make 2 different policies and give only the security group you like permissions to it?
          Marcel
          Technical Consultant
          Netherlands
          http://www.phetios.com
          http://blog.nessus.nl

          MCITP(EA, SA), MCSA/E 2003:Security, CCNA, SNAF, DCUCI, CCSA/E/E+ (R60), VCP4/5, NCDA, NCIE - SAN, NCIE - BR, EMCPE
          "No matter how secure, there is always the human factor."

          "Enjoy life today, tomorrow may never come."
          "If you're going through hell, keep going. ~Winston Churchill"

          Comment

          Working...
          X