ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Creating a Shortcut for Chrome Incognito with Proxy Settings

    IT Discussion
    chrome shortcuts icognito porn mode proxy
    6
    35
    4.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wrx7mW
      wrx7m
      last edited by wrx7m

      OK. Finally. It pops up briefly and closes as the Chrome windows opens. The bat file would be -

      @ECHO OFF
      start "" "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito --proxy-server="http://squid.domain.com:3128" --user-data-dir="%LOCALAPPDATA%\Google\ChromeProxy01\User Data"
      Exit
      

      If anyone can figure out a way to get a regular shortcut to run with those parameters, I would appreciate that.

      1 Reply Last reply Reply Quote 0
      • wrx7mW
        wrx7m
        last edited by wrx7m

        Managed to create a shortcut manually with the Windows wizard. Right-click>New shortcut. I modified the syntax to exlude the quotes around the proxy server and removed the http://. This is the syntax I put in the path field:

        "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito --proxy-server=squid.domain.com:3128 --user-data-dir="%LOCALAPPDATA%\Google\ChromeProxy01\User Data"
        

        After finishing, it automatically filled in the "Start in" field with

        "C:\Program Files (x86)\Google\Chrome\Application"
        

        It also grabbed the Chrome icon.

        Unfortunately, I still can't get the shortcut created using GPO. It just won't create it.

        1 Reply Last reply Reply Quote 0
        • wrx7mW
          wrx7m
          last edited by

          I guess I can create a logon script that runs a robocopy to copy the shortcuts from a share to the users' desktops.

          1 Reply Last reply Reply Quote 0
          • ObsolesceO
            Obsolesce
            last edited by

            Why are you shortcutting to a script and not Chrome shortcut with those arguments?

            wrx7mW 1 Reply Last reply Reply Quote 0
            • wrx7mW
              wrx7m @Obsolesce
              last edited by wrx7m

              @Obsolesce said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

              Why are you shortcutting to a script and not Chrome shortcut with those arguments?

              Windows wouldn't let me create a shortcut with the initial arguments in that syntax. Per the second to last post, I have since been able to create the proper syntax for the shortcuts. I had to remove the http:// and quotes around the proxy server option.

              My problem now lies in how best to deploy the Chrome shortcuts. For whatever reason, a GPO doesn't create the shortcut. The same GPO will create a shortcut to the script, just not the specialized Chrome shortcut.

              ObsolesceO 1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce @wrx7m
                last edited by

                @wrx7m said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                @Obsolesce said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                Why are you shortcutting to a script and not Chrome shortcut with those arguments?

                Windows wouldn't let me create a shortcut with the initial arguments in that syntax. Per the second to last post, I have since been able to create the proper syntax for the shortcuts. I had to remove the http:// and quotes around the proxy server option.

                My problem now lies in how best to deploy the Chrome shortcuts. For whatever reason, a GPO doesn't create the shortcut. The same GPO will create a shortcut to the script, just not the specialized Chrome shortcut.

                SaltStack would deploy it with its eyes closed and no arms or legs.

                wrx7mW 1 Reply Last reply Reply Quote 0
                • wrx7mW
                  wrx7m @Obsolesce
                  last edited by

                  @Obsolesce Someday I will get to deploying salt stack. #pipedreams #onemanarmy

                  scottalanmillerS black3dynamiteB 2 Replies Last reply Reply Quote 1
                  • scottalanmillerS
                    scottalanmiller @wrx7m
                    last edited by

                    @wrx7m said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                    @Obsolesce Someday I will get to deploying salt stack. #pipedreams #onemanarmy

                    It's So fast to deploy. Totally worth it.

                    1 Reply Last reply Reply Quote 0
                    • wrx7mW
                      wrx7m
                      last edited by

                      I tried getting one going a couple years ago and still have a dormant VM on one of my hosts.

                      1 Reply Last reply Reply Quote 0
                      • wrx7mW
                        wrx7m
                        last edited by wrx7m

                        Now that the bulk of this project is done, I might be able to dedicate some more time to getting Saltstack going. Although, I just found out they are planning an e-commerce site launch for one of our brands and didn't include me in the initial phases. #ThisPlace

                        1 Reply Last reply Reply Quote 0
                        • black3dynamiteB
                          black3dynamite @wrx7m
                          last edited by

                          @wrx7m said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                          @Obsolesce Someday I will get to deploying salt stack. #pipedreams #onemanarmy

                          SaltStack is awesome for a one man army.

                          scottalanmillerS 1 Reply Last reply Reply Quote 1
                          • scottalanmillerS
                            scottalanmiller @black3dynamite
                            last edited by

                            @black3dynamite said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                            @wrx7m said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                            @Obsolesce Someday I will get to deploying salt stack. #pipedreams #onemanarmy

                            SaltStack is awesome for a one man army.

                            The fewer people you have, the more important efficiency is!

                            wrx7mW 1 Reply Last reply Reply Quote 0
                            • wrx7mW
                              wrx7m @scottalanmiller
                              last edited by

                              @scottalanmiller I setup a fedora server last night and started installing salt.

                              ObsolesceO 1 Reply Last reply Reply Quote 0
                              • ObsolesceO
                                Obsolesce @wrx7m
                                last edited by

                                @wrx7m said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                                @scottalanmiller I setup a fedora server last night and started installing salt.

                                What happened? Dnf install salt-master got hung up and didn't finish?

                                wrx7mW 1 Reply Last reply Reply Quote 0
                                • wrx7mW
                                  wrx7m @Obsolesce
                                  last edited by wrx7m

                                  @Obsolesce said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                                  @wrx7m said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                                  @scottalanmiller I setup a fedora server last night and started installing salt.

                                  What happened? Dnf install salt-master got hung up and didn't finish?

                                  lol - I installed it but still need to configure it.

                                  1 Reply Last reply Reply Quote 0
                                  • wrx7mW
                                    wrx7m
                                    last edited by wrx7m

                                    Still can't get these GPP to work, although, I am now getting an error in the GPR- 0x80070002
                                    d3c9f8ff-5b84-49ab-af33-055307154c2b-image.png

                                    1 Reply Last reply Reply Quote 0
                                    • wrx7mW
                                      wrx7m
                                      last edited by

                                      I am trying to see if I can use PS to create the shortcuts. Not sure how to get this path to work with the quotes it needs.

                                      "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito --proxy-server=squid1.domain.com:3128 --user-data-dir="%LOCALAPPDATA%\Google\Squid1\User Data"
                                      

                                      This is the template I am using.

                                      # Create a Shortcut with Windows PowerShell
                                      $TargetFile = "$env:SystemRoot\System32\notepad.exe"
                                      $ShortcutFile = "$env:Public\Desktop\Notepad.lnk"
                                      $WScriptShell = New-Object -ComObject WScript.Shell
                                      $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
                                      $Shortcut.TargetPath = $TargetFile
                                      $Shortcut.Save()
                                      
                                      FiyaFlyF 1 Reply Last reply Reply Quote 0
                                      • FiyaFlyF
                                        FiyaFly @wrx7m
                                        last edited by FiyaFly

                                        @wrx7m said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                                        I am trying to see if I can use PS to create the shortcuts. Not sure how to get this path to work with the quotes it needs.

                                        "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --incognito --proxy-server=squid1.domain.com:3128 --user-data-dir="%LOCALAPPDATA%\Google\Squid1\User Data"
                                        

                                        This is the template I am using.

                                        # Create a Shortcut with Windows PowerShell
                                        $TargetFile = "$env:SystemRoot\System32\notepad.exe"
                                        $ShortcutFile = "$env:Public\Desktop\Notepad.lnk"
                                        $WScriptShell = New-Object -ComObject WScript.Shell
                                        $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
                                        $Shortcut.TargetPath = $TargetFile
                                        $Shortcut.Save()
                                        

                                        Took me a minute, but got it working. The template you are using doesn't account for arguments. Give this a shot:

                                        $TargetFile = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
                                        $args = '--incognito --proxy-server=squid1.domain.com:3128 --user-data-dir="%LOCALAPPDATA%\Google\Squid1\User Data"'
                                        $ShortcutFile = "$env:UserProfile\Desktop\chrome1.lnk"
                                        $WScriptShell = New-Object -ComObject WScript.Shell
                                        $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
                                        $Shortcut.TargetPath = $TargetFile
                                        $Shortcut.Arguments = $args
                                        $Shortcut.Save()
                                        
                                        wrx7mW 1 Reply Last reply Reply Quote 2
                                        • wrx7mW
                                          wrx7m @FiyaFly
                                          last edited by

                                          @FiyaFly said in Creating a Shortcut for Chrome Incognito with Proxy Settings:

                                          $TargetFile = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
                                          $args = '--incognito --proxy-server=squid1.domain.com:3128 --user-data-dir="%LOCALAPPDATA%\Google\Squid1\User Data"'
                                          $ShortcutFile = "$env:UserProfile\Desktop\chrome1.lnk"
                                          $WScriptShell = New-Object -ComObject WScript.Shell
                                          $Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
                                          $Shortcut.TargetPath = $TargetFile
                                          $Shortcut.Arguments = $args
                                          $Shortcut.Save()

                                          The arguments is what was needed. Thanks!

                                          1 Reply Last reply Reply Quote 0
                                          • wrx7mW
                                            wrx7m
                                            last edited by wrx7m

                                            Circling back to GPP. Thanks to @FiyaFly , who was able to help me out with the syntax for the fields. Do not use quotes in the target or start in paths.
                                            Target Path:

                                            C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
                                            

                                            Arguments:

                                            --incognito --proxy-server=squid1.domain.com:3128 --user-data-dir="%LOCALAPPDATA%\Google\Squid1\User Data"
                                            

                                            Start in:

                                            C:\Program Files (x86)\Google\Chrome\Application\
                                            

                                            I also used the create option and desktop (standard, not all users desktop).

                                            1 Reply Last reply Reply Quote 2
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post