|
|
|
|
|
|
|
Moving
certificates between computers If you use certificates for
authentication, digital signing, or other reasons, and routinely work with
more than one machine, you'd probably like to have the same certificates on multiple
computers. Or, maybe you need to reinstall Windows 2000 and must recover all
of your certificates for the next installation. Rather than obtain different
certificates for each computer you use, just export the certificates to each
computer as needed. Exporting the certificates also gives you the ability to
restore them if you're reinstalling Windows 2000. Open the Certificates MMC snap-in;
then, open the branch Certificates/Current User/Personal/ Right-click the certificate and
choose All Tasks | Export. Click Next after the Certificate
Export Wizard starts. Choose Yes, Export The Private Key
and Accept the default settings for
Export File Format and click Next. Specify a password to protect the
certificate file and click Next. Specify a filename for the
certificate, click Next, and then click Finish. On the next computer, in Internet
Explorer or Outlook Express, click Import to start the Certificate Import
Wizard. If using the Certificates console, right-click in the right-pane and
choose All Tasks | Import to start the wizard. Click Next after the wizard
starts. Specify or browse to the path where the certificate is stored, select
it, and click Next. Specify the password entered in
step six and click Next. Click
Next when prompted for the location of the certificate (let Windows 2000
place the certificate for you automatically), click Next again, and then
click Finish. |
|
Locking
down the registry Our recent tip, "Disable
remote registry modification" (Jun. 12, 2000), explained how to prevent
remote users from modifying your registry. If you need to allow some users
that ability or otherwise restrict but not completely prevent registry
modifications, you can apply permissions to registry keys that specify what
actions users and groups can take on those particular keys and their values.
For example, you might grant a given group of users the right to read keys
but not modify them, while granting another group the ability to read and
create new values in those keys but not create new subkeys. |
|
Working
with removable NTFS media By default, Windows 2000 allows
removable NTFS media to be ejected only by members of the Administrators
group. That logic makes sense because if you're using NTFS, you're probably
doing so to take advantage of the security it provides. Open the Local Security Policy
console from the Administrative Tools folder. Open the branch Local
Policies/Security Options. Double-click Allowed To Eject
Removable NTFS Media. Select
the groups that need the ability to eject the media and click OK, then close
the console. |
|
Renaming
the administrator and guest accounts Obtaining a valid account name is
the first step in any malicious attempt to break into a system, whether the
cracker is working from within your organization or externally. Anyone with
any NT or Windows 2000 experience knows the name of the administrator account
and probably knows about the guest account, as well. |
|
Controlling
driver and service installation behavior Windows 2000 introduced a new feature
called Driver Signing, which enables drivers and services to be digitally
signed to indicate that they've been tested for compatibility by Microsoft.
While Driver Signing doesn't guarantee a problem-free driver or service, it's
a good first step. |
|
Viewing
and disabling services from the Recovery Console When you're trying to troubleshoot
and recover a system that won't boot normally or won't let you log on, it's
often helpful to be able to disable services that might be the source of the
problem. The Recovery Console gives you three commands you can use to list
services and their status, as well as change the startup mode for the
service. For example, you might set a service's mode to Manual or Disabled if
you think it's preventing the system from starting normally. SERVICE_BOOT_START SERVICE_SYSTEM_START SERVICE_AUTO_START SERVICE_DEMAND_START Use ENABLE servicename with no
start type to list the current start type. |
|
Configure
Win2K Professional as a Telnet server Windows 2000 includes a service
that lets the computer function as a Telnet server, enabling remote clients to
connect and run command console sessions. Since Telnet offers a handy means
of remote administration, you might want to enable the service on your
workstation. Or, perhaps you simply want to be able to connect to your office
computer when you're out of the office. Whatever the case, setting up the
Telnet service is easy. |
|
Using
certificate-based authentication for dial-up connections If you're concerned that someone
other than your authorized users might compromise a dial-up account and gain
access to your network, you can consider requiring certificate-based
authentication for all dial-up connections. This helps lock out unauthorized
users even if they have a valid user account and password, since they won't
have the appropriate certificate to enable them to authenticate. Obtain a computer certificate from
a Certification Authority (CA) in your domain. Install on the client computer the
certificate obtained in step 1 (using the Certificates MMC console to do so). Open the Network And Dial-Up
Connections folder, right-click the dial-up connection, and choose
Properties. Click the Security tab, select Advanced,
and click Settings. Under Logon Security, select Use
Extensible Authentication Protocol (EAP). Select Smart Card or other
Certificate from the drop-down list. Click Properties to set additional
options as needed, based on the following selections: Validate Server
Certificate:
Causes your computer to verify that the certificate provided by the server
has not expired. Deselect Let The Client Accept The Server's Certificate
Without Validation. Connect Only If
Server Name Ends With: Use to limit connections to servers that reside in a specified
domain. Trusted Root
Certificate Authority: Select the trusted root certificate authority for your server. Use A Different User Name For The Connection: Select
this option if the user name stored in the smart card or associated with the
certificate you're using is not the same as the user name you need to use to
log on in the remote domain. |
|
Generating e-mail automatically Have you ever wished you could schedule
messages to be sent as periodic reminders? Maybe you need to send reminders,
even to yourself, to replace a tape set for a regular backup, for example.
Perhaps you've automated a process with a batch file and would like it to
send e-mail notifications as part of the process. Good ol' Blat is just the
thing you need. |
|
Restricting dial-in users to the local
computer You might not realize it, but when
you configure a Windows 2000 Professional computer to act as a dial-up
server, remote callers have the ability to browse the local network as well,
accessing LAN resources subject to the resource's permissions and user rights.
If that's what you intended, then all is well. But, allowing dial-up users to
access the LAN can be a security risk, even if the remote users are all
authorized to access the LAN when they work locally rather than through
dial-up. If an unauthorized user obtains a dial-in account and password, your
LAN is suddenly exposed and potentially compromised. So, if the remote users
only need access to the dial-up server, or to their individual computers, you
should consider preventing pass-through access to the LAN. |
|
Creating a file list for a batch file with DIR /B Have you ever wished you could
generate a file list from a directory so you could process those files in a
batch file? For example, the Recovery Console's COPY command doesn't support
wildcards for copying multiple files. If you're using the RC to back up or
restore registry files or lots of other files, you have two options: type a
COPY command for each file or automate the process with a batch file. You
could use DIR without any switches to redirect the output to a text file, and
then open the text file and strip out all of the extra stuff. But, there's an
easier way. |
|
Disabling Automatic Private IP Addressing Windows 2000 provides the ability for clients to
automatically assume an IP address from the private subnet 169.254.n.n if no DHCP
server is available on the network. This feature is called Automatic Private
IP Addressing, or APIPA. It's great when you don't have a DHCP server, you
don't need public IP addresses, and don't want the hassle of having to assign
IP addresses manually. To disable APIPA, open the
Registry Editor and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services
\Tcpip\Parameters\Interfaces\<adapter> where <adapter> is the name
of the interface for which you want to disable APIPA. Add a REG_DWORD value
named IPAutoconfigurationEnabled in the key and set it to 0x0. Repeat the
process for any other adapters that need to have APIPA disabled, then restart
the computer. |
|
Using L2TP for VPN connections Virtual private network (VPN)
connections let you establish a secure, private network tunnel to a remote private
network through a public network such as the Internet. Once connected you can
use resources such as files and printers just as if you were still in the
office. Best of all, it's secure from intrusion. You might use a VPN
connection when you need to connect to the office LAN while you're on the
road. Add additional VPN ports, if
necessary, using Obtain a computer certificate for
the RRAS server from a Certificate Authority (CA) on the LAN. Install the
certificate. Open the RRAS console and
configure input filters on the VPN interface for UDP ports 500 and 1701
(source and destination) with a subnet mask of 255.255.255.255. Configure
output filters on the VPN interface for UDP ports 500 and 1701 (source and
destination) with a subnet mask of 255.255.255.255. |
|
Start the RC from the Setup disks or Windows 2000 CD The Recovery Console (RC) provides
a command console you can use to repair a system that's having problems
booting. You can also use the RC to perform administration tasks on systems
that will boot, such as manually restoring a registry hive file from a backup.
|
|
Use FIXBOOT and FIXMBR to fix drive problems A couple of Recovery Console (RC)
commands can help you fix problems that might crop up with a system's hard disk.
If you don't have the RC installed, you can run it through the Windows 2000
Setup disks as explained in yesterday's tip, "Start the Recovery Console
from the Setup disks or Windows 2000 CD." |
|
Use DISKPART to manage partitions DISKPART is a Recovery Console
(RC) command you can use to create and remove partitions. It's particularly
useful when you're troubleshooting or configuring a system with a bad or new
(unformatted) drive. |
|
Avoid reinstalling apps after a clean W2K install You might think that performing a clean
install of Windows 2000 on an existing system means you'll have to reinstall
all of your applications. While it's true you'll probably have to reinstall a
few, it's a good bet you can get by without a reinstall for at least some
programs. |
|
Change the command console colors By default the command console
uses white text on a black background. This boring color combination works
fine in just about all situations, but you might want to use different colors
either for aesthetic reasons or because you want to highlight the console in
some way. For example, if you're writing a complex batch file, you might want
to change the console colors when a critical error or other event occurs. |
|
Use NSLOOKUP to check DNS operation NSLOOKUP is a useful but sometimes
little known tool for checking DNS operation and performing manual DNS queries.
NSLOOKUP is particularly useful because it lets you specify the DNS server to
use, which means you can query against servers other than those specified in
the computer's DNS settings. |
|
Use hardware profiles for multiple system configurations Windows 2000 is pretty good about
making hardware work together, but it still hasn't overcome the problem of
having too much hardware and too few hardware resources. For the want of an
IRQ, some crucial piece of hardware might be completely useless to you. |
|
Remove hidden Windows 2000 components By now you're probably familiar
with the Add/Remove Programs object in the Control Panel that lets you add or
remove Windows 2000 components. After you open the Add/Remove Programs
object, click the Add/Remove Windows Components button to start the Windows
Components Wizard, which lets you choose which components to install or
remove. |
|
Cloning your hard drive, part 1 Whether you've run low on disk space or just want one
of those cheap, huge hard drives available today, getting your system cloned
from the old drive to the new one doesn't have to be a major chore. Log on as Administrator, open
Backup, and back up the entire drive including the system state data. Back up
all volumes on the disk, including those residing in separate partitions. Shut down the system, remove the
old drive, and install the new one. Restart the system and perform a
clean installation of Windows 2000. Structure partitions on the new drive as
needed. Format the volume using the desired file system (FAT or NTFS). Boot the system, log on as
Administrator, and open the Backup program. Restore the entire backup set
including the system state data. You'll have to use the Restore Wizard and
choose Import File to bring the backup set back in, since it was created with
a different installation of Windows 2000. Restart,
log on as Administrator, and check out the system to make sure everything was
restored properly |
|
Cloning your hard drive, part 2 Yesterday we explained how to replace
your system's hard disk through the Backup utility and a clean Windows 2000
installation. If you prefer not to go through a reinstall, you can try the
following procedure to do a direct copy: Configure the new drive as a slave
(if IDE) or with an SCSI ID other than 0 (if SCSI) and install in the system. Boot the system and configure the
BIOS for the new drive if necessary, and then log on as Administrator. Open the Disk Management console,
create the desired partition structure for the disk, and format the
volume(s). For good measure, open the Backup
utility and update the ERD, including backing up the registry files. Open a console prompt and execute
the following command, assuming drive C is the old drive and drive D is the
new one: XCOPY C: D: /H /I /C /K /E /R Repeat step 5 for any other
volumes you need to copy from the old drive to the new one. If the Recovery Console isn't
installed, execute i386\WINNT32 /CMDCONS from the Windows 2000 CD to install
it. Open the Local Security Policy
console, open the Local Policies/Security Options branch, and enable the
policy Recovery Console: Allow Floppy Copy And Access To All Drives And All
Folders. Restart the system and boot the
Recovery Console, log on, and execute the following command: SET AllowAllPaths = TRUE Change to the
%systemroot%\System32\Config folder on the old drive and copy all files there
to the same folder on the new drive. Shut down the system and
reconfigure the new drive as master (IDE) or ID 0 (SCSI). Reconfigure or remove
the old drive so it's no longer a boot drive. Restart
the system, log on, and make sure everything checks out. |
|
View IRQ and other resource allocations At some point you've probably
played with the Device Manager to enable or disable devices or view/change
their settings. What you might not have realized is that the Device Manager
offers four different views. |
|
Use offline folders for file synchronization, part 1 Sometimes you need to work with
files when they might not otherwise be available. For example, you might copy
files from a network server to your notebook so you can work with them when
you're on the road. When you get back, you synchronize your copies with the
server so your changes are reflected in the server copy. Or, perhaps the
server will be offline for several hours, but you want to continue working on
files stored on it. Windows 2000 provides a feature called Offline Folders
that serves these functions. |
|
Use offline
folders for file synchronization, part 2 |
|
Change the
location of the offline file cache In our last two tips you learned
about offline files and how to use the feature to continue working with
remote files even when the remote computer sharing them goes offline. Windows
2000 copies the files you designate for offline access to a hidden cache on
your system. By default, the offline file cache is stored in the folder
%systemroot%\CSC. CSC stands for "Client Side Cache." |
|
Bypass Startup
items at logon Windows 2000 provides a handful of
ways to automatically start applications at logon. In most cases, automatic
execution is a good thing. It enables your antivirus, fax, and other
background programs to start automatically as soon as you log on. In some
situations, though, automatic startup can be a problem. |
|
Change the
location of the Startup folder In Windows NT the Start menu
includes two Startup folders, one for the current user |
|
Configure a
print queue to retain printed documents By default, Windows 2000 discards documents
from a printer's queue when the document's been printed. This keeps the queue
from filling up with old documents. In most cases, this configuration works
just fine. However, it also means that if a problem occurs with a print job
that allows it to complete but not satisfactorily (like if the printer runs
out of toner, for example), you have to open the application and resubmit the
job. This might not be a problem for most applications or documents, but for
particularly large documents and some applications, reprinting the job from
the application could take several extra minutes. |
|
Use encryption
for NTFS volumes Object permissions in NTFS provide
good security, but they don't protect against a file system being physically
removed or an entire system stolen. Remember the handful of notebooks
containing classified data that disappeared in both the U.S. and the U.K.
recently? Hopefully those file systems were well encrypted (although given
enough time and resources almost any encryption mechanism can be
compromised). If your system contains sensitive data, you can go a long way
toward protecting it against prying eyes and theft by encrypting it. Right-click the folder or file you
want to encrypt and choose Properties. Click Advanced in the Attributes
section of the General tab to display the Advanced Attributes dialog box. Select the option Encrypt Contents
To Secure Data. Click OK and close the Properties
sheet. Keep in mind that compression and
encryption are mutually exclusive. You can use one or the other on a folder
or file, but not both. |
|
If you want to
contact me or to send more tip’s |