Configuring Security for Visual Studio Analyzer on Windows 95
Visual Studio Analyzer ships with security open. You can increase the security settings to reflect your site's needs. To increase the security settings, you need to complete the following steps:
Restrict access to the Visual Studio Analyzer server to specific users.
Restrict access to the Visual Studio Analyzer client.
Edit the registry on the Visual Studio Analyzer server to enable security checking.
Edit the registry on the Visual Studio Analyzer client to enable security checking.
These steps are described in the following procedures.
Note: You need to configure security on a per-machine basis for any machine on which you are running the Visual Studio Analyzer server or client.
The procedures for restricting access all use DCOMCNFG, a configuration utility intended for configuring DCOM-specific settings in the registry. DCOMCNFG is shipped with the Windows 95 DCOM Refresh but is not added to the Start menu or to any groups. You must start DCOMCNFG using the Run command on the Start menu.
For more information on using DCOMCNFG to configure access and launch permissions, search for "DCOMCNFG" in MSDN Library Visual Studio 6.0.
To restrict access to the Visual Studio Analyzer server to specific users
Start DCOMCNFG, if necessary.
On the Applications tab, select MSVSA Local Event Concentrator Class (scroll down if necessary).
Click Properties.
Click the Security tab.
Select Use custom access permissions and click Edit.
The Access Permissions dialog box appears. This dialog box lists the known users who currently have (or are denied) access to the machine. Click Add to add users to the list; click Remove to remove users.
Click Add to add the specific users to whom you want to allow access to the Visual Studio Analyzer server on this machine.
The Add Access Permissions dialog box appears.
Select a user ID in the Name box, then click Grant Access to allow access or Deny Access to deny access to that user. The user you selected is added to the corresponding list. When you are satisfied with the access list, click OK.
Click OK.
To restrict access to the Visual Studio Analyzer client
You need to perform this procedure on any machine where you are running the Visual Studio Analyzer client. This procedure ensures that the machine will connect to legitimate Visual Studio Analyzer servers only.
Start DCOMCNFG, if necessary.
On the Applications tab, select Microsoft Development Environment (scroll down if necessary).
Click Properties.
Click the Security tab.
Select Use custom access permissions and click Edit.
Make sure that the user ID you specified for the Visual Studio Analyzer server to run under is included in the list of users. If it is not, click Add to add it, and then add any other user IDs for machines to which you plan to connect.
Click OK, then click OK twice more to stop DCOMCNFG.
To edit the registry to enable security checking on the Visual Studio Analyzer server
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0.
Click Edit, point to New, and click Key.
Replace the supplied name of the key with Analyzer and press Enter.
Select Analyzer.
Click Edit, point to New, and click Key.
Replace the supplied name of the key with Security and press Enter.
Click Edit, point to New, and click DWORD Value.
Replace the supplied name of the value with Enable.
Double-click Enable to display the Edit DWORD Value dialog box.
Type 1 in the Value data box and click OK.
To edit the registry to enable security checking on the Visual Studio Analyzer client
Start regedit.
Navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\VisualStudio\6.0 and select 6.0.
Click Edit, point to New, and click DWORD Value.
Replace the supplied name of the value with EnableSecurity and press Enter.
Double-click EnableSecurity to display the Edit DWORD Value dialog box.
Type 1 in the Value data box and click OK.
Connecting to Microsoft® Windows® 95 Machines Running Visual Studio Analyzer
If you want to connect to a remote Microsoft® Windows® 95 machine running Visual Studio Analyzer, you must run DCOMCNFG on the remote machine to change your DCOM settings to allow remote connections. Before you can run DCOMCNFG on any machine, you must set the machine's access control to user level (DCOMCNFG requires user-level access control in order to run). You should need to run DCOMCNFG one time only to change these settings.
Important Changing access control to user level on a Windows 95 machine can have far-reaching consequences. For example, it will reset all of your current share permissions and you will need to restore those permissions manually. However, you cannot run Visual Studio Analyzer on a remote Windows 95 machine without changing access control to user level. Make sure you check with your system administrator before you change access control.
To set access control to user level
Click Start, point to Settings, and then click Control Panel.
Double-click the Network icon.
Click the Access Control tab.
Click User-level access control and enter your domain name in the box beneath.
Click OK.
To allow remote connections
Click Start, then click Run.
In the Open box, type Dcomcnfg and click OK.
Click the Default Security tab.
Select the Enable Remote Connection check box.
Click OK.
To allow access to your Windows 95 machine, you must also run the Visual Studio Analyzer Server each time you want to allow remote connections. See Starting the Visual Studio Analyzer Server on Windows 95 for steps on how to start the Visual Studio Analyzer Server.
Visual Studio Analyzer ships with security open. In this way, you can adjust the security settings to reflect your site's needs.
On Windows 95, you might find a situation where no components that generate Visual Studio Analyzer events are listed for the machine to which you are connected, even though those components exist and are registered. To work around this problem, you need to install the Remote Registry Service on that machine. To use the Remote Registry Service, you must be using user-level security and you must have the Remote Administration option enabled.
To enable the Remote Administration option
Click Start, point to Settings, and then click Control Panel.
Double-click the Network icon.
Click File And Print Sharing.
Select both check boxes on the File and Print Sharing dialog box, then click OK.
Double-click the Passwords icon.
Click the Remote Administration tab.
Select the Enable remote administration of this server check box.
Set a password for Remote Administration, then click OK.
Note If you are using user-level security, you do not receive a password dialog box. Instead, add users to the list by clicking Add.
To install the Remote Registry Service
Click Start, point to Settings, and then click Control Panel.
Double-click the Network icon.
Click Add, click Service, click Add, and then click Have Disk.
In the Copy Manufacturer's Files From box, type the path to the Admin\Nettools\RemoteReg folder on your Windows 95 CD-ROM, then click OK.
When the Microsoft Remote Registry service has been added to the list of installed components, click OK. Restart your computer when you are prompted to do so.