Applications Registry Secrets
Table of contents
III-170 Do you want to limit the maximum number of user connections your Web service allows? This registry entry lets you control how many people can access your Web server at a given time. You can set it up to send a message to the client that was refused access. You can specify the content of this message in the AccessDeniedMessage value.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\W3SVC\Parameters

Add the following value under the Parameters key:

Value Name: MaxConnections
Data Type: REG_DWORD
Value: 0x186a0

Restart the service for this value to take effect.

III-171 This entry sets the message displayed when a user is denied a connection to your Web server.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\W3SVC\Parameters

Add the following value under the Parameters key:

Value Name: AccessDeniedMessage
Data Type: REG_SZ
Value: < string value >

Restart the service for this change to take effect.

III-172 Have you ever needed to change the location of the virtual root directories that IIS installs for its various services? These registry entries let you change the virtual roots for the main Web directory, the admin directory, the scripts directory, and others.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots
Value Name: /:
Data Type: REG_SZ
Value: C:\InetPub\wwwroot,1

III-173 Hive: HKEY_LOCAL_MACHINE
  Key: System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots
  Value Name: /iisadmin
  Data Type: REG_SZ
  Value: C:\NTS40\System32\inetsrv\iisadmin,,1

III-174 Hive: HKEY_LOCAL_MACHINE
  Key: System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots
  Value Name: /Scripts
  Data Type: REG_SZ
  Value: C:\InetPub\scripts,,1

III-175 Hive: HKEY_LOCAL_MACHINE
  Key: System\CurrentControlSet\Services\W3SVC\Parameters\ VirtualRoots
  Value Name: /srchadm
  Data Type: REG_SZ
  Value: C:\InetPub\wwwroot\srchadm,,1

The value after the path corresponds to the permission level. A value of 1 gives read-only permission; a value of 4 gives execute permission. A value of 5 gives both read and execute permission.

III-176 If you have an IIS-based Website and want to turn on server caching, change this entry.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: DisableMemoryCache
Data Type: REG_DWORD
Value: 0

The default value is 0, which disables server caching. Changing it to 1 enables server caching. Restart the IIS service for these changes to take effect.

III-177 If your site has heavy traffic and you are trying to squeeze every ounce of performance out of your machines, try this registry entry to speed things up a bit.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: ListenBackLog
Data Type: REG_DWORD
Value: 50

This value can range from 1 to infinity. A value of 50 works well for sites with heavy traffic.

III-178 You have many Web users with user accounts from one particular domain who continually forget to add the < domainname > parameter in front of their user names when they try to log on. To change the default logon domain so that they’ll log in even when they forget to specify the domain name, change this registry entry.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\W3SVC\Parameters

Add the following value under the Parameters key:

Value Name: DefaultLogonDomain
Data Type: REG_SZ
Value: Domain Name

Restart the service for this value to take effect.

III-179 When you install IIS, it creates an anonymous user, generally in the form of IUSR_machinename. To change that user ID, change these entries.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\W3SVC\Parameters

Add the following value under the Parameters key:

Value Name: AnonymousUserName
Data Type: REG_SZ
Value: valid user name

III-180 Change this value as well.

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\InetStp
Value Name: AnonymousUser
Data Type: REG_SZ
Value: user_name

Stop and start the IIS service for these changes to take effect.

III-181 You can customize the default help that comes with IIS to include instructions that are specific to your Web site. This registry entry shows you the location for the Help file for InetManager; it’s an HTML document, so you can modify it with standard tools.

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\InetMgr\Parameters
Value Name: HelpLocation
Data Type: REG_SZ
Value: iisadmin\htmldocs\inetdocs.htm

III-182 Are your users complaining of interrupted file transfers? Increasing the value of this registry parameter can help alleviate these symptoms. This value determines how long your server tries to transfer a file to a user before killing the file. The default value is 1000.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: MinFileKbSec
Data Type: REG_DWORD
Value: 1000

Here is how this value works. The server establishes a timeout value based on the following formula: The timeout equals the timeout value specified in the Internet Service Manager plus the size of the file being transferred divided by MinFileKbSec registry key.

III-183 If you run a tight ship and have several other applications running on your Web machine, you may want to investigate this parameter. It lets you specify how many threads the server keeps ready to handle input/output requests even when there is no activity. The default is 86,400 seconds, or 24 hours, which keeps threads active all the time. You can adjust this parameter according to your needs.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: ThreadTimeout
Data Type: REG_DWORD
Value: 86400 (24 hours)

III-184 Problem: You just switched to IIS 3.0 and you’re busy creating Active Server pages left and right. Within minutes of deploying your Active Server pages, you’re flooded with e-mail. Apparently, Active Server is setting cookies and your users don’t like it. The following registry modification fixes this problem.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\W3SVC\ASP\Parameters
Value Name: AllowSessionState
Data Type: REG_DWORD
Value: 0

Restart your Web machine — and presto, no more cookies.

III-185 If your log files are particularly large, you might try adjusting this parameter in the registry. It gives you control over how much log data the system caches before it writes to the log file. Decreasing this parameter causes it to write more frequently; increasing it causes it to write less frequently.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: LogFileBatchSize
Data Type: REG_DWORD
Value: 64

The default value is 64 K. Restart the service for any change to take effect.

III-186 If you have a lot of users on your Web site who log on with a user account (not just via anonymous), this registry parameter can help speed access to your system. It determines whether IIS caches security information about a particular file object when it retrieves it and therefore doesn’t need to check the file for subsequent users. The default value is 0, which disables security descriptor caching. A value of 1 enables security descriptor caching.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: CacheSecurityDescriptor
Data Type: REG_DWORD
Value: 1

III-187 To improve the performance of IIS by allocating more memory to cache, change this registry entry.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: MemoryCacheSize
Data Type: REG_DWORD
Value: 3072000

The default value is 3072000, or 3 MB. Valid values for this entry range from 0 to 4294967295 bytes. You must have sufficient RAM on your computer to accommodate your setting. Restart the service for this change to take effect.

III-188 Do you create a lot of pages dynamically on your Web site (who doesn’t anymore)? You may want to adjust this parameter so that objects don’t stay in cache too long.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: ObjectCacheTTL
Data Type: REG_DWORD
Value: 30

The value specifies the number of seconds any object stays in the cache; 30 seconds is the default value. If an object is not accessed during this time, it is removed from the cache memory. If your system is constrained by limited memory, reducing the value causes the system to use less memory.

III-189 If you have a lot of users with individual accounts accessing your system, changing this value should improve your performance, too.

Hive: HKEY_LOCAL_MACHINE
Key: System\CurrentControlSet\Services\InetInfo\Parameters

Add the following value under the Parameters key:

Value Name: UserTokenTTL
Data Type: REG_DWORD
Value: 900

The security information for each user helps create a user token on the server that is used to access files or other resources. The token is cached so that verification takes place only the first time the account is accessed (or until the token falls out of the cache). This value determines in seconds how long the token remains in cache. The default is 900 seconds (15 minutes).


INTERNET EXPLORER 3.0

III-190 To change the default download path for Internet Explorer 3.0 on any machine (even a remote machine), use this registry value.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\InternetExplorer

Change the Value for DownloadDirectory under the InternetExplorer key.

Value Name: DownloadDirectory
Data Type: REG_SZ
Value: < fully qualified path and directory >

Restart Internet Explorer for the changes to take effect.

III-191 Are you tired of looking at the same old boring Times New Roman font in Internet Explorer? This example changes the default font from Times New Roman to Wide Latin. Changing this entry changes all references to the default font in your style sheets and thus in Explorer.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Internet Explorer\Styles
Value Name: IEPropFontName
Data Type: REG_SZ
Value: Wide Latin

III-192 Problem: You have the same problem with boring fonts, but you don’t want to just change fonts. Instead, you want certain headers to be bold and others to be italic. You need to modify the style sheets Internet Explorer uses and then change the default style sheet. First, let’s modify the style sheets.

Hive: HKEY_LOCAL_MACHINE
Key: Software\Microsoft\Internet Explorer\Styles

Each Style sheet has the following thirteen parts:

Style_Sheet_Name_Address_font
Style_Sheet_Name_BlockQuote_font
Style_Sheet_Name_H1_font
Style_Sheet_Name_H2_font
Style_Sheet_Name_H3_font
Style_Sheet_Name_H4_font
Style_Sheet_Name_H5_font
Style_Sheet_Name_H6_font
Style_Sheet_Name_Listing_font
Style_Sheet_Name_Normal_font
Style_Sheet_Name_Plain Text_font
Style_Sheet_Name_Pre_font
Style_Sheet_Name_XMP_font

Each font has a value in the following format:

Style_Sheet_Name_html_type:REG_SZ:Fontname,Bold Toggle,Font Size,Italic Toggle,Underline Toggle.

In our example, for the Style Sheet SerifSmallest, we change Header 3 to Wide Latin and Header 4 to Wide Latin not bold with a size of 12 points.

Value Name: SerifSmallest_H3_font
Data Type: REG_SZ
Value: Wide Latin,Bold,10,NoItalic,NoUnderline
Value Name: SerifSmallest_H4_font
Data Type: REG_SZ
Value: Wide Latin,NoBold,12,NoItalic,NoUnderline

III-193 Now we change Internet Explorer’s default style sheet.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Internet Explorer\Styles
Value Name: Default_Style_Sheet
Data Type: REG_SZ
Value: SerifSmallest

If you have Internet Explorer running, exit it and reload. Your new style sheet is in place.

III-194 If you’re having trouble finding Web sites, you can use the autosearch function in Internet Explorer 3.0 to help you. Type go in the address bar, followed by some keywords that describe what you are looking for; Internet Explorer starts searching using its default search engine, Yahoo! To change the search engine, modify the following registry key.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Internet Explorer\SearchUrl
Value Name: Default
Data Type: REG_SZ
Value: home.microsoft.com/access/autosearch.asp?p=%s

Here are the values for some popular search engines:

Excite www.excite.com/search.gw?search=%s
AltaVista www.altavista.digital.com/cgi-bin/query?pg=q&q=%s
Magellan searcher.mckinley.com/searcher.cgi?query=%s
InfoSeek guide-p.infoseek.com/Titles?qt=%si
Lycos www.lycos.com/cgi-bin/pursuit?query=%s
Yahoo! (plain search) search.yahoo.com/bin/search?p=%s
Yahoo! (IE autosearch) msie.yahoo.com/autosearch?p=%si

III-195 To change the background of Internet Explorer’s toolbar, change this registry entry.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Internet Explorer\Toolbar

Add the following value:

Value Name: BackBitmap
Data Type: REG_SZ
Value: < fully qualified path and filename of any bitmap file >

Restart Internet Explorer for these values to take effect.

III-196 Do you sometimes get that annoying blank page when you bring up Internet Explorer? To change it to something meaningful other than the ever-popular blank.htm, change this entry.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Internet Explorer\Main
Value Name: Local Page
Data Type: REG_SZ
Value: D:\<system root>\System32\blank.htm

The default value is listed above. Change it to any fully qualified path and file name. Restart Internet Explorer for this value to take effect.

III-197 Internet Explorer displays the most recent addresses in the Address box below the toolbar. This registry entry shows you where these values are stored.

Hive: HKEY_CURRENT_USER
Key: Software\Microsoft\Internet Explorer\TypedURLs
Value Name: Url(n) where n is a number. Example Url1, Url2 etc.
Data Type: REG_SZ
Value: any valid internet address. Example http://www. winntmag.com

You can delete values from this registry key as well as add them. Restart Internet Explorer for any changes to take effect.


MACAFEE NETSHIELD

III-198 You’ve installed MacAfee Netshield 2.5 for Windows NT and your users are having problems logging on. Both Windows 95 and Windows NT users receive the same error message at logon: “Not enough server storage is available to process this command.” Windows for Workgroup users get a different error message: “Path not found.” In either case, error #2011 is logged in the event log. This registry value should fix this problem for all these users.

Hive: HKEY_LOCAL_MACHINE
Key: CurrentControlSet\Services\LanmanServer

Add the value IRPStacksize

Value Name: IRPStackSize
DataType: REG_DWORD
Value: 5

The value is the amount of memory, in 36-byte segments, set aside for the Input/Output Request Stack. The default value is 4; change it to 5. The range of valid values is 1 to 12.


SQL ANYWHERE 32

III-199 If you use SQL Server Anywhere and are connecting your 16-bit client application to either SQL Anywhere’s 32-bit client or a 32-bit standalone server, you need to make sure that the following registry entries exist. If you are having problems connecting, checking these entries is a good place to start.

Hive: HKEY_CURRENT_USER
Key: Software\ODBC\ODBC.INI\< datasource name >
Value Name: AutoStop
Data Type: REG_SZ
Value: yes

III-200 Value Name: DatabaseName
  Data Type: REG_SZ
  Value: database name

III-201 Value Name: Driver
  Data Type: REG_SZ
  Value: c:\sqlany50\win32\wod50t.dll

III-202 Value Name: PWD
  Data Type: REG_SZ
  Value: SQL

III-203 Value Name: Start
  Data Type: REG_SZ
  Value: c:\sqlany50\win32\dbeng50

III-204 Value Name: UID
  Data Type: REG_SZ
  Value: DBA

The 16-bit ODBC Driver Manager (Odbc.dll), provided with SQL Anywhere, lets 16-bit applications access a 32-bit ODBC driver without any changes. However, you must define a datasource with the 32-bit administrator tool. When you create a datasource with the 32-bit ODBC admin tool, entries are created in the registry and in Odbc.ini. Make sure the registry and Odbc.ini are in sync.



Page: 1, 2, 3, 4, 5
 
Hosted by www.Geocities.ws

1