ID do artigo: 931626 - Última revisão: terça-feira, 12 de outubro de 2010 - Revisão: 1.0

Como ocultar e restringir o acesso à letra da unidade do cliente App-V (SoftGrid)

Dica do SistemaEste artigo aplica-se a um sistema operativo diferente do que está a utilizar. Foi desactivado o conteúdo do artigo, que pode não ser relevante para si.
ImportanteEste artigo contém informações sobre como modificar o registro. Certifique-se de que você faça backup do registro antes de modificá-lo. Certifique-se de que você sabe como restaurar o registo se ocorrer um problema. Para obter mais informações sobre como fazer backup, restaurar e modificar o registro, clique no número abaixo para ler o artigo na Base de dados de Conhecimento da Microsoft:
256986  (http://support.microsoft.com/kb/256986/ ) Descrição do registro do Microsoft Windows

Nesta página

Expandir tudo | Recolher tudo

INTRODUÇÃO

Este artigo descreve como ocultar e restringir o acesso à letra da unidade do cliente App-V (SoftGrid).

Mais Informações

Este artigo descreve como ocultar e restringir o acesso à letra da unidade do cliente App-V (SoftGrid) por meio de objetos de diretiva de grupo (GPO). As diretivas podem ser aplicadas quando a seqüência é criada, é atualizada ou for iniciada. Quando você iniciar as diretivas, você pode aplicar as diretivas no registro virtual, modificando o arquivo. OSD para importar um arquivo. reg ou um arquivo. vbs. Como alternativa, você pode usar o <registry>elemento.</registry>

ImportanteAs diretivas definidas no registro virtual têm precedência sobre as diretivas definidas no Registro local. Por exemplo, se o registro local está configurado para ocultar a unidade D, e se o registro virtual está configurado para ocultar a unidade P, apenas a unidade p será ocultada da App-V (SoftGrid)-ativada do aplicativo. É recomendável que você aplicar essas diretivas por meio de diretivas de domínio. Este artigo descreve como aplicar essas diretivas, quando você não usar as diretivas de domínio.

Os exemplos descritos neste artigo, ocultar e restringem o acesso à unidade p definindo os valores do registro para 10000 hexadecimal ou 65536 decimal.Para obter mais informações sobre o número hexadecimal ou decimal que é necessária para ocultar outras letras de unidade, clique no número abaixo para ler o artigo na Base de dados de Conhecimento da Microsoft:
231289  (http://support.microsoft.com/kb/231289/ ) Usando objetos de diretiva de grupo para ocultar unidades especificadas

Como usar o Editor do registro do seqüenciador

Para usar o Editor do registro do seqüenciador para aplicar as diretivas para o registro virtual, execute essas etapas.

AvisoSerious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
  1. During the monitoring phase of the installation wizard, start Registry Editor.
  2. Expand the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. Com o botão direitoExplorer, aponte paraNovoe, em seguida, clique emValor DWORD.
  4. ForNew Value #1, tipoNoDrives.
  5. Com o botão direitoNoDrivese, em seguida, clique emModificar.
  6. ForBase, selectHexadecimal. ForDados de valor, tipo10000e, em seguida, clique emOK.
  7. Com o botão direitoExplorer, aponte paraNovoe, em seguida, clique emValor DWORD.
  8. ForNew Value #1, tipoNoViewOnDrive.
  9. Com o botão direitoNoViewOnDrivee, em seguida, clique emModificar.
  10. ForBase, selectHexadecimal. ForDados de valor, tipo10000e, em seguida, clique emOK.
  11. Feche o Editor do registro.
  12. Clique emParar monitoramento, and then complete the wizard.
  13. Save the sequence.

How to use a .reg file from the App-V (SoftGrid) client

This procedure describes how to modify the .osd file to apply the policies to the virtual registry. Perform this procedure when you start the application by using the<script></script>
  1. Start Registry Editor.
  2. Expand the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. Com o botão direitoExplorer, aponte paraNovoe, em seguida, clique emValor DWORD.
  4. ForNew Value #1, tipoNoDrives.
  5. Com o botão direitoNoDrivese, em seguida, clique emModificar.
  6. ForBase, selectHexadecimal. ForDados de valor, tipo10000e, em seguida, clique emOK.
  7. Com o botão direitoExplorer, aponte paraNovoe, em seguida, clique emValor DWORD.
  8. ForNew Value #1, tipoNoViewOnDrive.
  9. Com o botão direitoNoViewOnDrivee, em seguida, clique emModificar.
  10. ForBase, selectHexadecimal. ForDados de valor, tipo10000e, em seguida, clique emOK.
  11. Com o botão direitoExplorer, clique emExport, and then save the .reg file.
  12. Feche o Editor do registro.
  13. Open the .reg file by using a text editor to verify that the contents appear as shown in the following example.
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoDrives"=dword:00010000
    "NoViewOnDrive"=dword:00010000
  14. Save the .reg file, and then exit the text editor.
  15. Open the .osd file by using a text editor.
  16. Enter the<script></script>
    <DEPENDENCY>
      <SCRIPT TIMING="PRE" EVENT="LAUNCH" PROTECT="TRUE" WAIT="TRUE">
        <HREF>%SystemRoot%\regedit.exe /s "PATH/FILENAME.reg"</HREF>
      </SCRIPT>
    </DEPENDENCY>
  17. Save the .osd file, and then exit the text editor.
The .reg file can reside in the sequence or in a remote network location. Make sure that the user who starts the application has access to the .reg file.

How to use a .vbs file from the App-V (SoftGrid) client

This procedure describes how to modify the .osd file to apply the policies to the virtual registry. Perform this procedure when you start the application by using the<script></script>
  1. Create a .vbs file that contains the following information.
    On Error Resume Next
    Dim WshShell
    Set WshShell = Wscript.CreateObject("wscript.shell")
    NoDrive = WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives")
    SetValue = WshShell.RegWrite ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives","65536","REG_DWORD")
    NoViewOnDrive = WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewOnDrive")
    SetValue = WshShell.RegWrite ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewOnDrive","65536","REG_DWORD")
    Set WshShell = nothing
  2. If you want to configure the .vbs file to determine whether the values already exist and to set the values only if they do not exist, create a .vbs file that has the following information.
    On Error Resume Next
    Dim WshShell
    Set WshShell = Wscript.CreateObject("wscript.shell")
    NoDrive = WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives")
    If NoDrive = "" Then
    SetValue = WshShell.RegWrite ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDrives","65536","REG_DWORD")
    End If
    NoViewOnDrive = WshShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewOnDrive")
    If NoViewOnDrive = "" Then
    SetValue = WshShell.RegWrite ("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoViewOnDrive","65536","REG_DWORD")
    End If
    Set WshShell = nothing
  3. Open the .osd file by using a text editor.
  4. Enter the<script></script>
    <DEPENDENCY>
      <SCRIPT TIMING="PRE" EVENT="LAUNCH" PROTECT="TRUE" WAIT="TRUE">
        <HREF>%SystemRoot%\system32\wscript.exe "PATH/FILENAME.vbs"</HREF>
      </SCRIPT>
    </DEPENDENCY>
  5. Save and then exit the .osd file.
The .vbs file can reside in the sequence or in a remote network location. Make sure that the user who starts the application has access to the .vbs file.

How to use the <registry> element from the App-V (SoftGrid) client</registry>

This procedure describes how to modify the .osd file to apply the policies to the virtual registry. Perform this procedure when you start the application by using the <registry> element. </registry>
  1. Open the .osd file by using a text editor.
  2. Enter the <registry> element and the child elements in the <virtualenv> element as shown in the following example.</virtualenv></registry>
    <VIRTUALENV>
      <REGISTRY>
        <REGKEY HIVE="HKCU" KEY="Software\Microsoft\Windows\CurrentVersion\Policies\Explorer">
          <REGVALUE REGTYPE="REG_DWORD" NAME="NoDrives">10000</REGVALUE>
          <REGVALUE REGTYPE="REG_DWORD" NAME="NoViewOnDrive">10000</REGVALUE>
        </REGKEY>
      </REGISTRY>
    </VIRTUALENV>
  3. Save the .osd file, and then exit the text editor.

A informação contida neste artigo aplica-se a:
  • Microsoft SoftGrid for Terminal Services
  • Microsoft SoftGrid for Windows Desktops
  • Microsoft Application Virtualization for Terminal Services 4.6
  • Microsoft Application Virtualization 4.6 for Windows Desktops
  • Microsoft Application Virtualization 4.5 for Terminal Services
  • Microsoft Application Virtualization 4.5 for Windows Desktops
Palavras-chave: 
kbhowto kbexpertiseinter kbmt KB931626 KbMtpt
Tradução automáticaTradução automática
IMPORTANTE: Este artigo foi traduzido por um sistema de tradução automática (também designado por Machine Translation ou MT), não tendo sido portanto traduzido ou revisto por pessoas. A Microsoft possui artigos traduzidos por aplicações (MT) e artigos traduzidos por tradutores profissionais, com o objetivo de oferecer em português a totalidade dos artigos existentes na base de dados de suporte. No entanto, a tradução automática não é sempre perfeita, podendo conter erros de vocabulário, sintaxe ou gramática. A Microsoft não é responsável por incoerências, erros ou prejuízos ocorridos em decorrência da utilização dos artigos MT por parte dos nossos clientes. A Microsoft realiza atualizações freqüentes ao software de tradução automática (MT). Obrigado.
Clique aqui para ver a versão em Inglês deste artigo: 931626  (http://support.microsoft.com/kb/931626/en-us/ )