Windows Tips & Tricks UPDATE--September 20, 2004

Windows Tips &amp Tricks UPDATE, September 20, 2004, —brought to you by the Windows IT Pro Network and the Windows 2000 FAQ site
http://www.windows2000faq.com



FAQs

Q. How can I add a user to a group by using Microsoft Active Directory Service Interfaces (ADSI) in a script?

A. You can use VBScript code that's similar to the following snippet, which adds a user to a group by using the user's distinguished name (DN):

Set grp = GetObject("LDAP://cn=testgrp,ou=testing,dc=savilltech,dc=com")
Set oUser = GetObject("LDAP://cn=user1,ou=testing,dc=savilltech,dc=com")
grp.Add(oUser.AdsPath)
grp.SetInfo

Q. Can I run the Sysprep utility that's in the Windows Server 2003 deployment tools under Windows 2000 Server?

A. For Win2K Server installations, you must use the Win2K Server version of the Sysprep files (sysprep.exe and setupcl.exe) instead of the Windows 2003 version. You can find the Win2K Server version of these files on the Win2K Server installation CD-ROM in \support\tools\deploy.cab. The switches for the Win2K Server version of Sysprep differ from those in the Windows 2003 version. Also, in most cases, you can simply run the Win2K Server version of Sysprep without any command-line arguments. You can display the few command-line options that are available in the Win2K Server version of Sysprep by running the command

sysprep /?

Q. How can I enable Microsoft Internet Information Services (IIS) 6.0 to display filenames that have no extension?

A. Although the ability to display file that have no extensions was available by default in IIS 5.0, Microsoft has removed that default option from IIS 6.0. To re-enable the ability to display file types that have no extensions, follow these steps:

  1. Click Start and select Programs, Administrative Tools, Internet Information Services (IIS) Manager.
  2. Expand the Web Sites branch, right-click the Web site for which you want to enable no-extension files, and select Properties.
  3. Select the HTTP Headers tab and click MIME Types.
  4. Click New. You'll see the MIME Type dialog box, which the figure at Figure shows.
  5. In the Extension text box, enter a period followed by an asterisk (.*). In the MIME type text box, type
    application/octet-stream
    and click OK.
  6. Click OK, then click OK again to display the Web site's main properties page.
  7. When you restart the Web site, you should be able to see and open files that have no extension. (To restart the server, right-click the Web site in IIS and select Stop, then select Start.)

Q. How can I configure Microsoft Management Console (MMC) to start in a maximized window?

A. The best way I found to accomplish this task is to create a custom MMC environment that remembers its previous sizing. To do so, perform these steps:

  1. Start the MMC environment (Start, Run, mmc.exe).
  2. From the File menu, select Add/Remove Snap-in (or press Ctrl+M).
  3. In the Add/Remove Snap-in dialog box, click Add.
  4. Add the required snap-ins; when you're done, click OK.
  5. Maximize the window in MMC and maximize the MMC console itself.
  6. From the File menu, select Save As.
  7. Save the new configuration to a location and filename.

When you restart MMC, the window will be displayed as the size it was the last time you used or closed MMC.

Q. Has Microsoft updated any of the Windows Support Tools in Windows XP Service Pack 2 (SP2)?

A. Microsoft updated some Windows Support Tools in XP SP2. The updated tools include

  • bitsadmin.exe
  • extract.exe
  • httpcfg.exe
  • iadstools.dll
  • ipseccmd.exe
  • netdom.exe
  • replmon.exe

You can download the updated XP support tools at http://www.microsoft.com/downloads/details.aspx?familyid=49ae8576-9bb9-4126-9761-ba8011fabf38&displaylang=en. Before installing the updated tools on your system, you should uninstall any earlier versions that are installed.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish