Como posso definir o firefox como o navegador de internet padrão para todos os novos usuários?

2

Minha organização usa as VMs do VirtualBox do Windows 10 para testar nossos aplicativos internos. A maneira como fazemos isso é criando um OVA que já está conectado ao nosso domínio. Qualquer pessoa no domínio pode entrar nele. No entanto, nosso aplicativo inicia um único sinal no applet java pela Web.

Eu preciso forçar o FireFox como o padrão para todos os perfis de usuário. Quando a VM é exportada, definir o FireFox como o padrão só se aplica ao meu perfil, presumivelmente porque os outros perfis de usuário ainda não existem.

Estou pensando em atribuir um script VBS para modificar o registro no login para todos os usuários. Existe uma maneira mais elegante de fazer isso?

Obrigado

    
por Amorphous 03.12.2015 / 02:44

6 respostas

2

O que funcionou para mim foi o procedimento sugerido pelo @tyelford, que é semelhante àquele para tornar o navegador padrão do Chrome no Windows 10 . Infelizmente, o Firefox não é tão bom assim, então eu decidi copiá-lo aqui e adaptá-lo para o Firefox:

Make Firefox default browser on Windows 10

As an administrator you may need to configure Firefox as the default browser on computers in your domain. To set Firefox as the default browser on domain-joined computers running Microsoft® Windows 10® and above, you must:

  • create a default application association XML file or use the provided sample file
  • create a Group Policy Object (GPO)
  • set a default associations configuration file

Microsoft® TechNet® contains detailed information on how to generate default application associations files and how to use a group policy to set the default browser.

Create a default application association XML file

The default application association file is an XML file that associates a file type with an application. For example, if you associate .html or .htm files with the Firefox application, then by default Firefox is launched each time the user opens a html or htm file.

For domain-joined computers, you create a single shared XML file that automatically sets Firefox as the default browser application. You must place this file in a shared folder, on your server, that all of the domain-joined computers can access.

Note: If Firefox is not installed on the target computer, the file associations are not applied and users must choose an application when they open a link (http or https) or file (html or htm).

The following example (firefoxdefault.xml) shows how to set Firefox as the default browser to open html, htm, http, and https files or links:

<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
  <Association Identifier=".htm" ProgId="FirefoxHTML" ApplicationName="Firefox" />
  <Association Identifier=".html" ProgId="FirefoxHTML" ApplicationName="Firefox" />
  <Association Identifier=".shtml" ProgId="FirefoxHTML" ApplicationName="Firefox" />
  <Association Identifier=".xht" ProgId="FirefoxHTML" ApplicationName="Firefox" />
  <Association Identifier=".xhtml" ProgId="FirefoxHTML" ApplicationName="Firefox" />
  <Association Identifier="ftp" ProgId="FirefoxURL" ApplicationName="Firefox" />
  <Association Identifier="http" ProgId="FirefoxURL" ApplicationName="Firefox" />
  <Association Identifier="https" ProgId="FirefoxURL" ApplicationName="Firefox" />
</DefaultAssociations>

(esse arquivo que eu realmente usei usando meu computador)

Note: The default association policy is set at each login. The user can change an association after they login, but the change applies to that login session only. The association will be reset to the policy at the next login.

Create a Group Policy Object

The Group Policy Management console lets you create and manage Group Policy Objects (GPO) for your domain. These GPOs control the policies that are applied to all your domain-linked computers. After you create the GPO, you use security filtering to apply it to the computers in your domain.

In the following example, you create a GPO (Set Firefox as default browser) and apply it to computers in the firefoxforwork.com domain.

  1. Open the Group Policy Management Console. Go to Start > All programs > Administrative Tools > Group Policy Management.
  2. In the navigation pane, go to Group Policy Management > Domains.
  3. In the navigation pane, right-click on the firefoxforwork.com domain, and click Create a GPO in this domain, and Link it here...
  4. Type the name of the new GPO (in our example, the name is Set Firefox as default browser) and click OK.
  5. In the navigation pane, go to Group Policy Management > Domains > firefoxforwork.com > Group Policy Objects and select Set Firefox as default browser.
  6. In the Security Filtering pane, click Add.
  7. In the Select User, Computer, or Group window, type the name of the object you want to add, click Check Names (to verify the name you entered), and click OK. You can type Domain Computers to add all workstations and servers joined to this domain (as in the example below) or you can specify a different group of computers.
  8. The GPO now applies to all domain-linked computers.

Set a default associations configuration file

To set the default associations configuration file for domain-linked computers, you edit the related GPO on your windows server.

  1. Open the Group Policy Management Console. Go to Start > All programs > Administrative Tools > Group Policy Management.
  2. In the navigation pane, click Group Policy Management > Domains > firefoxforwork.com.
  3. Click the Linked Group Policy Objects tab to view all GPOs for this domain.
  4. Right-click on the GPO you want to select, and click Edit to open the Group Policy Management Editor. In this example, right-click on Set Firefox as default browser.
  5. In the Group Policy Management Editor, go to Computer Configuration > Policies > Administrative Template > Windows Components > File Explorer, and double-click Set a default associations configuration file.
  6. In the Set a default associations configuration file window, select the Enabled option.
  7. In the Options box, enter the location of your default application association XML file. This is the XML file that associates file types (such as .htm, .html, http, and https) with the Firefox application. This can be the Firefox provided sample XML file or one you created yourself.

Note: The file can’t be a local file on the server. It must be at a location that is accessible to every computer in the domain.

Verify your configuration

On your target computers (that is, the Active Directory domain-joined computers running Windows 10), you can verify that the GPO you created has been applied, and that the computer is using Firefox as the default browser.

The GPO is applied automatically when the policy is refreshed by the Windows Client, or you can run the GPUpdate.exe /force command to force a manual refresh at any time.

Note: After the policy is downloaded and applied, the computer must be rebooted in order for the policy to take effect.

  1. On a Windows Client, go to Windows > System32. Right-click rsop.msc and select run as administrator.
  2. Authenticate with administrator credentials and click Yes.
  3. Go to Computer Configuration > Administrative Templates > Windows Components > File Explorer to confirm that Set a default associations configuration file is available.
  4. Open the Set a default associations configuration file to confirm that the setting is enabled and that the XML file location is correct.
  5. When Firefox is set as the default browser, then all files with htm and html extensions use the Firefox icon.

Referência: Como tornar o navegador padrão do Chrome no Windows 10 - Ajuda do Chrome for Business e do Google for Education

Outras páginas que podem ser úteis:

por 09.05.2017 / 20:57
2

Eu definitivamente pensei demais nisso.

Eu apenas atribuí o seguinte em cada login:

firefox.exe -silent -nosplash -setDefaultBrowser
    
por 04.12.2015 / 20:15
2

Para copiar todas as associações atuais de aplicativos do usuário, como navegador, para qualquer novo usuário , você pode fazer:

DISM /Online /Export-DefaultAppAssociations:"%TEMP%\AppAssoc.xml"
DISM /Online /Import-DefaultAppAssociations:"%TEMP%\AppAssoc.xml"
DEL /q "%TEMP%\AppAssoc.xml"

Observação: a importação não afeta os usuários existentes.

Para aqueles que, como eu, tentam fazer um sysprep, você pode fazer a partir do seu perfil padrão:

DISM /Online /Export-DefaultAppAssociations:"%WINDIR%\System32\Sysprep\AppAssoc.xml"

Adicione o código folling em "% WINDIR% \ Setup \ Scripts \ SetupComplete.cmd ":

DISM /Online /Import-DefaultAppAssociations:"%WINDIR%\System32\Sysprep\AppAssoc.xml"

O script "SetupComplete.cmd" será executado antes da criação do primeiro usuário. (Consulte Adicionar um script personalizado ao Windows Configuração )

    
por 16.09.2017 / 07:14
1

Fiz isso com a política de grupo de domínio, mas também pode funcionar com a política de grupo de computadores local nesse único computador.

Configure suas associações de aplicativos padrão

Vá para Programas padrão no Windows e altere os aplicativos que deseja usar como padrão. No seu caso, defina o Firefox para ter todos os seus padrões. Você também pode definir outros que possam ser convenientes para suas necessidades.

Exporte as associações de aplicativos padrão para um arquivo

Abra um prompt de comando como administrador e digite o seguinte comando

dism /Online /Export-DefaultAppAssociations:\127.0.0.1\c$\temp\Apps.xml

Altere o local de saída do arquivo para algum lugar que faça sentido para você.

Defina as associações de aplicativos padrão por meio da política de grupos

Na política de grupo, vá para

Computer Config --> Policies --> Admin Template --> Windows Components --> File Explorer --> Set a default associations configuration file

Defina para ativar e colocar no local do arquivo onde o local do arquivo será local para o computador, por exemplo: C: \ temp \ Apps.xml

Abra o CMD como administrador e digite gpupdate /force , reinicie seu PC e veja o que você obtém.

Para abrir a política de grupos locais

Abra um prompt de execução (tecla Windows + R) e digite mmc

No MMC, vá para Arquivo - > Adicionar / Remover Snap In e clique em Objeto de Política de Grupo e, em seguida, clique em Adicionar & gt ;. Ele preenche o Computador Local e clica em Concluir. Agora você pode editar a política de grupo local nessa máquina.

    
por 03.12.2015 / 04:03
1

O XML acima não funcionará mais! Há uma atualização da excelente documentação de Antonio:

O Firefox atualmente (versão 60 a partir de agora) não usará mais ProgId="FirefoxURL" ou "FirefoxHTML" mas ProgId="FirefoxURL-308046B0AF4A39CB" ou FirefoxHTML-308046B0AF4A39CB.

Por favor, tenha isso em mente! Só encontrei uma dica no link sobre esse problema.

É assim que minhas associações padrão se parecem

<Association Identifier=".pdf" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier=".htm" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier=".html" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier=".shtml" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier=".xht" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier=".xhtml" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier="ftp" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier="http" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier="https" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />
<Association Identifier=".url" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />

Caso isso mude com versões futuras do Firefox, por favor, configure-o como navegador padrão manualmente e execute

dism /online /Export-DefaultAppAssociations:"c:\DefaultAppAssociations.xml"

para verificar o ProgId atual válido.

    
por 08.06.2018 / 11:22
0

Você pode fazer um GPO para forçar aplicativos padrão para computadores em um determinado contêiner do AD.

O GPO está em Configuração do Computador - > Políticas - > Modelos Administrativos - > Componentes do Windows - > Gerenciador de Arquivos.

Ative "Definir um arquivo de configuração de associações padrão" e aponte-o para o arquivo xml que contém sua configuração padrão.

Para criar o arquivo XML, a maneira mais fácil é simplesmente definir seus padrões em um sistema e depois exportá-los. Use o arquivo exportado (exclua o que você não deseja forçar) para definir os novos padrões de GPO. Abra um prompt de comando elevado e execute

dism / online /Export-DefaultAppAssociations:"c:\DefaultAppAssociations.xml "

Isso fará com que o arquivo seja apontado no seu GPO. Certifique-se de colocá-lo em um local que seus usuários possam acessar.

link

    
por 22.02.2017 / 17:29