

INDEX
Installing and Configuring Windows Server 2003
Managing and Maintaining Physical and Logical Devices
Manage basic disks and dynamic disks
Tools might include Device Manager, the Hardware Troubleshooting Wizard, and appropriate Control Panel itemsOptimize server disk performance
Install and configure server hardware devices
Managing Users, Computers, and Groups
Manage local, roaming, and mandatory user profiles
Create and manage computer accounts in an Active Directory environment
Create and manage user accounts
Troubleshoot computer accounts
Troubleshoot user authentication issues
Managing and Maintaining Access to Resources
Configure access to shared folders
Troubleshoot Terminal Services
Configure file system permissions
Tools might include Event Viewer and System MonitorManage software update infrastructure (SUS)
Manage software site licensing
Monitor file and print servers.
Tools might include Task Manager, Event Viewer, and System MonitorMonitor and optimize a server environment for application performance
Managing and Implementing Disaster Recovery
http://www.microsoft.com/learning/exams/70-290.asp
Web Edition supports 2 gigabytes (GB) of RAM and a two-way symmetric multiprocessor (SMP). It provides unlimited anonymous Web connections but only 10 inbound server message block (SMB) connections. The server cannot be an Internet gateway, DHCP, fax server or domain controller. Although you can remotely administer the server with Remote Desktop, the server can't be a terminal server in the traditional sense. The server can belong to a domain. The included version of the Microsoft SQL Server Data-base Engine can support as many as 25 concurrent connections. The Web Edition cannot be installed as an upgrade for Windows NT4 or Windows 2000.
Standard Edition includes Microsoft SQL Server Database Engine (MSDE), a version of SQL Server that supports five concurrent connections to databases up to 2 GB in size; an out-of-the-box Post Office Protocol version 3 (POP3) service which, combined with the included Simple Mail Transfer Protocol (SMTP) service, allows a server to function as a small, stand-alone mail server; and Network Load Balancing (NLB), a useful tool that was only included with the Advanced Server edition of Windows 2000. The Standard Edition of Windows Server 2003 supports up to 4 GB of RAM and four-way SMP (was only 2 before release candidate 2 was available).
Enterprise Edition of Windows Server 2003 includes support for eight processors, 32 GB of RAM, eight-node clustering (including clustering based on a Storage Area Network (SAN) and geographically dispersed clustering) and availability for 64-bit Intel Itanium-based computers, on which scalability increases to 64 GB of RAM and 8-way SMP.
Support for Microsoft Metadirectory Services (MMS), which enables the integration of multiple directories, databases, and files with Active Directory.
Hot Add Memory, so that you can add memory to supported hardware systems without downtime or reboot.
Windows System Resource Manager (WSRM), which supports the allocation of CPU and memory resources on a per-application basis.
Datacenter Edition, which is available only as an OEM version as part of a high-end server hardware package with support on 32-bit platforms for 32-way SMP with 64 GB of RAM and on 64-bit platforms for 64-way SMP with 512 GB of RAM. There is also a 128-way SMP version that supports two 64-way SMP partitions.
64-bit editions of Windows Server 2003, which run on Intel Itanium-based computers, provide for higher CPU clock speeds and faster floating-point processor operations than the 32-bit editions of Windows. Some features of the 32-bit editions are not available in the 64-bit editions. Most notably, the 64-bit editions do not support 16-bit Windows application, real-mode applications, POSIX applications, or print services for Apple Macintosh clients.
Installing and Configuring Windows Server 2003
Bootable CD-ROM installation. Windows Server 2003 can be installed directly from the CD-ROM. But there is
no support for starting installation from floppy disks.Note: Windows Server 2003 supports Universal Disk Format (UDF) on cdrom's and DVD drives only.
Objects - Objects form the basic unit of the Active Directory. An object is a concrete item that shares common attributes or properties with other objects. Examples of objects are:
Users
Computers
Printers
Applications
In the Active Directory, objects are organised into classes, which are logical groupings of objects. eg. Object classes are user accounts, groups or domains. The characteristics that describe a class are called properties or attributes. The schema is the formal definition and set of rules for all Active Directory objects.
Organisational Units - An Organisational uniit (OU) is a container object that you use to organise objects within a domain, into administrative groups such as Sales. An Organisational unit can contain objects and other Organisational units. They are the building blocks of the hierarchical structure of a domain.
Domain - A domain is the core unit of logical structure in Active Directory. It represents an administrative grouping and has implications for the replication of Active Directory. The domain is the unit of organisation and security in Active Directory. A domain is a security boundary. Access to domain objects is controlled by (ACL's) Access Control Lists, which are populated by access control entries (ACE's). A domain can contain one or more Domain controllers. A trust relationship exists between two domains in which the trusting domain honours the logon authentication of the trusted domain.
Tree - A tree is a grouping of one or more Windows 2000/2003 domains that allows global resource sharing. The grouping must have a contiguous namespace (such as microsoft.com, sales.microsoft.com, tech.microsoft.com). All domains within the Active Directory share a common schema and a common global catalogue. They also share a common namespace and a hierarchical naming structure.
Forest - A Forest is a grouping of one or more trees that has a non-contiguous namespace (eg. microsoft.com, microsoft.co.uk, microsoft.co.de)
AD Installation Wizard
A Windows Server 2003 server becomes a Domain Controller when an administrator runs the Active Directory installation wizard (using Start / Run / dcpromo.exe). This process promotes a server to a Domain Controller. It also creates the Active Directory database file, named ntds.nit - This file must reside on a hard disk that is formatted as NTFS. Its default location is the %systemroot%\ntds folder
Managing and Maintaining Physical and Logical Devices
A physical device is hardware that can be touched: a network card, a graphics adapter, or a SCSI hard disk drive.
A logical device is one that has been created by the operating system. Partitions, volumes, and striped disks are examples of logical devices.
The disk management console provides the systems administrator with the ability to manage and maintain the physical and logical disks of a Microsoft Windows Server 2003 system. The disk management console can be found as a node in the Computer Management console or used as its own separate console by adding the appropriate snap-in to a custom-built Microsoft Management Console (MMC). The disk management console allows a systems administrator to convert disks from basic to dynamic and back, format them with the NTFS, FAT, or FAT32 file systems, extend volumes across multiple disks, configure disk mirroring as well as striped and RAID-5 volumes.
The Device Manager allows a systems administrator to manage and configure other hardware device. A new and important feature to Windows Server 2003 is the ability to roll back a newly installed driver to a previously stable one. In the past if an unstable driver was installed on a server, the driver was very difficult to remove. It was also difficult to reinstall an older driver over the newer unstable one. The Device Manager can also be used to check which system resources particular devices use as well as resolving hardware conflicts between installed devices
.
Manage basic disks and dynamic disks.
Dynamic disks provide more options than basic disks. Dynamic disks can be configured to use disk mirroring (RAID-1), disk spanning, striped volumes (RAID-0), and RAID-5 volumes. Basic disks do not have these options, they can be configured as simple or extended partitions only.
Disk management can be performed in two ways. The first is through the disk management console and the second is through the command-line interface. Both can be used to convert disks from basic to dynamic and back. The Initialize And Convert Disk Wizard, which runs whenever a new disk is installed on a server, can be used to initialize a hard disk and convert it from basic to dynamic.
Only users with Administrator privileges, members of the Backup Operators group or users that have been especially delegated the appropriate authority are able to convert disks from basic to dynamic and back again. All disks can be converted from basic to dynamic. However, if a basic disk has data on it when the conversion takes place, it cannot be extended to span other disks as a native dynamic disk can. A converted dynamic disk, however, can be mirrored, which means that the operating system volume can be provided with fault tolerance.
Any disks to be converted must contain as least 1mb of unallocated space. Disk administrator automatically reserves this space (other 3rd party disk programs may not).
To convert dynamic disks back into basic disks, you must remove all volumes on the dynamic disk (includes all data within it).
If a server has multiple operating systems installed the administrator should consider not converting the boot or system partitions to dynamic disks. A conversion to dynamic will mean that the server cannot boot into any other operating system than the one that performed this conversion.
Volume mounting involves mounting a volume off a folder located on another volume. This mounted volume can be hosted on a disk that is either basic or dynamic. This enables a volume to appear to store more information than its actual physical capacity. It has the advantage of meaning that folders that require a great deal of capacity can be mounted on separate larger hard disk drives as not to fill the entire original volume.
Basic storage is the default in Windows Server 2003, so all new disks are basic disks until you convert them to dynamic.
Dynamic disks do not offer advantages over basic disks in a computer that will have only one disk drive.
The behaviour of the LDM database also makes it difficult to transfer a dynamic disk used for starting the operating system to another computer when the original computer fails.
Dynamic disks are not supported for removable media (usb & firewire), and are not supported on laptops.
Basic disks are supported for removable media
Basic storage is the industry standard, so basic drives are accessible from many operating systems, including MS-DOS, all versions of Microsoft Windows, and most non-Microsoft operating systems.
Dynamic disks are not supported on hard disk drives with a sector size less than 512 bytes
To convert a dynamic disk to a basic disk you must remove all volumes (and data) from the dynamic disk before it is changed back.
Dynamic Volume
Previously called sets (mirror sets and stripe sets) under Windows NT. Dynamic volumes are the only volume that you can create on dynamic disks. 2003 Server can be installed on a dynamic volume but this volume must of been converted from basic to dynamic beforehand (as partition table is needed).
Windows Server 2003 only supports formatting partitions or volumes larger than 32gb as NTFS (not as FAT32).
You are able to install a fresh copy of Windows server 2003 onto a basic partition and onto a dynamic volume if the volume was originally a basic partition that was upgraded to dynamic, because Windows Server 2003 can only be installed on a disk that contains a partition table.
If you upgrade to Windows NT4 to Windows Server 2003 without backing up data stored on mirror sets or stripe sets with parity on basic disks, the operating system will not mount those volumes. But you can install from the Server 2003 installation cdrom the \support\tools folder, the ftonline.exe command line tool. ftonline will mount fault tolerant volume sets stored on basic disks. *Read only access is permitted to the data so it can be copied onto Dynamic fault tolerant volumes.
Monitoring server hardware is generally done by using the Device Manager MMC. There are also other areas of the system, such as specific Control Panel add-ins or separate utilities such as WINMSD, which can be used to monitor and report on hardware attached to the server.
Device Manager, found in the Computer Management console or as its own MMC in the Administrative Tools program group is the first port of call for hardware management. It will display the operating status of all hardware connected to the system. Non-Plug and Play devices can be viewed by selecting the Show Hidden Devices option from the view menu.
The WINMSD utility, launched from the command line or Run menu, also provides an overview of the hardware that is installed on a particular Windows Server 2003 system.
Some devices, such as modems and display adapters, are best managed through their individual Control Panel application rather than with the Device Manager.
WMI is a management system that collects data from computer systems. The control interface of WMI Control snap-in allows for adjustment of permissions beyond the default of the local administrator to manage computers across the network. While WMI is capable of configuring many different types of system behaviour including users, groups, and services. WMIC is capable of reporting running services, installed applications, and publishing Event Viewer data to CSV or HTML files for ease of distribution and analysis.
Windows Management Instrumentation (WMI) The Microsoft implementation of Web-Based Enterprise Management Initiative to establish standards of data in Enterprise Management
Windows Management Instrumentation Control (WMIC)
A command line utility that interfaces with the WMI Repository (database) for configuration and monitoring management. WMIC is not an Active Directory Schema Management Tool. WMI maintains its own schema.
Optimize server disk performance.
There are three ways to increase the read/write performance of disks on a Windows Server 2003 system.
The first is to implement disk striping (RAID-0). Disk striping uses 2 or more disks. In disk striping data is written to several disks at the same time. The start of a file may be written to one disk, while at the same time the middle of a file is written to a second disk and at the same time the end of the file is written to a third disk. Similarly the start, middle, and end of a file can be read simultaneously off all disks. Performing these operations in parallel brings a great performance benefit. The downside to RAID-0 is that if one of the disks that comprise the striped volume fails, all data on that volume is lost. Data should be hosted only on those volumes that need to be read and written quickly but that do not require fault tolerance. In disk striping, data can be written to or read from multiple disks making up the volume at one time. In a simple volume, only one disk can be written to or read simultaneously. Disk striping offers the best read/write performance.
The second way to increase the read/write speed of disks is to implement disk striping with parity, which is also known as RAID-5. The benefit of this method over disk striping is that the method is fault-tolerant. If one of the disks that comprise the RAID-5 volume is lost, the data can still be recovered by using the parity information stored on the other disks. RAID-5 is the safest way to increase the read/write performance of disks. The technique is easy to implement in the disk management console with three or more dynamic disks. RAID-5 must generate parity information while writing to the disks, something that disk striping (RAID-0) does not need to do. RAID-5 parity generation provides some latency, making this method slower than disk striping.
The final way of increasing the read/write speed of disks is to make sure that the files stored on them are relatively free of fragmentation. Fragmentation naturally occurs on hard disk drives as files are written and deleted. Because hard disks allocate free space as it becomes available, a newly written file may be stored at disparate locations across the hard disk drive. The less contiguous a file is on the hard disk drive, the longer it takes to be read or written. Defragmentation is the process by which files are rearranged on the hard disk so that they are continuous rather than fragmented. This is performed either by using the Disk Defragmenter console or by using the DEFRAG command-line utility.
■ Simple volume
The equivalent to a basic disk partition is a dynamic disk simple volume. Simple volumes utilize space on a single physical disk, and correspond to a single logical volume. Simple volumes can be extended by appending unallocated space on other regions of the same disk, allowing you to adjust a volume’s capacity with the growth of data stored in that volume. Because simple volumes exist on only one physical disk, they are not fault-tolerant.■ Spanned volume A spanned volume includes space on more than one physical disk. Up to 32 physical disks can participate in a spanned volume, and the amount of space used on each disk can be different. Data is written to the volume beginning with the space on the first disk in the volume. When the space on the first disk fills, the second disk is written to, and so on. If a simple or spanned volume is filling up, you can extend the volume onto additional new storage capacity. But spanned volumes are not fault-tolerant, and cannot participate in any fault-tolerant configurations. If any one disk in a spanned volume is corrupted or lost, data on the entire volume is lost as well. Windows Server 2003 will not allow the installation of the operating system on a spanned volume, nor can you extend or span the system volume.
You can extend a volume only if it contains no file system or if it is formatted using NTFS
After a volume is extended onto multiple disks, you cannot mirror the volume
You cannot extend boot volumes, system volumes, striped volumes, mirrored volumes, raid 5 volumes
After a spanned volume is extended, no portion of it can be deleted without the entire spanned volume being deleted
You can extend a simple / spanned volume only if the volume was created as a dynamic volume under Windows Server 2003
■ Striped volume A striped volume (RAID-0) combines areas of free space from multiple hard disks into one logical volume. Unlike a spanned volume, however, data is written to all physical disks in the volume at the same rate. Because multiple spindles are in use, read and write performance is increased almost geometrically as additional physical disks are added to the stripe. But like extended simple volumes and spanned volumes, if a disk in a striped volume fails, the data in the entire volume is lost.
Requires at least 2 physical disks
Maximum number of physical disks is 32
Not fault tolerant
A striped volume's capacity is limited to the space available on the disk with the smallest amount of available space
■ Mirrored volume A mirrored volume (also known as RAID 1) consists of two identical copies of a simple volume, each on a separate hard disk. Mirrored volumes provide fault tolerance in the event that one physical disk fails.
It is advisable to create a system boot disk, just encase of disk failures. Complete this by copying Windows server 2003 startup files onto the floppy disk. NTLDR, NTDETECT.COM, BOOT.INI, NTBOOTDD.SYS - then edit the BOOT.INI file, so that the ARC path points to the correct partition number for the non-failed disk.
Best practice is to connect each disk to a separate controller to eliminate a single point of failure, which is known as disk duplexing.
■ RAID-5 volume A RAID-5 volume is a fault-tolerant striped volume. Space on three or more physical disks is unified as a single volume. Data is written to all physical disks at the same rate, but unlike a striped volume, the data is interlaced with checksum information, called parity. Should a single disk in the volume fail, the data on that disk can be regenerated through calculations involving the remaining data and the checksum information.
Files are stored on a volume in units called clusters
. Cluster size is configured when formatting a drive; many NTFS volumes use a default cluster size of 4 KB. Each cluster can only contain one file, even if that file is smaller than the cluster size. If a file is larger than the cluster size, the file is saved to multiple clusters, with each cluster containing a pointer to the next segment of the file. When a drive is new, all clusters are free, so as files are written to the drive they tend to occupy physically adjacent clusters. But quickly, as files are deleted or expanded and contracted in size, free clusters are no longer completely contiguous, so a file may be saved to several clusters that are not physically close to each other on the disk drive. This fragmentation of a file results in slower read and write performance.Windows Server 2003 provides a defragmenter toolset, both a command-line and a graphical utility with which volumes can be analyzed and defragmented. The tools are significantly improved over Windows 2000, as they can now defragment volumes
with cluster sizes greater than 4 KB, and can defragment the master file table. You can use the tools to defragment any local disk volume. To use the built-in Disk Defragmenter - open the properties of a disk volume and, from the Tools tab, click Defragment Now. Alternatively, open the Disk Defragmenter snap-in in the Computer Management console or a custom Microsoft Management Console. Select a volume and click Analyze. The tool will display a recommendation. If the tool indicates that the volume is dirty, there may be corruption and CHKDSK should be run before defragmenting.If the recommendation is to defragment, click Defragment. You can defragment any type of volume: FAT or NTFS, basic or dynamic. The volume can have open files, but open files may not be efficiently defragmented and may slow the process. Disk Defragmenter will move files around the drive in an attempt to collect all clusters of a file into contiguous clusters.
To completely defragment a volume, the volume must have at least 15% percent free space. If the volume contains less then 15 percent free space, then the volume will be only partially defragmented.
Use CHKNTFS /c to start chkdsk on reboot of server, if volume is dirty.
Install and configure server hardware devices.
A signed driver is one that has a digital certificate attached from Microsoft that guarantees that the driver has been tested on a wide variety of configurations and has been deemed reliable. Windows Server 2003 can be configured to look for this particular digital certificate and refuse to install drivers that have not met with Microsoft’s approval. Administrators can override any signing settings by manually setting this option in the System Properties. The options include Block, Warn, and Ignore. Block disallows the installation of unsigned drivers, Warn allows the installation but produces a message that must be approved notifying the administrator that the user is about to install unsigned drivers, and Ignore produces no warning and simply installs the drives regardless of whether they have been digitally signed.
The resources that a hardware device uses can be configured in the Device Manager by selecting the device and, from the Action menu, selecting Properties. Newly installed hardware can sometimes conflict with other hardware on the system and these conflicts can best be resolved by adjusting resources such as I/O range and IRQ.
Device drivers and operating system files included with Windows 2000 or higher have a Microsoft digital signature. The digital signature indicates that a particular driver or file was not altered or overwritten by another program’s installation process. Device drivers provided by vendors outside of Windows 2000 or higher may or may not be signed. You can control how the computer responds to these unsigned driver files during their installation. These settings are configurable through Control Panel by selecting System, the Hardware tab on the Systems Properties dialog box, and then Driver Signing to access the Driver Signing Options Properties page on an individual computer. The options for unsigned driver installation behaviour are:
Ignore To allow all device drivers to be installed on the computer, regardless of whether they have a digital signature. This option is available only if you are logged on as an administrator or as a member of the Administrators group.
Warn To display a warning message, allowing you to allow or deny driver installation, whenever an installation program or Windows attempts to install a device driver without a digital signature. This is the default behaviour.
Block To prevent an installation program or Windows from installing device drivers without a digital signature. Group Policy is an effective tool for simultaneously changing the Driver Signing Options setting on multiple computers.
To prohibit a user from changing the setting on his or her computer, you must deny access to the Hardware Properties pages in Control Panel and disable the MMC snap-in for Device Manager in the Computer Management console. These settings will not change the user’s ability to install PnP devices.
To identify drivers not written for Windows Server 2003, use the Signature Verification Tool. This utility SIGVERIF.EXE helps you quickly identify unsigned drivers.
Devices and their drivers require system resources to communicate with and process data through the operating system. These resources are configured automatically by Windows Server 2003, sometimes in a shared capacity with other devices within the system. In circumstances where resources must be statically configured, Device Manager allows for some control of the resources assigned for use by a device. If configuration is not available, the resources used by a device and its driver cannot be configured manually.
To configure a resource assignment manually, the Use Automatic Settings check box must first be cleared, then the resources can be set (such as I/O settings). Any resources set manually make both the resource and device unavailable for automatic configuration, limiting the ability of Windows Server 2003 to make adjustments. This may cause problems with other devices.
Device Manager provides a view of the hardware that is installed on your computer. You can use Device Manager to update the drivers for hardware devices and modify settings related to devices. Device Manager is accessible through the Control Panel by selecting System, the Hardware tab on the Systems Properties dialog box, and then Device Manager to access the Device Manager Properties page, or as part of the Computer Management console, accessible from Administrative Tools.
You can use Device Manager to manage devices only on a local computer. On a remote computer, Device Manager will work only in read-only mode.
A list of devices, drivers, and system configuration can be printed through the Print command on the Action menu in Device Manager or output to a comma-separated-values (CSV) file using the Driverquery command-line utility,
Administrators have the ability to install any device and its associated drivers. Users, on the other hand, have very limited ability to install devices on the computer. By default, users can install only PnP devices, with the following considerations:
The device driver has a digital signature.
No further action is required to install the device, requiring Windows to display a user interface.
The device driver is already on the computer. If any of these conditions is not met, the user cannot install the device unless delegated additional administrative authority.
If a PnP device requires no additional user interaction for installation, and the driver is already on the computer, a default user can connect and use the device. This applies to any universal serial bus (USB), parallel, IEEE 1394 device, especially printers. The Load And Unload Device Drivers user right, configurable through Group Policies, does not apply to PnP drivers, and need not be enabled for a user to install a PnP device.
Occasionally, a new driver will not function properly and cannot be kept in the configuration for the device. If the replaced driver was performing properly, then rolling back to the previous driver can be accomplished through Device Manager. Windows Server 2003 automatically backs up the driver that is being replaced through the update driver process, making it available through the Roll Back Driver option.
Locate Non-Plug and Play devices in the Device Manager by opening it, going to the view menu and selecting the Show Hidden Devices option. Note the different devices that are displayed when Show Hidden Devices is enabled and disabled.
USB Devices share electrical power. The root USB hub is given a certain amount of power and any USB devices connected to it (max of 127 devices) must share the power. To view power allocations open the device manager, expand the entry for USB controllers, right click the USB root rub and then choose properties, click the power tab.
Windows Server 2003 provides up to 500 milliamps of power for any and all connected USB devices. Each device can be no more than 5 meters away from the USB port.
Windows 2003 server only supports daisy chained USB hubs up to five (5) levels deep in one continuous chain.
*Note that with Writable CD ROMS - the ability to write to them is disabled by default. The IMAPI CD Burning COM Service must be enabled.
Managing Users, Computers, and Groups
Manage local, roaming, and mandatory user profiles.
Local User Profiles
By default, user profiles are stored locally on the system in the %Systemdrive%\Documents and Settings\%Username% folder. They operate in the following manner:
When a user logs on to a system for the first time, the system creates a profile for the user by copying the Default User profile. The new profile folder is named based on the logon name specified in the user’s initial logon.
All changes made to the user’s desktop and software environment are stored in the local user profile. Each user has their individual profiles, so settings are user-specific.
The user environment is extended by the All Users profile, which can include shortcuts in the desktop or start menu, network places, and even application data. Elements of the All Users profile are combined with the user’s profile to create the user environment. By default, only users of the Administrators group can modify the All Users profile.
Roaming User Profiles
To configure an Roaming User Profile (RUP), create a shared folder on a server.
Be sure to configure share permissions allowing Everyone Full Control. The Windows Server 2003 default share permissions allow Read, which is not sufficient for a roaming profile share.On the Profile tab of the user’s Properties dialog box, type the Profile Path in the format:
\\ <server name >\<share name>\%Username%. The %Username% variable will automatically be replaced with the user’s logon name. The next time the user logs on, the system will identify the roaming profile location.When the user logs
off, the system will upload the profile to the profile server. The user can now log on to that system or any other system in the domain, and the documents and settings that are part of the RUP will be applied.When a user with an RUP logs on to a new system for the first time, the system does not copy its Default User profile. Instead, it downloads the RUP from the network location. When a user logs off, or when a user logs on to a system on which they’ve worked before, the system copies only files that have changed. Unlike previous versions of Windows, Windows 2000, XP, and Server 2003 do not upload and download the entire user profile at logoff and logon. Instead, the user profile is synchronized. Only files that have changed are transferred between the local system and the network RUP folder. This means that logon and logoff with RUPs are significantly faster than with earlier versions.
Windows Server 2003 introduces a new policy: Only Allow Local User Profiles. This policy, linked to an OU containing computer accounts, will prevent roaming profiles from being used on those computers. Instead, users will maintain local profiles.
andatory user profilesM
A mandatory profile does not allow users to modify the profile’s environment. More specifically, a mandatory profile does not maintain changes between sessions. Although a user can make changes to the environment, the next time the user logs on, the desktop will look the same as the last time he or she logged on. Changes do not persist.
Mandatory profiles can be helpful in situations in which you want to lock down the desktop. They are, in a practical sense, critical when you implement group profiles because you obviously don’t want the changes one user makes to affect the environments of other users. To configure a profile as mandatory, simply rename a file in the root folder of the profile. Mandatory profiles are not configured through the application of permissions. The file you need to rename is Ntuser.dat. It is a hidden file, so you must ensure that you have specified to “Show hidden files and folders” in the Folder Options program in Control Panel, or use attrib from the command line to remove the Hidden attribute. You may also need to configure Windows Explorer to display file extensions. Locate the Ntuser.dat file in the profile you wish to make mandatory. Rename the file to Ntuser.man. The profile, whether roaming or local, is now mandatory.
Group Profile
Roaming profiles enable you to create a standard desktop environment for multiple users with similar job responsibilities. The process is similar to creating a preconfigured user profile except that the resulting profile is made available to multiple users. Create a user profile and when copying the profile to the server, use a path such as: \\<server>\<share>\<group profile name>. You must grant access to all users who will utilize the profile, in the Permitted To Use frame, click Change and select a group that includes all the users, or the BUILTIN\USERS group, which includes all domain users. The only users to whom the profile will actually apply are those for which you configure the user object’s profile path. After copying the profile to the network, you must configure the profile path for the users to whom the profile will apply. Windows Server 2003 simplifies this task, in that you can multiselect users and change the profile path for all users simultaneously. Type the same UNC that you used to copy the profile to the network, for example, \\<server>\<share>\<group profile name>.
Because more than one user will be accessing a group profile, you must make a group profile mandatory,
Enforcing a User Policy
If you wish to strictly enforce a policy that states that no user (in the example case, the user is Bill Gates) can logon without a roaming user profile, you can append the extension of .man to the roaming profile folder name. eg. If Bill Gates's roaming profile is stored on \\Server1 in the profiles share, you can rename the \billgates profile folder to \billgates.man
Create and manage computer accounts in an Active Directory environment.
Groups
are containers that have user and computer objects within them as members. When security permissions are set for a group in the access control list (ACL) on a resource, all members of that group receive those permissions.Windows Server 2003 has two group types: security and distribution
Security groups are used to assign permissions for access to network resources.
Distribution groups are used to combine users for e-mail distribution lists.
Security groups can be used as a distribution group, but distribution groups cannot be used as security groups.
You are able to change the type of group from Security to Distribution or Distribution to Security at any time, provided the domain is set at the Windows 2000 native or Windows 2003 domain functional levels.
Domain Functional Levels
|
Windows 2000 mixed
|
For supporting Windows NT 4, Windows 2000, and Windows Server 2003 domain controllers
|
|
Windows 2000 native
|
For supporting Windows 2000 and Windows Server 2003 domain controllers
|
|
Windows Server 2003 interim
|
For supporting Windows NT 4 and Windows Server 2003 domain controllers
|
|
Windows Server 2003
|
For supporting Windows Server 2003 domain controllers
|
As you switch a domain to an advanced domain functional level, remember that it is a one time option that CANNOT be reversed. You can only upgrade (raise) functional levels, you can never downgrade (lower) to previous levels.
Forest Functional Levels
|
Windows 2000
|
For supporting Windows NT 4, Windows 2000, and Windows Server 2003 domain controllers |
|
Windows Server 2003 interim
|
For supporting Windows NT 4 and Windows Server 2003 domain controllers |
|
Windows Server 2003
|
For supporting Windows Server 2003 domain controllers
|
Before you can raise the forest functional level to Windows Server 2003 level, all domain controllers within the entire forest must be running the Windows Server 2003 operating system. All domains within the forest must also be operating at either the Windows 2000 native or the Windows Server 2003 domain functional level. Any DC's operating at the Windows 2000 native level will be automatically raised to the Windows Server 2003 domain functional level at the time that the forest functional level is raised to Windows Server 2003.
Local Groups
Local groups (or machine local groups) are used primarily for backward compatibility with Windows NT 4. There are local users and groups on computers running Windows Server 2003 that are configured as member servers. Domain controllers do not use local groups.
Local groups can include members from any domain within a forest, from trusted domains in other forests, and from trusted down-level domains.
A local group has only machine wide scope; it can grant resource permissions only on the machine on which it exists.
Domain Local Groups
Domain local groups are used primarily to assign access permissions to global groups for local domain resources. Domain local groups:
Exist in all mixed, interim and native functional level domains and forests.
Are available domain wide only in Windows 2000 native or Windows Server 2003 domain functional level domains. Domain local groups function as a local group on the domain controllers while the domain is in mixed functional level.
Can include members from any domain in the forest, from trusted domains in other forests, and from trusted down-level domains.
Have domain wide scope in Windows 2000 native and Windows Server 2003 domain functional level domains, and can be used to grant resource permission on any Windows Server 2003 computer within, but not beyond, the domain in which the group exists.
Can change these groups to Universal Groups when the domain functional level is set to Windows 2000 native or higher
Global Groups
Global groups are used primarily to provide categorized membership in domain local groups for individual security principals or for direct permission assignment (particularly in the case of a mixed or interim domain functional level domain). Often, global groups are used to collect users or computers in the same domain and share the same job, role, or function. Global groups:
Exist in all mixed, interim, and native functional level domains and forests
Can only include members from within their domain
Can be made a member of machine local or domain local group
Can be granted permission in any domain (including trusted domains in other forests and pre–Windows 2003 domains)
Can contain other global groups
Can change these groups to Universal Groups when the domain functional level is set to Windows 2000 native or higher
Universal Groups
Universal groups are used primarily to grant access to resources in all trusted domains, but universal groups can only be used as a security principal (security group type) in a Windows 2000 native or Windows Server 2003 domain functional level domain.
Universal groups can include members from any domain in the forest.
In Windows 2000 native or Windows Server 2003 domain functional level, universal groups can be granted permissions in any domain, including domains in other forests with which a trust exists.
Can change these groups to either domain local groups or global groups
| Domain Functional Level | Group Scope | Allowed Objects |
| Windows 2000 mixed or Windows Server 2003 interim functional level domain | Domain Local Global Universal |
Domain Local - Computer accounts, users, global groups from any domain. Cannot be nested. Global - Only users and computers from same domain. Cannot be nested. Universal - Not available. |
|
Windows 2000 native or Windows Server 2003 functional level domain |
Domain Local Global Universal
|
Domain Local - Computer accounts, users, global groups, and universal groups from any forest or trusted domain. Domain local groups from the same domain. Nested domain local groups in the same domain. Global - Users, computers and global groups from same domain. Nested global (in same domain), domain local, or universal groups. Universal - Universal groups, global groups, users and computers from any domain in the forest. Nested global, domain local, or universal groups.
|
The scope of a group is determined at the time of its creation. But in a Windows 2000 native or Windows Server 2003 domain functional level domain, domain local and global groups can be converted to universal groups if the groups are not members of other groups of the same scope
.
Using the Active Directory, it could be difficult to know exactly which groups a user belongs to, whether directly or indirectly. Fortunately, Windows Server 2003 adds the DSGET command, which solves the problem.
From a command prompt, type:
dsget user UserDN -memberof [-expand]The -memberof switch returns the value of the MemberOf attribute, showing the groups to which the user directly belongs. By adding the -expand switch, those groups are searched recursively, producing an exhaustive list of all groups to which the user belongs in the domain.
Scenario
From a users computer, logged on as the user, you use the Run As command with your administrative credentials to load the Active Directory Users And Computers snap-in, and then you add the user to the Department’s FINANCEADMIN group, which has delegated administrative permissions for the user accounts in the Finance OU. You then close the Active Directory Users And Computers snap-in.
When the user attempts to reset a user’s password in the Finance OU, he is denied access.
What additional step do you need to take in order for the user to be able to perform the delegated administrative duties?
The group membership will not take effect until the users credentials are re-evaluated and a new token assigned that contains his new group membership. This token assignment occurs only at logon. Because the user was logged on to his computer at the time of the group membership change, his token does not contain the SIDs associated with his new group membership.
Adding or deleting members from a group is also accomplished through Active Directory Users And Computers. Right-click any group, and choose Properties.
The following explains the member configuration tabs of the Properties dialog box.
Members - Adding, removing, or listing the security principals that this container holds as members
Member Of - Adding, removing, or listing the containers that hold this container as a member
Windows Server 2003 supports a number of powerful command-line tools to facilitate the management of Active Directory. The following is a list, and brief description, of each tool:
|
Command |
Action |
| DSADD Adds objects to the directory. |
The DSADD USER command can take the following optional parameter after the DN parameter in relation to membership of groups: -memberof GroupDN;... |
| DSGET Displays (“gets”) properties of objects in the directory. |
The command handles the UserDN… parameter exactly as the DSADD command |
| DSMOD Modifies select attributes of an existing object in the directory. |
The command handles the UserDN… parameter exactly as the DSADD command |
| DSMOVE Moves an object from its current container to a new location. | The DSMOVE command allows you to move or rename an object within a domain. It cannot be used to move objects between domains. Its basic syntax is: dsmove ObjectDN [-newname NewName] [-newparent ParentDN] |
| DSRM Removes an object, the complete subtree under an object, or both. |
DSRM is used to remove an object, its subtree, or both. The basic syntax is: dsrm ObjectDN ... [-subtree [-exclude]] [-noprompt] [-c] |
| DSQUERY Queries Active Directory for objects that match a specified search criteria. |
This command will often be used to generate a list of objects against which you will run other command-line utilities. This is accomplished by piping the output to the second command. For example, the following command line queries Active Directory for a user object with a name starting with “Dan,” pipes the result set to DSMOD, which disables each object in the result set: dsquery user -name Dan* | dsmod user -disabled yes |
LDIF can be used to export and import data, allowing batch operations such as add, create, and modify to be performed against the Active Directory. A utility program called LDIFDE is included in Windows Server 2003 to support batch operations based on the LDIF file format standard. LDIFDE is a command-line utility, available on all Windows Server 2003 editions. From a command prompt or command shell, you run the LDIFDE utility with the appropriate command switches.
Use by typing ldifde /? at the command prompt.
General parameters
-i Turn on Import mode (The default is Export)
-f filename Input or Output filename
-s servername The server to bind to
-c FromDN ToDN Replace occurrences of FromDN to ToDN
-v Turn on Verbose mode
-j path Log File Location
-t port Port Number (default = 389)
-? Help
Most database programs have the built-in capacity to export their data into a Comma-Separated-Value (CSV) file, which LDIFDE can import. For CSV files, however, it should be noted that some elements in object creation are mandatory, and errors will result during the import if elements are missing from the file. Group creation, however, has only the required elements of a distinguished name (CN=User) and location (DC=Domain, DC=OU)
The DSADD command is used to add objects to Active Directory. To add a group, use the syntax dsadd group GroupDN… The GroupDN… parameter is one or more distinguished names for the new user objects. If a DN includes a space, surround the entire DN with quotation marks. The GroupDN… parameter can be entered one of the following ways:
By piping a list of DNs from another command, such as dsquery.
By typing each DN on the command line, separated by spaces.
By leaving the DN parameter empty, at which point you can type the DNs, one at a time, at the keyboard console of the command prompt. Press ENTER after each DN. Press CTRL+Z and ENTER after the last DN.
The DSADD GROUP command can take the following optional parameters after the DN parameter:
-secgrp {yes | no} determines whether the group is a security group (yes) or a distribution group (no). The default value is yes.
-scope {l | g | u} determines whether the group is a domain local (l), global (g, the default), or universal (u).
-samid SAMName
desc Description
-memberof GroupDN... specifies groups to which to add the new group.
-members MemberDN... specifies members to add to the group.
You can add -s, -u, and -p parameters to specify the domain controller against which DSADD will run, and the user name and password the credentials that will be used to execute the command.
{-s Server | -d Domain}
-u UserName
-p {Password
Modifying Groups with DSMOD. The DSMOD command is used to modify objects in Active Directory. To modify a group, use the syntax dsmod group GroupDN… The command takes many of the same switches as DSADD, including -samid, -desc, -secgrp, and -scope. Typically, though, you won't be changing those attributes of an existing group. Rather, the most useful switches are those that let you modify the membership of a group, specifically
-addmbr Member... adds members to the group specified in Group
-rmmbr Member... removes members from the group specified in Group where, as with all directory service commands, the DN is the full, distinguished name of another Active Directory object, surrounded by quotes if there are any spaces in the DN.
Create and manage user accounts.
CSVDE is a command-line utility that allows you to import or export objects in Active Directory from (or to) a comma-delimited text file (also known as a comma-separated value text file), which can be easily read in Notepad and Microsoft Excel. The command’s basic syntax is:
FileName] [-k]csvde [-i] [-f
-i : Specifies import mode. If not specified, the default mode is export.
-f
FileName : Identifies the import file name.-k : Ignores errors including "object already exists," "constraint violation," and "attribute or value already exists" during the import operation and continues processing.
The import file itself is a comma-delimited text file (*.csv or *.txt), in which the first line is a list of Lightweight Directory Access Protocol (LDAP) attribute names for the attributes imported, followed by one line for each object. Each object must contain exactly the attributes listed on the first line. A sample file follows:
DN,objectClass,sAMAccountName,sn,givenName,userPrincipalName
"CN=Basil.Fawlty,OU=Employees, DC=contoso,DC=com", user,bfawlty,Fawlty,Basil,[email protected]
This file, when imported, would create a user object in the Employees Organisational Unit called Bail Fawlty. The logon names, first, and last name are configured by the file. The object will be disabled initially. Once you have reset the password, you can enable the object.
Troubleshoot computer accounts.
Computer accounts, like user accounts, maintain a unique SID, which enables an administrator to grant permissions to computers. Also like user accounts, computers can belong to groups. Therefore, like user accounts, it is important to understand the effect of deleting a computer account. When a computer account is deleted, its group memberships and SID are lost. If the deletion is accidental, and another computer account is created with the same name, it is nonetheless a new account, with a new SID. Group memberships must be re-established, and any permissions assigned to the deleted computer must be reassigned to the new account. Delete computer objects only when you are certain that you no longer require those security-related attributes of the object.
To delete a computer account using Active Directory Users And Computers, locate and select the computer object and, from the Action menu or the shortcut menu, select the Delete command. You will be prompted to confirm the deletion and, because deletion is not reversible, the default response to the prompt is No. Select Yes and the object is deleted.
To delete a computer with DSRM, type:
DSRM ObjectDNWhere ObjectDN is the distinguished name of the computer, such as “CN=Desktop15, OU=Desktops,DC=contoso,DC=com.”
When a computer is disjoined from a domain—when an administrator changes the membership of the computer to a workgroup or to another domain, the computer attempts to delete its computer account in the domain. If it is not possible to do so because of lack of connectivity, networking problems, or credentials and permissions, the account will remain in Active Directory. It may appear, immediately or eventually, as disabled. If that account is no longer necessary, it must be deleted manually. If a computer is taken offline or is not to be used for an extended period of time, you may disable the account. Such an action reflects the security principle, that an identity store allow authentication only of the minimum number of accounts required to achieve the goals of an organization. Disabling the account does not modify the computer’s SID or group membership, so when the computer is brought back online, the account can be enabled. The context menu, or Action menu, of a selected computer object exposes the Disable Account command. A disabled account appears with a red “X” icon in the Active Directory Users And Computers snap-in.
While an account is disabled, the computer cannot create a secure channel with the domain. The result is that users who have not previously logged on to the computer, and who therefore do not have cached credentials on the computer, will be unable to log on until the secure channel is re-established by enabling the account. To enable a computer account, simply select the computer and choose the Enable Account command from the Action or shortcut menus.
To disable or enable a computer from the command prompt, use the DSMOD command. The DSMOD command modifies Active Directory objects. The syntax used to disable or enable computers is:
DSMOD COMPUTER
ComputerDN -DISABLED YESDSMOD COMPUTER
ComputerDN -DISABLED NO
If a computer account’s group memberships and SID, and the permissions assigned to that SID, are important to the operations of a domain. If a computer was replaced with a new system or with upgraded hardware? Such is one scenario in which you would reset
a computer account. Resetting a computer account resets its password, but maintains all of the computer object’s properties. With a reset password, the account becomes in effect "available" for use. Any computer can then join the domain using that account, including the upgraded system. In fact, the computer that had previously joined the domain with that account can use the reset account by simply rejoining the domain. This reality will be explored in more detail in the troubleshooting lesson.The Reset Account command is available in the Action and context menus when a computer object is selected. The DSMOD command can also be used to reset a computer account, with the following syntax:
dsmod computer ComputerDN -reset
The NETDOM command, included with the Windows Server 2003 Support Tools in the CD-ROM’s Support\Tools directory, also enables you to reset a computer account.
Computer accounts, and the secure relationships between computers and their domain are robust. In the rare circumstance that an account or secure channel breaks down, the symptoms of failure are generally obvious. The most common signs of computer account problems are Messages at logon indicate that a domain controller cannot be contacted; that the computer account may be missing; or that the trust (another way of saying "the secure relationship") between the computer and the domain has been lost.
Error messages or events in the event log indicating similar problems or suggesting that passwords, trusts, secure channels, or relationships with the domain or a domain controller have failed. A computer account is missing in Active Directory. If one of these situations occurs, you must troubleshoot the account. The rules that govern troubleshooting a computer account are if the computer account exists in Active Directory, it must be reset.
The fastest way to reset the computer accounts, particularly because all the accounts are in the same OU, will be a command-line tool.
DSQUERY COMPUTER ?OU=EastBranch,DC=contoso,DC=com? | DSMOD COMPUTER -RESET
This time, we pipe the results of the DSQUERY command to the input of DSMOD. The DSMOD COMPUTER -RESET command will reset each of those accounts.
Account Lockout Threshold -
This policy configures the number of invalid logon attempts that will trigger account lockout. The value can be in the range of 0 to 999. A value that is too low (as few as three, for example) may cause lockouts due to normal, human error at logon. A value of 0 will result in accounts never being locked out. The lockout counter is not affected by logons to locked workstations.Account Lockout Duration -
This policy determines the period of time that must pass after a lockout before Active Directory will automatically unlock a user’s account. The policy is not set by default, as it is useful only in conjunction with the Account Lockout Threshold policy. Although the policy accepts values ranging from 0 to 99999 minutes, a low setting (5 to 15 minutes) is sufficient to reduce attacks significantly without unreasonably affecting legitimate users who are mistakenly locked out. A value of 0 will require the user to contact appropriate administrators to unlock the account manually.Reset Account Lockout Counter After -
This setting specifies the time that must pass after an invalid logon attempt before the counter resets to zero. The range is 1 to 99999 minutes, and must be less than or equal to the account lockout duration.
Windows Server 2003 allows you to modify the properties of multiple user accounts simultaneously. You simply select several user objects by holding the CTRL key as you click each user, or using any other multiselection options. Be certain that you select only objects of one class, such as users. Once you have multiselected, on the Action menu, choose Properties.
When you have multiselected user objects, a subset of properties is available for modification.General tab Description, Office, Telephone Number, Fax, Web Page, E-mail
Account tab UPN Suffix, Logon Hours, Computer Restrictions (logon workstations), all Account Options, Account Expires
Address Street, PO Box, City, State/Province, ZIP/Postal Code, Country/Region
Profile Profile Path, Logon Script, and Home Folder
Organization Title, Department, Company, Manager
Password Policy
Enforce Password History - When this policy is enabled, Active Directory maintains a list of recently used passwords, and will not allow a user to create a password that matches a password in that history. The result is that a user, when prompted to change his or her password, cannot use the same password again. The policy is enabled by default, with the maximum value of 24.
Maximum Password Age -
This policy determines when users will be forced to change their passwords. Passwords that are unchanged or infrequently changed are more vulnerable to being cracked and utilized by attackers to impersonate a valid account. The default value is 42 days.Minimum Password Age -
When users are required to change their passwords even when a password history is enforced they can simply change their passwords several times in a row to circumvent password requirements and return to their original passwords. The Minimum Password Age policy prevents this possibility by requiring that a specified number of days must pass between password changes. Of course, a password can be reset at any time in Active Directory by an administrator or support person with sufficient permissions. But the user cannot change their password more than once during the time period specified by this setting.Minimum Password Length -
This policy specifies the minimum number of characters required in a password. The default in Windows Server 2003 is seven.Passwords Must Meet Complexity Requirements -
This policy enforces rules, or filters, on new passwords. The default password filter in Windows Server 2003 (passfilt.dll) requires that a password:
- Uppercase alphabet characters (A…)
- Lowercase alphabet characters (a…)
- Arabic numerals (0…)
- Non alphanumeric characters (for example, !$#,%) Windows Server 2003 enables this policy, by default.
Troubleshoot user authentication issues.
Cross-Platform Issues
Organizations commonly implement a mix of directory service, server, and client platforms. In environments in which Windows 95, Windows 98, Windows Me, or Windows NT 4 participate in an Active Directory domain, administrators need to be aware of several issues.
Passwords: While Windows 2000, Windows XP Professional, and Windows Server 2003 support 127 character passwords. Windows 95, Windows 98, and Windows ME support only 14 character passwords.
Active Directory Client: The Active Directory Client can be downloaded from Microsoft’s web site and installed on Windows 95, Windows 98, Windows Me, and Windows NT 4 systems. It enables those platforms running previous editions of Windows to participate in many Active Directory features available to Windows 2000 Professional or Windows XP Professional, including the following:
Site-awareness: a system with the Active Directory Client will attempt to log on to a domain controller in its site, rather than to any domain controller in the enterprise.
Active Directory Service Interfaces (ADSI): use scripting to manage Active Directory.
Distributed File System (Dfs): access Dfs shared resources on servers running Windows 2000 and Windows Server 2003.
NT LAN Manager (NTLM) version 2 authentication: uses the improved authentication features
Active Directory Windows Address Book (WAB): property pages
Active Directory search capability integrated into the Start–Find or Start– Search commands.
The following functionalities, supported on Windows 2000 Professional and Windows XP Professional, are not provided by the Active Directory client on Windows 95, Windows 98, and Windows NT 4:
Kerberos V5 authentication
Group Policy or Change and Configuration Management support
Service principal name (SPN), or mutual authentication.
Managing and Maintaining Access to Resources
The Sessions node of the Shared Folders snap-in allows you to monitor the number of users connected to a particular server and to disconnect the user. The Open Files node enumerates a list of all open files and file locks for a single server, and allows you to close one open file or disconnect all open files. Before you perform any of these actions, you can send a console message by right-clicking the Shares node to the user. Messages are sent by the Messenger Service using the computer name, not the user name. The default state of the Messenger service in Windows Server 2003 is disabled. The Messenger service must be configured for Automatic or Manual startup and must be running before a computer can send console messages.
Configure access to shared folders.
The sharing tab of a folder’s properties dialog box in Windows Explorer is available only when you configure a share while logged on to a computer interactively or through terminal services. You cannot share a folder on a remote system using Windows Explorer. Therefore, the creation, properties, configuration, and management of a shared folder using the Shared Folders snap-in, which can be used on both local and remote systems.
When you open the Shared Folders snap-in, either as a custom MMC console snap-in or as part of the Computer Management or File Server Management consoles. Notice that Windows Server 2003 has several default administrative shares already configured. These shares provide connection to the system directory (typically, C:\Windows) as well as to the root of each fixed hard disk drive. Each of these shares uses the dollar sign ($) in the share name. The dollar sign at the end of a share name configures the share as a hidden share that will not appear on browse lists, but that you may connect to with a Universal Naming Convention (UNC) in the form \\servername\sharename$. Only administrators can connect to the administrative shares.
C$, ADMIN$, FAX$, IPC$, PRINT$
The not hidden administrative shares are, NETLOGON, SYSVOL
To share a folder on a computer, connect to the computer using the Shared Folders snap-in by right-clicking the root Shared Folders node and choosing Connect To Another Computer. Once the snap-in is focused on the computer, click the Shares node and, from the shortcut or Action menu, choose New Share. The important pages and settings exposed by the wizard are
The Folder Path page Type the path to the folder on the local hard drives so, for example, if the folder is located on the server’s D drive, the folder path would be D:\foldername.
The Name, Description, and Settings page Type the share name. If your network has any down-level clients (those using DOS-based systems), be sure to adhere to the 8.3 naming convention to ensure their access to the shares. The share name will, with the server name, create the UNC to the resource, in the form \\servername\sharename. Add a dollar sign to the end of the share name to make the share a hidden share. Unlike the built-in hidden administrative shares, hidden shares that are created manually can be connected to by any user, restricted only by the share permissions on the folder.
The Permissions page Select the appropriate share permissions.
Manage shared folder permissions.
While share permissions are not as detailed as NTFS permissions, they have: Read, Change, and Full Control.
The effective set of share permissions is the cumulative result of the Allow permissions granted to a user and all groups to which that user belongs. If, for example, you are a member of a group that has Read permission and a member of another group that has Change permission, your effective permissions are Change. However, a Deny permission will override an Allow permission. If, on the other hand, you are in one group that has been allowed Read access and in another group that has been denied Full Control, you will be unable to read the files or folders in that share.
Share permissions define the maximum effective permissions for all files and folders beneath the shared folder. Permissions can be further restricted, but cannot be broadened, by NTFS permissions on specific files and folders. A user’s access to a file or folder is the most restrictive set of effective permissions between share permissions and NTFS permissions on that resource.
If you want a group to have full control of a folder and have granted full control through NTFS permissions, but the share permission is the default (Everyone: Allow Read) or even if the share permission allows Change, that group’s NTFS full control access will be limited by the share permission.
Share permissions have significant limitations, including the following:
Share permissions apply only to network access through the Client for Microsoft Networks; they do not apply to local or terminal service access to files and folders, nor to other types of network access, such as File Transfer Protocol (FTP)
Share permissions do not replicate through file replication service (FRS).
Share permissions are not included in a backup or restore of a data volume.
Share permissions are lost if you move or rename the folder that is shared.
Share permissions are not granular; they provide a single permissions template that applies to every file and folder beneath the shared folder. You cannot enlarge access to any folder or file beneath the shared folder; and you cannot further restrict access without turning to NTFS permissions.
You cannot configure auditing based on share permissions.
Share permissions have three levels of access, Read / Change / Full control
The default share permission in Windows Server 2003 sets Everyone: Allow Read and Administrators: Allow Full Control as the default share permission.
Troubleshoot Terminal Services.
When installing Terminal Server, you will be given the choice of Full Security and Relaxed Security. Full Security, the default, protects certain operating system files and shared program files. Older applications may not function in this more secure configuration, at which point you may choose Relaxed Security. The setting can be changed at any time using the Server Settings in the Terminal Server Configuration console.
The technology of Terminal Services and Remote Assistance is so closely tied that both services use the same network port: 3389, which must be open through any firewall for the Remote Assistance session to succeed.
If the Terminal Server is a Domain Controller, and the Default Domain Controller Group Policy has not been enabled to allow remote connections by the Remote Administrative Users group. The Local Group Policy on Domain Controllers forbids non-administrator remote connections. You will receive a message "The local policy of this system does not permit you to logon interactively" and must be changed. The easiest way to change the Local Policy is to override it with a change to the Default Domain Controller Group Policy to allow Remote connections by the Remote Administrative users group.
As part of your Terminal Server deployment, you must install a Terminal Server License Server, preferably on a server that is not a terminal server. Use Add/Remove Programs to install Terminal Server Licensing. You will be asked whether the server should be an Enterprise License Server or a Domain License Server.
An Enterprise License Server is the most common configuration, and the server can provide licenses to terminal servers in any Windows 2000 or Windows Server 2003 domain within the forest.
Use a Domain License Server when you want to maintain a separate license database for each domain, or when terminal servers are running in a workgroup or a Windows NT 4 domain.
The Remote Desktop client allows 32-bit Windows platforms to connect to a terminal server using the Remote Desktop Protocol (RDP). The client includes numerous settings that configure the connection and the user’s experience. Settings are saved Remote Desktop Connection (.rdp) files that can easily be opened for future connections, or distributed to other users as a connection profile. Settings in the .rdp file or the Remote Desktop client affect the current user’s connection to the specified terminal server.
A client connects to the terminal server by specifying the server’s name or Internet Protocol (IP) address. The Terminal Server receives the connection request through the specified network adapter. This connection is represented by a connection object, which is visible in the Terminal Services Configuration console. The connection object’s properties configure settings that affect all user connections through the network adapter. Settings in the connection will override client requested settings and settings in the user account.
A user’s ability to connect and log on to a terminal server is determined by a number of factors, each of which, if not functioning properly, produces a unique error message
:The connection on the terminal server must be accessible. If the client cannot reach the server using TCP/IP, or if the terminal server’s RDP-Tcp connection is disabled, an error message appears that indicates that the client cannot connect to the server.
Remote Desktop must be enabled. The ability of a terminal server to accept new connections can be controlled on the Remote tab of the System properties dialog box or by using the change logon /disable and change logon /enable
The server must have available connections. The properties of the connection the default RDP-Tcp connection, for example determine the number of available connections on the Network Adapter tab. If sufficient connections are not available, an error message appears that indicates that a network error is preventing connection.
Encryption must be compatible. The default allows any client to connect to a terminal server without regard to its encryption capability. If you modify the encryption requirements for a connection by using the Encryption list on the General tab of the connection properties, clients that are not capable of that encryption mode will not be allowed to connect.
The user must have sufficient connection permissions. the Remote Desktop Users group has User Access permissions, which gives the group sufficient permissions to log on to the server. The access control list (ACL) of the connection can be modified to control access in configurations that differ from the default. Refer to the Help and Support Centre for more information. If a user does not have sufficient permission to the connection, an error message will appear that indicates that the user does not have access to the session.
The user must have the user logon right to log on to the terminal server. Windows Server 2003 separates the right required to log on
The user must belong to the correct group or groups. Assuming you have managed connection permissions and the right to log on through Terminal Services by assigning rights and permissions to a group, the user attempting to connect to the terminal server must be in that group. With the default configuration of Terminal Server on a member server, users must be members of the Remote Desktop Users group to connect to a terminal server.
Allow logon to terminal server enabled. The user account’s Terminal Services Profile tab, indicates that the user is allowed to log on to a terminal server. If this setting is disabled, the user will receive an error message indicating that the interactive logon privilege has been disabled. This error message is easy to confuse with insufficient user logon rights; however, in that case, the error message indicates that the local policy of the server is not allowing logon.
To configure a terminal server cluster, you need:
Load balancing technology such as Network Load Balancing (NLB) or DNS round-robin. The load balancing solution will distribute client connections to each of the terminal servers.
A Terminal Services Session Directory. You must enable the Terminal Services Session Directory, which is installed by default on Windows Server 2003 Enterprise and Datacenter Editions, using the Services console in Administrative Tools. It is best practice to enable the session directory on a server that is not running Terminal Server. The Terminal Services Session Directory maintains a database that tracks each user session on servers in the cluster. The computer running the session directory creates a Session Directory Computers local group, to which you must add the computer accounts of all servers in the cluster.
Terminal server connection configuration. Finally, you must direct the cluster’s servers to the session directory. This process involves specifying that the server is part of a directory, the name of the session directory server, and the name for the cluster, which can be any name you wish as long as the same name is specified for each server in the cluster. These settings can be specified in the Server Settings node of Terminal Server Configuration, or they can be set using a GPO applied to an OU that contains the computer objects for the cluster’s terminal servers.
When a user connects to the terminal server cluster, the following process occurs:
When the user logs on to the terminal server cluster, the terminal server receiving the initial client logon request sends a query to the session directory server.
The session directory server checks the username against its database and sends the result to the requesting server as follows:
If the user has no disconnected sessions, logon continues at the server hosting the initial connection.
If the user has a disconnected session on another server, the client session is passed to that server and logon continues.
When the user logs on to a new or disconnected session, the session directory is updated.
Configure file system permissions.
Security can be configured for files and folders on any NTFS volume by right-clicking the resource and choosing Properties (or Sharing And Security) then clicking the Security tab. The interface that appears can been called the Permissions dialog box, or the Security Settings dialog box, or the Security tab or the Access Control List editor (ACL editor).
The ACL editor has three dialog boxes, each of which supports different and important functionality.
The first dialog box provides a view of the resource’s security settings or permissions, allowing you to select each account that has access defined and to see the permissions templates assigned to that user, group, or computer. Each template shown in this dialog box represents a bundle of permissions that together allow a commonly configured level of access.
For example, to allow a user to read a file, several granular permissions are needed. To mask that complexity, you can simply apply the Allow:Read & Execute permissions template and, behind the scenes, Windows sets the correct file or folder permissions. To view more details about the ACL, click Advanced, which exposes the second of the ACL editor’s dialog boxes.
The Advanced Security Settings For Docs dialog box. This dialog box lists the specific access control entries that have been assigned to the file or folder. The listing is the closest approximation in the user interface to the actual information stored in the ACL itself. The second dialog also enables you to configure auditing, manage ownership, and evaluate effective permissions.
If you select a permission in the Permission Entries list and click Edit, the ACL editor’s third dialog box appears. This Permission Entry For Docs dialog box, lists the detailed, most granular permissions that comprise the permissions entry in the second dialog box’s Permissions Entries list and the first dialog box’s Permissions For Users list.
It is possible to use the cacls command via a command line to view permissions assigned to a file / folder. For example, if you wish to view the total permissions assigned to a folder on the c:\ drive, called "documents", type:
C:\>cacls documents
C:\Documents ACEMECORP\Joe:(OI)(CI)(DENY)(special access:)
READ_CONTROL
FILE_READ_DATA
FILE_READ_EA
FILE_READ_ATTRIBUTES
ACMECORP\Sales:(OI)(CI)(DENY)(special access:)
FILE_WRITE_DATA
FILE_APPEND_DATA
FILE_WRITE_EA
FILE_WRITE_ATTRIBUTES
The rules that determine effective permissions are as follows:
File permissions override folder permissions. Each resource maintains an ACL that is solely responsible for determining resource access. Although entries on that ACL may appear because they are inherited from a parent folder, they are nevertheless entries on that resource’s ACL. The security subsystem does not consult the parent folder to determine access at all. So you may interpret this rule as: The only ACL that matters is the ACL on the resource.
Allow permissions are cumulative.
Your level of resource access may be determined by permissions assigned to one or more groups to which you belong. The Allow permissions that are assigned to any of the user, group, or computer IDs in your security access token will apply to you, so your effective permissions are fundamentally the sum of those Allow permissions.If the Sales Reps group is allowed Read & Execute and Write permissions to a folder, and the Sales Managers group is allowed Read & Execute and Delete permissions, a user who belongs to both groups will have effective permissions equivalent to the Modify permissions template: Read & Execute, Write and Delete.
Explicit permissions take precedence over inherited permissions. A permission entry that is explicitly defined for a resource will override a conflicting inherited permission entry. This follows common sense design principles: A parent folder sets a “rule” through its inheritable permissions. A child object requires access that is an exception to the rule, and so an explicit permission is added to its ACL. The explicit permission takes precedence. An explicit Allow permission will override an inherited Deny permission.
Share vs File permissions. The most restrictive of the two effective permissions between NTFS and share permissions will take effect.
NTFS permissions, basic and special are inherited by default.
When a user creates a file or folder (which is possible if that user is allowed Create Files/Write Data or Create Folders/Append Data, respectively), the user is the creator and initial owner of that resource. Any permissions on the parent folder assigned to the special account Creator Owner are explicitly assigned to the user on the new resource.
If for some reason the creator/owner managed to modify the ACL and deny them self Full Control, they could nevertheless modify the ACL, because an object’s owner can always modify its ACL, preventing users from permanently locking themselves out of their files and folders.
A user who belongs to the Administrators group of a system, or who has otherwise been granted the Take Ownership user right, can take ownership of any object on the system. Then, as owner, the administrator can change permissions on the resource to grant Allow Take Ownership permission to the new owner, who then can take ownership of the resource.
A user with the Restore Files And Directories rights may transfer ownership of a file from one user to another. If you have been assigned the Restore Files And Directories right, you can click Other Users Or Groups and select the new owner. This makes it possible for administrators and backup operators to manage and transfer resource ownership without requiring user intervention.
A user or group who has been assigned the Allow Take Ownership permission for a specific object, can take ownership of that object on the system.
Monitor and analyze events. Tools might include Event Viewer and System Monitor.
Configuring auditing entries in the security descriptor of a file or folder does not, in itself, enable auditing. Auditing must be enabled through policy. Once auditing is enabled, the security subsystem begins to pay attention to the audit settings, and to log access as directed by those settings.
Audit policy may be enabled on a stand-alone server using the Local Security Policy console, and on a domain controller using the Domain Controller Security Policy console. Select the Audit Policy node under the Local Policies node and double-click the policy, Audit Object Access. Select Define These Policy Settings and then select whether to enable auditing for successes, failures, or both.
Once audit entries have been configured on files or folders, and auditing object access has been enabled through local or group policy, the system will begin to log access according to the audit entries. You can view and examine the results using Event Viewer and selecting the Security log,
Sorting will be better served by filtering the event log, which can be done by choosing the Filter command from the View menu, or alternatively by selecting the Security log, then Properties from the Action or shortcut menus, and then clicking the Filter tab. The Filter tab enables you to specify criteria including the event type, category, source, date range, user, and computer.
You have the option to export the Security log by selecting the Save Log File As command from the log’s context menu. The native event log file format takes a .evt extension. You can open that file with Event Viewer on another system. Alternatively, you can save the log to tab- or comma-delimited file formats.
How to create and configure an Event Viewer console on the MMC.
In the command text box, type mmc, and then click OK.
The Add/Remove Snap-In dialog appears with the Standalone tab active.
In the Select Computer dialog box, select Local Computer, and then click Finish.
In the Add Standalone Snap-In dialog box, click Close, and then in the Add/ Remove Snap-Ins dialog box, click OK. Event Viewer (Local) now appears in the console tree.
The Select Computer dialog box appears, allowing you to specify the computer you want to administer. You can add the Event Viewer snap-in for the local computer on which you are working, or if your local computer is part of a network, you can add Event Viewer for a remote computer.
With System Monitor, you can collect and view data by configuring counters that report hardware, application, and service activity for any computer on your network. Three configurations must be made for the data you wish to collect.
Type of data You can specify one or more counter instances of performance monitor objects for which you want data to be reported.
Source of data Either local or remote computer data can be collected by a counter. You must be a local administrator or a member of the Performance Log Users group on the computer from which you wish to collect data.
Sampling intervals Data can be recorded manually in real time, or set to a periodic interval that you specify.
Additional counters can be added or removed by choosing Add (Ctrl+I) on the toolbar, or right-clicking anywhere in the details pane and choosing Add Counters from the shortcut menu. In the Add Counters dialog box, you can select any of the available counters for either the local computer or any remote computer on your network. Counters are arranged and available for use based on the type of object, the counter in the object category, and the instance of the counter.
Object A logical collection of resource, service, or application counters.
Counter A data-reporting item. The data reported depends on the type of counter.
Instance
Manage software update infrastructure.
Software Update Services (SUS) is a client-server application that enables a server on your intranet to act as a point of administration for updates. You can approve updates for SUS clients, which then download and install the approved updates automatically without requiring local administrator account interaction.
SUS has both client and server components. Internet Information Services (IIS) must be installed before setting up SUS. SUS is not included with the Windows Server 2003 media, but it is a free download from the Microsoft SUS Web site at
http://www.microsoft.com/windowsserversystem/updateservices/evaluation/previous/default.mspxEach Windows Update patch consists of two components: the patch file itself and metadata that specifies the platforms and languages to which the patch applies. SUS always downloads metadata, which you will use to approve updates and which clients on your intranet will retrieve from SUS. You can choose whether to download the files themselves and, if so, where to save the updates.
If you elect to keep the update files on Microsoft Windows Update servers, Automatic Updates clients will connect to your SUS server to obtain the list of approved updates and will then connect to Microsoft Windows Update servers to download the files. You can thereby maintain control of client updating and take advantage of the hosting provided by Microsoft.
If you choose the Save The Updates To This Local Folder option, the Setup Wizard defaults to the drive with the most free space, and will create a folder called SUS on that drive. You can save the files to any NT file system (NTFS) partition; Microsoft recommends a minimum of 6 gigabytes (GB) of free space. The SUS partition and the system partition must be formatted as NTFS.
You must be a local administrator on the SUS server to administer and configure Software Update Services.
Although the SUS server can be configured to access Windows Update through a proxy server that requires authentication, the Automatic Updates client cannot access Windows Update if the proxy server requires authentication. If your proxy server requires authentication, you can configure SUS to authenticate, and you must store all update content files as well as metadata locally.
Synchronise SUS:
Once installed, you will need to synchronize the SUS server. On the SUS Administration Web page, click Synchronize Server. On the Synchronize Server page, you can start a manual synchronization or configure automatic, scheduled synchronization. Click Synchronize Now and, when synchronization is complete, you will be informed of its success or failure, and, if the synchronization was successful, you will be taken to the Approve Updates page. To schedule synchronization, click Synchronization Schedule. You can configure the time of day for synchronization and whether synchronization occurs daily or weekly on a specified day. When a scheduled synchronization fails, SUS will try again for the Number Of Synchronization Retries To Attempt setting. Retries occur at 30-minute intervals.
Approve new updates:
To approve the newly synch'd updates for distribution to client computers, click Approve Updates in the left navigation bar. The Approve Updates page appears. Select the updates that you wish to approve, then click Approve. If you are unsure about the applicability of a particular update, click the Details link in the update summary. The Details page that opens will include a link to the actual *.cab file that is used to install the package, and a link to the Read More page about the update, which will open the Microsoft Knowledge Base article related to the update.
SUS Client:
The client component of SUS is Windows Automatic Updates, which is supported on Windows 2000, Windows XP, and Windows Server 2003. The Automatic Updates client is included with Windows Server 2003, Windows 2000 Service Pack 3, and Windows XP Service Pack 1.
The Automatic Updates client of Windows Server 2003 is configured to connect automatically to the Microsoft Windows Update server and download updates, then prompt the user to install them. This behaviour can be modified by accessing the Automatic Updates tab in the System Properties dialog box, accessible by clicking System in Control Panel, in Windows XP and Windows Server2003. In Windows 2000 click Automatic Updates in Control Panel. Automatic Updates can also be configured using GPOs or registry values. Once you have installed SUS in your organization, you can direct Automatic Updates to connect to specific intranet servers by configuring the registry of clients manually or by using Windows Update group policies. To configure Automatic Updates using GPOs, open a GPO and navigate to the Computer Configuration\Administrative Templates\Windows Components\Windows Update node.
Monitor SUS:
The Monitor Server page of the SUS Administration Web site displays statistics that reflect the number of updates available for each platform, and the date and time of the most recent update. The information is summarized from the Windows Update metadata that is downloaded during each synchronization. Metadata information is written to disk and stored in memory to improve performance as systems request platform appropriate updates.
You can also monitor SUS and Automatic Updates using the following logs:
Synchronization Log You can retrieve information about current or past synchronizations, and the specific packages that were downloaded by clicking View Synchronization Log in the left navigation bar. You can also use any text editor to open the XML based database (History-Sync.xml) directly from the SUS Web site’s \AutoUpdate\Administration directory in IIS.
Approval Log For information about packages that have been approved, click View Approval Log in the left navigation bar. Alternatively, you can open History-Approve.xml from the SUS Web site’s \AutoUpdate\Administration directory in IIS.
Windows Update Log The Automatic Updates client logs activity in the %Windir%\Windows Update.log file on the client’s local hard disk.
Wutrack.bin The client’s interaction with SUS is logged to the specified statistics server’s IIS logs, typically stored in the folder: %Windir%\System32\Logfiles \W3svc1. These logs, which are verbose and cryptic, are designed to be analyzed by programs only.
Backing Up SUS:
To back up SUS, you must back up the folder that contains SUS content, the SUS Administration Web site, and the IIS metabase.
First, back up the metabase -the XML database containing the configuration of IIS. Using the MMC IIS snap-in, select the server to back up and, from the Action menu, select All Tasks, then Backup/Restore Configuration. Click Create Backup and enter a name for the backup. When you click OK, the metabase is backed up.
Then back up the following using Ntbackup or another backup utility:
The default Web site, which is located unless otherwise configured in C:\Inetpub \Wwwroot.
The SUS Administration Web site. SUSAdmin is, by default, a subfolder of C:\Inetpub\Wwwroot. .
The AutoUpdate virtual directory, by default a subfolder of C:\Inetpub \Wwwroot.
The SUS content location you specified in SUS setup or the SUS options. You can confirm the SUS content location in IIS manager by clicking Default Web Site and examining the path to the Content virtual root in the details pane.
The metabase backup directory, %Windir%\System32\Inetsrv\Metaback, which contains the copy of the metabase made earlier.
SUS Server Recovery:
To restore a failed SUS server, perform the steps described below:
Install Windows Server 2003, being sure to give the server the same name it had previously.
Install IIS with the same components it had previously.
Install the latest service pack and security fixes. If the server must be connected to the network to achieve this step, take all possible precautions to prevent unnecessary exposure.
Install SUS into the same folder it was previously installed.
Run Ntbackup to restore the most recent backup of SUS. This will include the SUS content folder, the Default Web Site, including the SUSAdmin and AutoUpdate virtual directories, and the IIS metabase backup.
Open the MMC IIS snap-in and select the server to restore. From the Action menu, select All Tasks, then Backup/Restore Configuration and select the backup that was just restored. Click Restore.
Confirm the success of your recovery by opening the SUS Administration Web site and clicking Set Options. Check that the previous settings are in place, and that the previously approved updates are still approved.
Update Services is the next version of Software Update Services (SUS). For more information, navigate to: http://www.microsoft.com/windowsserversystem/updateservices/evaluation/overview.mspx
Manage software site licensing.
Per-Server Licensing
Per-server licensing requires a User or Device CAL for each concurrent connection. If a server is configured with 1,000 CALs, the 1,001st concurrent connection is denied access. CALs are designated for use on a particular server, so if the same 1,000 users require concurrent connections to a second server, you must purchase another 1,000 CALs.
Per server licensing is advantageous only in limited access scenarios, such as when a subset of your user population accesses a server product on very few servers. Per server licensing is less cost-effective in a situation where multiple users access multiple resources on multiple servers. If you are unsure which licensing mode is appropriate, select Per Server. The license agreement allows a no-cost, one-time, one-way conversion from Per Server to Per Device or Per User licensing when it becomes appropriate to do so.
Per-Device or Per-User Licensing
The Per Device or Per User licensing mode varies from the Per Seat scheme of previous versions of Windows. In this new mode, each device or user that connects to a server requires a CAL, but with that license the device or user can connect to a number of servers in the enterprise. Per User or Per Device mode is generally the mode of choice for distributed computing environments in which multiple users access multiple servers.
For example, a developer who uses a laptop and two desktops would require only one Windows User CAL. A fleet of 10 Tablet PCs that are used by 30 shift workers would require only 10 Windows Device CALs. The total number of CALs equals the number of devices or users, or a mixture thereof, that access servers. CALs can be reassigned under certain, understandable conditions— for example a Windows User CAL can be reassigned from a permanent employee to a temporary employee while the permanent employee is on leave. A Windows Device CAL can be reassigned to a loaner device while a device is being repaired.
There are two utilities that will help you track and manage software licensing:
Licensing in Control Panel The Control Panel Choose Licensing Mode tool, manages licensing requirements for a single computer running Windows Server 2003. You can use Licensing to add or remove CALs for a server running in per-server mode; to change the licensing mode from Per Server to Per Device or Per User; or to configure licensing replication.
Licensing in Administrative Tools The Licensing administrative tool, allows you to manage licensing for an enterprise by centralizing the control of licensing and license replication in a site-based model.
The License Logging service, which runs on each Windows Server 2003 computer, assigns and tracks licenses when server resources are accessed. To ensure compliance, licensing information is replicated to a centralized licensing database on a server in the site. This server is called the site license server. A site administrator, or an administrator for the site license server, can then use the Microsoft Licensing tool in Administrative Tools program group to view and manage licensing for the entire site. This new license tracking and management capability incorporates licenses not just for file and print services, but for IIS, for Terminal Services, and for BackOffice products such as Exchange or SQL Server.
T
he site license server is typically the first domain controller created in a site. To find out what server is the license server for a site, open Active Directory Sites And Services, expand to select the Site node then right-click Licensing Site Settings and choose Properties. The current site license server is displayed. To assign the site license server role to another server or domain controller, click Change and select the desired computer. To retain the licensing history for your enterprise, you must immediately after transferring the role stop the License Logging service on the new license server, then copy the following files from the old to the new licensing server:%Systemroot%\System32\Cpl.cfg contains the purchase history for your organization.
%Systemroot%\Lls\Llsuser.lls contains user information about the number of connections.
%Systemroot%\Lls\Llsmap.lls contains license group information. After all files have been copied, restart the License Logging service.
Administering licenses
Administering Site Licenses Once you have identified the site license server for a site, you can view the licensing information on that server opening Licensing from the Administrative Tools program group. The Server Browser tab page of Licensing allows you to manage any server in any site or domain for which you have administrative authority. You can locate a server and, by right-clicking it and choosing Properties, manage that server’s licenses. For each server product installed on that server, you can add or remove per-server licenses. You can also, where appropriate, convert the licensing mode. When a user disconnects from the server product, the License Logging service makes the license available to another user.
The server properties also allow you to configure license replication, which can be set on a server using its Licensing properties in Control Panel. By default, license information is replicated from a server’s License Logging Service to the site license server every 24 hours, and the system automatically staggers replication to avoid burdening the site licensing server. If you want to control replication schedules or frequency, you must manually vary the Start At time and Start Every frequency of each server replicating to a particular site license server.
To manage Per Device or Per User licensing, click Licensing from the Administrative Tools program group, then choose the New License command from the License menu. In the New Client Access License dialog box, select the server product and the number of licenses purchased. Licenses are added to the pool of licenses. As devices or users connect to the product anywhere in the site, they are allocated licenses from the pool, with one license for each device or user. After a pool of licenses is depleted, license violations occur when additional devices or users access the product.
License Groups
License Groups Per Device or Per User licensing requires one CAL for each device. However, the License Logging service assigns and tracks licenses by user name. When multiple users share one or more devices, you must create license groups, or else licenses will be consumed too rapidly. A license group is a collection of users who collectively share one or more CALs. When a user connects to the server product, the License Logging service tracks the user by name, but assigns a CAL from the allocation assigned to the license group.
10 users share a single handheld device for taking inventory. A license group is created with the 10 users as members. The license group is assigned one CAL, representing the single device they share.
100 students occasionally use a computer lab with 10 computers. A license group is created with the 100 students as members, and is allocated 10 CALs.
To create a license group, click the Options menu and, from the Advanced menu, choose New License Group. Enter the group name and allocate one license for each client device used to access the server. The number of licenses allocated to a group should correspond to the number of devices used by members of the group.
A request for remote assistance can be sent either through a Microsoft .NET Passport account, through sending a saved file, or through a non-Passport e-mail account, along with allowing you to make a request using Windows Messenger. For a successful request through e-mail, both computers must be using a MAPI compliant e-mail client.
If the user chooses to send an e-mail or file request for Remote Assistance, a password will be required as a shared secret for the Remote Assistance session. The user let's the expert know what the password is in a separate communication such as a telephone call or secure e-mail.
To use the Windows Messenger service for your Remote Assistance connection, you must have the assistant’s Windows Messenger user name in your contact list, and make
the request from a Windows Messenger client. Windows Messenger will display their status as online or offline. Remote Assistance can only be requested directly when your assistant is online. Remote Assistant requires that both computers are running Windows XP or a product in the Windows Server 2003 family. The Instant Messenger Service itself relies upon port 1863 being open.Remote Assistance runs on top of Terminal Services technology, which means it must use the same port used by Terminal Services: port 3389. Remote Assistance will not work when outbound traffic from port: 3389 is blocked. In addition, there are several other firewall-related concerns, particularly in relation to Network Address Translation (NAT).
Remote Assistance supports Universal Plug and Play (UPnP) to Traverse Network Address Translation devices. This is helpful on smaller, home office networks, as Windows XP Internet Connection Sharing (ICS) supports UPnP. However, Windows 2000 ICS does not support UPnP.
Remote Assistance will detect the Internet IP address and TCP port number on the UPnP NAT device and insert the address into the Remote Assistance encrypted ticket. The Internet IP address and TCP port number will be used to connect through the NAT device by the helper or requester workstation to establish a Remote Assistance session. The Remote Assistance connection request will then be forwarded to the client by the NAT device.
Remote Assistance will not connect when the requester is behind a non-UPnP NAT device when e-mail is used to send the invitation file. When sending an invitation using Windows Messenger, a non-UPnP NAT device will work if one client is behind a NAT device. If both the helper and requester computers are behind non-UPnP NAT devices, the Remote Assistance connection will fail.
Remote assistance is turned ON by default on Windows XP professional, but for security reasons - it is turned OFF by default on Windows 2003 Server computers.
The Terminal Services service enables Remote Desktop, Remote Assistance, and Terminal Server for application sharing. The service is installed by default on Windows Server 2003, configured in Remote Desktop for remote administration mode. Remote Desktop mode allows only two concurrent remote connections, and does not include the application sharing components of Terminal Server. Therefore, Remote Desktop operates with very little overhead on the system, and with no additional licensing requirements.
To enable Remote Desktop connections on a Windows Server 2003 computer, open the System properties from Control Panel. On the Remote tab, select Allow Users To Connect Remotely To This Computer.
If the Terminal Server is a Domain Controller, you must also configure the Group Policy on the Domain Controller to allow connection through Terminal Services to the Remote Desktop Users group. By default, Non-Domain Controller servers will allow Terminal Services connections by this group.
On Windows XP and Windows Server 2003 computers, Remote Desktop Connection is installed by default, its default location in the All Programs\Accessories\Communications program group on the Start menu.
When using Remote Desktop for Administration, you are creating a connection to a server’s console. There are several potential causes of failed connections or problematic sessions:
Network failures Errors in standard TCP/IP networking can cause a Remote Desktop connection to fail or be interrupted. If DNS is not functioning, a client may not be able to locate the server by name. If routing is not functioning, or the Terminal Services port (by default, port 3389) maybe misconfigured on either the client or the server, the connection will not be established.
Credentials
Policy Domain controllers will only allow connections via Remote Desktop to administrators. You must configure the domain controller security policy to allow connections for all other remote user connections.
Too many concurrent connections If sessions have been disconnected without being logged off, the server may consider its concurrent connection limit reached even though there are not two human users connected at the time. An administrator might close a remote session without logging off. If more administrators attempt to connect to the server, only one more will be allowed to connect before the limit of two concurrent connections is reached.
To connect to and manage another system using the MMC - Computer Management console, you must launch the console with an account that has administrative credentials on the remote computer. If your credentials do not have elevated privileges on the target computer, you will be able to load the snap-in, but will not be able to read information from the target computer. You can use Run As, or secondary logon, to launch a console with credentials other than those with which you are currently logged on.
When you’re ready to manage the remote system, you may open an existing console with the snap-in loaded, or configure a new MMC with a snap-in that you configure for remote connection when you build the console. If you configure an existing Computer Management console, for example, follow these steps:
Open the Computer Management console by right-clicking My Computer and choosing Manage from the shortcut menu.
Right-click Computer Management in the tree pane and choose Connect To Another Computer.
type the name or IP address of the computer or browse the network for it, and then click OK to connect.
Printer driver download
During a new printer setup, Windows Server 2003 loads drivers onto the print server that support that printer for clients running Windows Server 2003, Windows XP, and Windows 2000. Printer drivers are platform-specific. If other platforms will be connecting to the shared logical printer, install the appropriate drivers on the server, so that Windows clients will download the driver automatically when they connect. Otherwise, you will be prompted for the correct drivers on each individual client.
Client computers running Windows NT, Windows 2000, Windows XP, and Windows Server 2003 download the driver when they first connect to the shared printer. They also verify that they have the current printer driver each time they print and, if they do not, they download the updated driver. For these client computers, you need only update printer drivers on the print server. Client computers running Windows 95 or Windows 98 do not check for updated printer drivers, once the driver is initially downloaded and installed. You must manually install updated printer drivers on these clients.
Printer pool
A printer pool is one logical printer that supports multiple physical printers, either attached to the server, attached to the network, or a combination thereof. When you create a printer pool, users’ documents are sent to the first available printer. The logical printer representing the pool automatically checks for an available port. Printer pooling is configured from the Ports tab of the printer’s Properties dialog box. To set up printer pooling, select the Enable Printer Pooling check box, and then select or add the ports containing print devices that will be part of the pool. The driver used by the printer pool must be compatible with all printers to which the pool directs print jobs.
Printer priority
To achieve a multiple logical printer-single port structure, additional printers use the same port as an existing logical printer. The printer name and share name are unique. After the new printer has been added, open its properties and configure the drivers, ACL, printing defaults, and other settings of the new logical printer. To configure high priority for the new logical printer, click the Advanced tab and set the priority, in the range of 1 (lowest) to 99 (highest). Assuming that you assigned 99 to the executives’ logical printer, and 1 to the printer used by all users, documents sent to the executives’ printer will print before documents queued in the users’ printer. An executive’s document will not interrupt a user’s print job. However, when the printer is free, it will accept jobs from the higher-priority printer before accepting jobs from the lower-priority printer. To prevent users from printing to the executives’ printer, configure its ACL and remove the print permission assigned to the Everyone group, and instead allow only the executives’ security group print permission.
Pruner
If a print server disappears from the network, its printer object is removed from the Active Directory. The printer Pruner service confirms the existence of shared printers represented in Active Directory by contacting the shared printer every eight hours. A printer object will be pruned if the service is unable to contact the printer two times in a row. A print server will automatically recreate the printer objects for its printers when the machine starts, or when the spooler service is restarted.
Logical printers that are shared on computers running Windows NT 4 or Windows NT 3.51 are not published on the AD automatically, but can be manually published using the Active Directory Users And Computers MMC console. Simply right-click the OU or other container in which you want to create the printer and choose New Printer.
Redirecting Print Jobs
If a printer is malfunctioning, you can send documents in the queue for that printer to another printer connected to a local port on the computer, or attached to the network. This is called redirecting print jobs. It allows users to continue sending jobs to the logical printer, and prevents users with documents in the queue from having to resubmit the jobs.
To redirect a printer, open the printer’s Properties dialog and click the Ports tab. Select an existing port or add a port. The check box of the port of the malfunctioning printer is immediately cleared unless printer pooling is enabled, in which case you must manually clear the check box. Because print jobs have already been prepared for the former printer, the printer on the new port must be compatible with the driver used in the logical printer. All print jobs are now redirected to the new port. You cannot redirect individual documents. In addition, any documents currently printing cannot be redirected.
System Monitor use
After selecting Print Queue as the performance object for the System Monitor, a list of all available performance counters is provided. You can select any counter and click Explain to learn about that particular performance metric. Some of the most used counters are:
Bytes Printed/Sec The number of bytes of raw data per second that are sent to the printer. Low values for this counter can indicate that a printer is underutilized, either because there are no jobs, print queues are not evenly loaded, or the server is too busy. This value varies according to the type of printer.
Job Errors Number of job errors. Job errors are typically caused by improper port configuration; check port configuration for invalid settings. A printing job instance will increment this counter only once, even if it happens multiple times. Also, some print monitors do not support job error counters, in which case the counter will remain at 0.
Jobs The number of jobs being spooled.
Total Jobs Printed The number of jobs sent to the printer since the spooler was started.
Total Pages Printed The number of pages printed since the spooler was started. This counter provides a close approximation of printer volume, although it may not be perfect, depending on the type of jobs and the document properties for those jobs.
Using Event Viewer
With the event viewer
, you can examine the System log as a source of information regarding spooler and printer activity. By default, the spooler registers events regarding printer creation, deletion, and modification. You will also find events containing information about printer traffic, hard disk space, spooler errors, and other maintenance issues.To control or modify spooler event logging, open the Printers And Faxes folder and choose Server Properties from the File menu. Click the Advanced tab to access the properties. From this page, you can control printer event log entries and print job notifications. This is also the tab that enables you to move the print spooler folder, or when an existing print spool folder’s disk volume becomes full.
Monitor file and print servers. Tools might include Task Manager, Event Viewer, and System Monitor.
When quotas are enabled, the quota manager tracks the files on a volume that are owned by a user. It then compares the calculated total of disk usage by that user to limits that have been configured by an administrator and, when those limits are reached, notifies the user that the volume is near quota, or prevents the user from writing to the disk, or both.
Configuring quotas requires the following steps: enabling quotas on a NTFS only volume, configuring default quota settings, and configuring quota entries for exceptions to the default. Quotas are disabled by default in Windows Server 2003, and must be enabled on a volume-by-volume basis. To enable quotas, open the properties of the volume and click the Quota tab.
Select the Enable Quota Management check box. If you want to deny users who have exceeded their limit the ability to write additional files to the volume, select Deny Disk Space To Users Exceeding Quota Limit. If this box is not selected, users can continue to write to the volume.
Quota manager registers events in the System log, identifying the user by name and specifying that they have exceeded their warning or quota limits. After configuring the defaults for the volume on the Quota tab, click Quota Entries to open the Quota Entries dialog box. The Quota Entries dialog box displays disk storage per user and whether that storage is at or above warning levels or limits. You can sort by column to identify users who have exceeded their quota levels or limits. There is no mechanism to alert you about quota limits, so you must monitor the Quota Entries dialog box or the System Log in Event Viewer.
Disk Quotas can be implemented per-volume and per-user only. You cannot implement quotas on a per-folder or per-group basis. Quotas are supported only on NTFS volumes.
Administrators have No Limit configured as their quota entry. That enables administrators to install the operating system, services, applications, and data without exceeding a quota.
Print queues can be monitored on the server or remotely. They can also be monitored through the Performance console. The Performance console is able to be used to generate an "at-a-glance" report of the current number of print jobs assigned to any one particular print server. This will allow an administrator to decide if the printing load should be shared among other servers if things seem to be taking an amount of time.
Performance console
The Performance console has two snap-ins configured: System Monitor and Performance Logs And Alerts. The System Monitor is designed for real-time reporting of data to a console interface, and can be reported in graph, histogram, or numeric form. The Performance Logs And Alerts snap-in is designed to write data to a file (log) and report counter values that breach a threshold (alert). Logs written by Performance Logs And Alerts can be loaded into System Monitor for analysis, and exported to various file types (such as CSV and HTML) for reporting purposes.
Task manager
Task Manager provides dynamic views into current performance of your computer as it relates to running processes and applications. With configurable refresh intervals and selectable columns of data, the Task Manager shows the processor, memory, and I/O usage by processes. Applications can be started or ended from the Applications tab, and processes can be elevated in priority or terminated, including child processes, from the Processes tab. The Performance tab gives an aggregate view of processor and memory use on the computer. The Networking tab does the same for network utilization and basic configuration data. The Users tab, if available, will allow for logoff of a local session or disconnection of a remote session. Remote sessions can also have messages sent to the connected user.
WMI
WMI is a utility that uses a database of management information collected by running on each Windows Server 2003 computer. The command line interface for WMI is WMIC, which uses a series of aliases, verbs, switches and parameters to change configuration on or get information from a computer system. WMIC can connect to any computer remotely, so long as the user initiating the connection has sufficient privileges on the remote computer. The local administrator on a computer has permission to connect remotely, so Domain Administrators each have the ability to perform remote administration with WMI and WMIC. For archiving and reporting purposes, WMI data can be output through WMIC to CSV or HTML pages. Multiple computers can have commands issued to them either from the command line or from a text file. With the exception of needing to include the WMIC command at the beginning of each line, issuing commands from a batch file in non-interactive mode is no different from using WMIC in interactive mode.
The interactive mode of WMIC by started by typing wmic at a command line, pressing Enter, and then typing exit or quit to leave. Non-interactive mode consists of a single-line command beginning with WMIC either at a command line or in a batch file.
Monitor and optimize a server environment for application performance.
In the System monitor - Performance console use the Memory Counters after you have established a baseline for memory use, periodic monitoring should be performed for deviations from that baseline. The following counters are useful in monitoring computer system memory:
Memory shortages: Memory\Available Bytes,
Available Kbytes, or Available MBytes (to see the amount in megabytes)
Set; Memory\Pages/sec; Memory\Cache Bytes.
Frequent hard page faults: Memory\Pages/sec
Process (All_processes) \Working Set
Memory\Pages Input/sec
Memory\Pages Output /sec. Hard page faults occur when a page of memory is needed but has been placed (swapped) into virtual memory. Excessive swapping degrades the performance of the computer, and can be addressed either by reducing the demands on the computer or increasing the amount of physical RAM.
Process Counters for each demand on a system resource, there is often a process that is the instrument of that demand. Using process counters allows for viewing the individual processes (including system services) that are using system resources. The following are important counters to use when gathering process based performance data:
Memory leaks; memory-intensive applications: Memory\Pool Nonpaged Allocs;
Memory\Pool Nonpaged Bytes;
Memory\Pool Paged Bytes;
Process(process_name)\Pool Nonpaged Bytes;
Process(process_name)\ Handle Count;
Process(process_name)\Pool Paged Bytes;
Process(process_name)\Virtual Bytes;
Process(process_name)\Private Bytes.
These counters show memory use by individual processes, allowing for redistribution of intensive applications (or isolation of applications with memory leaks) to other computers.
| Performance Object: Counter | Unacceptable threshold level | Remedy |
| Memory:Page Faults/sec | Consistent page fault rates higher than 5 | Identify the processes using disproportional amounts of RAM and install more memory |
| Memory:Committed Bytes | Sustained value higher than 75% of total physical RAM installed | Identify the processes using disproportional amounts of RAM and install more memory |
| Memory:Available Bytes | Consistent value lower than 5% of total physical RAM installed | Identify the processes using disproportional amounts of RAM and install more memory |
| Memory:Pages/Sec | Consistently higher than 20 | Identify the processes causing excessive paging and install more memory |
| Memory:Nonpaged Bytes | Steady increases (compared to baseline) over time without an increased server load | Identify one or more programs that might have a memory leak, stop running the program or get updated versions |
Network Counters Network counters report data from the network interface cards (NICs) installed in the computer, and from the segment on which the NICs communicate. The following counters are useful in measuring the performance of a computer on the network:
Network Interface\Output Queue Length; Bytes Total\sec. The Queue length should be low, and the total bytes high, which indicates a network card that is transferring packets quickly and without delay.
Network Interface: Bytes Sent/Sec; Current Bandwidth; Bytes Received/ Sec. High values in these counters consistently and over time indicate that a net-work is being expected to carry more traffic than is optimal. Segmenting the network into smaller pieces or increasing the bandwidth of the network will decrease the chances of bottlenecks due to excessive traffic.
When monitoring %Network Utilization, for example, 30% utilization is the maximum recommended for an unswitched Ethernet network. This means that a 10 megabyte (MB) Ethernet network becomes bottlenecked when its throughput exceeds 3 MB per second. If the value of the counter is above 40%, data collisions begin to hamper the performance of the network.
| Performance Object:Counter | Unacceptable threshold level | Remedy |
| Server:Bytes Total/sec, Network Interface:Bytes Total/sec | Sustained usage levels higher than the baseline averages for the server | Replace network cards, Install additional network card, upgrade physical network |
| Server:Bytes Received/sec | Sustained usage levels higher than 50% of the network adapters bandwidth rating | Replace network cards, upgrade physical network |
| Network Interface:Bytes Sent/sec | Sustained usage levels lower than the baseline averages for the server | Replace network cards, upgrade physical network |
| Performance Object:Counter | Unacceptable threshold level | Remedy |
| Processor:% User Time, % Processor Time, %Privileged Time | Sustained usage higher than 85% | Upgrade existing CPU to a faster CPU or install additional CPU's |
| System:Processor Queue length, Server work queues:Queue length | Sustained usage higher than 2 | Upgrade existing CPU to a faster CPU or install additional CPU's |
| Processor:Interrupts/sec | Substantially higher values than baseline can indicate a hardware problem with another device | Locate and replace hardware device |
Disk Counters The PhysicalDisk object counters provide data on activity for each of the hard disk storage devices, and the LogicalDisk object counters provide data on defined volumes (C:\, D:\, and so on) in your system. Monitoring LogicalDisk free space and PhysicalDisk performance counters will provide useful data. The following are important counters for Physical and Logical Disk monitoring:
PhysicalDisk\Avg. Disk Bytes/Transfer; \Avg. Disk sec/Transfer; \Avg. Disk Queue Length; \% Disk Time. These counters measure the size of input/out-put (I/O) operations over time, and how busy the drive is, performing the requested disk activity. The disk is efficient if it transfers large amounts of data relatively quickly, and has a queue length <2 over time for each disk spindle.
| Performance Object:Counter | Unacceptable threshold level | Remedy |
| PhysicalDisk:% Disk Time, LogicalDisk: % Disk Time | Consistently higher than 50% | If not the result of excessive paging, replace the disk with a better model |
| PhysicalDisk: Current Disk Queue Length, LogicalDisk:Current Disk Queue Length | Consistently higher than 2 | Replace the disk with a better model |
| PhysicalDisk:Avg Disk Bytes/Transfer, LogicalDisk:Avg Disk Bytes/Transfer | Consistently lower than the servers baseline | Replace the disk with a better model |
| PhysicalDisk:Disk Bytes/sec, LogicalDisk:Disk Bytes/sec | Consistently lower than the servers baseline | Replace the disk with a better model |
IIS 6.0 is not automatically installed with Windows Server 2003, you must use the ADD/Remove programs applet in the Control Panel to install the IIS components you require for each server. After installation of IIS 6.0 has completed, you may open the Internet Information Services (IIS) Manager console from the Administrative Tools group.
The processes that take place as a client accesses a resource from IIS are
The client enters a URL (Universal Resource Locator) in either of the following forms: http://dns.domain.name/virtualdirectory/page.htm or ftp://dns.domain.name/virtualdirectory
Domain Name Service (DNS) resolves the name to an IP address and returns the address to the client
The client connects to the server’s IP address, using a port that is specific to the service (port 80 for HTTP and port 21 for FTP)
The URL does not represent the physical path to the resource on the server, but a virtualization of the path. The server translates the incoming request into the physical path and produces appropriate resources to the client. For example, the server might list files in the folder to an FTP client, or might deliver the home page to an HTTP client.
The process can be secured with authentication (credentials, including a user name and password) and authorization (access control through permissions).
IIS installation configures a single Web site, the Default Web Site. This Web site is accessible if you open a browser and type the URL:
http://yourservername01.yourdomainname.comA browser could refer to a specific page in the URL, for example http:// yourservername01.yourdomainname.com/contactinfo.htm
. In that event, the specific page is fetched from the home directory. If it is not found, a File Not Found error (404) is returned.A URL can also include more complex path information, such as
http:// www.microsoft.com/windowsserver2003. This URL is not requesting a specific page; there is no extension such as .htm or .asp on the end of the URL. Instead, it is requesting information from the windowsserver2003 directory. The server evaluates this additional component of the URL as a virtual directory. The folder that contains the files referred to as windowsserver2003 can reside anywhere; they do not have to be located on the IIS server. To create a virtual directory, right-click a Web site and choose New Virtual Directory. The wizard will prompt you for the alias, which becomes the folder name used in the URL, and the physical path to the resource, which can be on a local volume or remote server.You can also create a Web virtual directory on an NTFS drive by right-clicking a folder, choosing Properties, then clicking the Web Sharing tab.
FTP sites work, and are administered, similarly to Web sites. IIS installs one FTP site, the Default FTP Site, and configures it to respond to all incoming FTP requests (all unassigned addresses, port 21). The FTP site returns to the client a list of files from the folder specified in the Home Directory tab. FTP sites may also include virtual directories
Metabase configuration backups
IIS 6.0 metabase backups are machine & system specific. You cannot restore a complete IIS 6.0 server using a backup Metabase.xml file from a different computer. You cannot restore from a Metabase backup file after reinstalling Windows Server 2003.
You need to use one of the VB Script files (iisback.vbs) or (iiscnfg.vbs), to import an entire metabase from one pc to another. These commands replace all the machine & system specific settings stored in Metabase backup files.
Authentication is the process of evaluating credentials in the form of a user name and password. By default, all requests to IIS are serviced by impersonating the user with the IUSR_computername account. Before you begin restricting access of resources to specific users, you must create domain or local user accounts and require something more than this default, Anonymous authentication.
You may configure the following authentication methods on the Directory Security tab of the server, a Web (or FTP) site, a virtual directory, or a file:
Web Authentication Options
Anonymous authentication Users may access the public areas of your Web site without a user name or password.
Basic authentication Requires that a user have a local or domain user account. Credentials are transmitted in clear text.
Digest authentication Offers the same functionality as Basic authentication, while providing enhanced security in the way that a user’s credentials are sent across the network. Digest authentication relies on the HTTP 1.1 protocol.
Advanced Digest authentication Works only when the user account is part of an Active Directory. Collects user credentials and stores them on the domain controller. Advanced Digest authentication requires the user to be using Internet Explorer 5 or above and the HTTP 1.1 protocol.
Integrated Windows authentication Collects information through a secure form of authentication (sometimes referred to as Windows NT Challenge/ Response authentication) where the user name and password are hashed before being sent across the network.
Certificate authentication Adds Secure Sockets Layer (SSL) security through client or server certificates, or both. This option is available only if you have Certificate Services installed and configured.
.NET Passport authentication Provides a single sign-in service through SSL, HTTP redirects, cookies, Microsoft JScript, and strong symmetric key encryption.
FTP Authentication Options
Anonymous FTP authentication Gives users access to the public areas of your FTP site without prompting them for a user name or password.
Basic FTP authentication Requires users to log on with a user name and password corresponding to a valid Windows user account.
Once authentication has been configured, permissions are assigned to files and folders. A common way to define resource access with IIS is through NTFS permissions. NTFS permissions, because they are attached to a file or folder, act to define access to that resource regardless of how the resource is accessed. IIS also defines permissions on sites and virtual directories. Although NTFS permissions define a specific level of access to existing Windows user and group accounts, the directory security permissions configured for a site or virtual directory apply to all users and groups.
IIS has directory and application permissions. If both IIS permissions and NTFS permissions are applied, the more restrictive permissions are effective.
NTFS permissions can be allowed or denied; explicit or inherited. A Deny permission takes precedence over an Allow permission; and an explicit permission takes precedence over an inherited permission. The result is that an explicit Allow permission can override an inherited Deny permission.
Access granted by NTFS permissions may be further restricted by share permissions and IIS permissions on FTP sites, Web sites, virtual directories and documents. Whenever two permission types are assigned to a resource, such as share permissions and NTFS permissions, you must evaluate each set of permissions, then determine which of the two sets is more restrictive. And that is the set that becomes effective.
Managing and Implementing Disaster Recovery
Perform system recovery for a server.
To create an ASR set, open the Backup Utility from the Accessories program group, or by clicking Start, then Run, and typing Ntbackup.exe. If the Backup And Restore Wizard appears, click Advanced Mode. Then, from the Backup Utility’s Welcome tab, or from the Tools menu, select ASR Wizard. Follow the instructions. It will request a 1.44 megabyte (MB) floppy disk to create the ASR floppy.
The backup created by the ASR Wizard includes disk configuration information for each disk in the computer, a System State backup, and a backup of files including the driver cache. The backup set is sizable. On a standard installation of Windows Server 2003, the ASR backup size will be more than 1 gigabyte (GB).
The ASR floppy disk is created by the Automated System Recovery Preparation Wizard, and is specific to the system and the time at which the ASR set was created. The ASR floppy disk contains two catalogues of files on the system: Asr.sif and Asrpnp.sif. If the system does not have a floppy drive when you create the ASR set, you can create the floppy disk after running the wizard by copying these two files from the %
Systemroot%\repair folder on the system to another computer that does have a floppy drive, and copying the files to the floppy disk on that second system. If you lose the floppy disk, you can restore the two files from the %Systemroot%\repair folder in the ASR backup set.You must
have the ASR floppy disk to perform an Automated System Recovery. If the system does not have a floppy drive you will need to connect one before performing the restore.To restore a system using Automated System Recovery, restart using the Windows Server 2003 CD-ROM, just as if you were installing the operating system on the computer. After loading initial drivers, the system will prompt you to press F2 to perform an Automated System Recovery. Press F2 and follow the instructions on your screen. Automated System Recovery will prompt you for the system’s ASR floppy, which contains two catalogues, or lists, of files required to start the system. Those files will be loaded from the CD-ROM. Automated System Recovery will restore remaining critical files, including the system’s registry, from the system’s ASR backup set. There is a restart during the process.
ASR only saves the Server 2003 operating system configuration. Any data files that are stored on the operating system drive volume (usually c: )are destroyed during an ASR restore.
Using VSS, Windows Server 2003 automatically caches copies of files as they are modified. If a user deletes, overwrites, or makes unwanted changes to a file, you can simply restore a previous version of the file. It is designed to facilitate quick recovery from simple, day-to-day problems, not recovery from significant data loss.
The Shadow Copies feature for shared folders is not enabled by default. To enable the feature, open the Properties dialog box of a drive volume from Windows Explorer or the Disk Management snap-in. On the Shadow Copies tab, select the (NTFS) volume and click Enable. Once enabled, all shared folders on the volume will be shadowed; specific shares on a volume cannot be selected. You can, however, manually initiate a shadow copy by clicking Create Now.
Each of the following settings can be modified by clicking Settings on the Shadow Copies tab:
■ Storage volume To enhance performance (not redundancy), you can move the shadow storage to another volume. This must be done when no shadow copies are present. If shadow copies exist, and you want to change the storage volume, you must delete all shadow copies on the volume, then change the storage volume.
■ Details The dialog box lists shadow copies that are stored and space utilization statistics.
■ Storage limits This can be as low as 100 MB. When the shadow copy runs out of storage, it deletes older versions of files to make room for newer versions. The proper configuration of this setting depends on the total size of shared folders on a volume with shadowing enabled; the frequency with which files change, and the size of those files; and the number of previous versions you wish to retain. A maximum of 63 previous versions will be stored for any one file before the earliest version is removed from the shadow storage.
■ Schedule You can configure a schedule that reflects the work patterns of your users, ensuring that enough previous versions are available without prematurely filling the storage area and thereby forcing the removal of old versions. Remember that when a shadow copy is made, any files that have changed since the previous shadow copy are copied. If a file has been updated several times between shadow copies, those interim versions will not be available.
The Previous Versions tab of a shared resource
The Previous Versions page will not be available if Shadow Copies is not enabled on the server, or if there are no previous versions stored on the server, or if the Previous Versions client has not been installed on your system. This file is located in the %Systemroot
%\System32\Clients\Twclient\x86 folder of a Windows Server 2003 system. The Windows Installer (.msi) file can be deployed using Group Policy, SMS, or an e-mail message.Windows 2000 (SP3) and Windows 98 clients need to download the Shadow Copy Client software at the microsoft download site.
The Previous Versions page is only available when accessing a file’s properties through a shared folder. If the file is stored on the local hard drive, you will not see the Previous Versions tab, even if the file is shared and VSS is enabled. You need to map a drive to the servers c$, d$, etc... drive to see the previous version, if your locally using the server.
You can then choose to Restore the file to its previous location or Copy the file to a specific location.
Unlike a true restore operation, when you restore a file with Previous Versions, the security settings of the previous version are not restored. If you restore the file to its original location, and the file exists in the original location, the restored previous version over-writes the current version and uses the permissions assigned to the current version. If you copy a previous version to another location, or restore the file to its original location but the file no longer exists in the original location, the restored previous version inherits permissions from the parent folder.
If a file has been deleted, open the Properties of the parent folder, click the Previous Versions tab and locate a previous version of the folder that contains the file you want to recover. Click View and a folder window will open that displays the contents of the folder as of the time at which the shadow copy was made. Right-click the file and choose Copy, then paste it into the folder where you want the file to be recreated.
The Shadow Copy Client uses CIFS (Common Internet File Sharing).
Each backup type relates in one way or another to an attribute maintained by every file: archive. The archive (A) attribute is a flag that is set when a file has been created or changed. To reduce the size and duration of backup jobs, most backup types will only transfer to media the files that have their archive attribute set.
Normal Backups
All selected files and folders are backed up. The archive attribute is cleared. A Normal backup does not use the archive attribute to determine which files to back up; all selected items are transferred to the destination media. Every backup strategy begins with a Normal backup that essentially creates a baseline, capturing all files in the backup job. Normal backups are the most time consuming and require the most storage capacity of any backup type. However, because they generate a complete backup, normal back-ups are the most efficient type from which to restore a system. You do not need to restore multiple jobs. Normal backups clear the archive attribute from all selected files.
Incremental Backups
Selected files with the archive attribute set are backed up. The archive attribute is cleared. Selected files with the archive flag are transferred to the destination media, and the flag is cleared. If you perform an incremental backup one day after a normal backup has been performed, the job will contain only the files that were created or changed during that day. Similarly, if you perform an incremental backup one day after another incremental backup, the job will contain only the files that were created or changed during that day. Incremental backups are the fastest and smallest type of backup. However they are less efficient as a restore set, because you must restore the normal backup and then restore, in order of creation, each subsequent incremental backup.
Differential Backups
Selected files with the archive attribute set are backed up. The archive attribute is not cleared. Because a differential backup uses the archive attribute, the job includes only files that have been created or changed since the last normal or incremental backup. A differential backup does not clear the archive attribute; therefore, if you perform differential backups two days in a row, the second job will include all the files in the first backup, as well as any files that were created or changed during the second day. As a result, differential backups tend to be larger and more time-consuming than incremental backups, but less so than normal backups. Differential backups are significantly more efficient than incremental backups as a restore set, however. To fully restore a system you would restore the normal backup and the most recent differential backup.
By default, the Windows Server 2003 Backup utility generates a shadow copy snapshot of all the files that it is going to backup; the shadow copy snapshot enables the Backup Utility to backup files that are OPEN or LOCKED.
System State data contains critical elements of a system’s configuration including:
The system’s registry
The COM+ Class Registration Database
The boot files, which include boot.ini, ntdetect.com, ntldr, bootsect.dos, and ntbootdd.sys
System files that are protected by the Windows File Protection service
In addition, the following are included in the System State when the corresponding services have been installed on the system:
To back up the System State in the Backup Utility, include the System State node (tick box) as part of the backup selection.
If you prefer to use the command line, use Ntbackup with the following syntax:
Ntbackup backup systemstate /J "backup job name"
... Followed by the /F switch to indicate backing up to a file, or appropriate /T, /G, /N, /P switches to back up to a tape. There are several important notes and considerations related to backing up the System State:
You cannot back up individual components of the System State. For example, you cannot back up the COM+ Class Registration Database alone. Because of interdependencies among System State components, you can back up only the collection of System State components as a whole.
You cannot use Ntbackup or the Backup Utility to back up the System State from a remote machine. You must run Ntbackup or the Backup Utility on the system that is being backed up. You can, however, direct the backup to a file on a remote server, which can then transfer the file onto another backup media. Or you can purchase a third-party backup utility that can remotely back up the System State.
The System State contains most elements of a system’s configuration, but may not include every element required to return the system to full operational capacity. It is therefore recommended to back up all boot, system, data, and application volumes when you back up the system state. The System State is a critical piece of a complete backup, but is only one piece.
Performing a system state backup automatically forces the backup type to Copy, although the interface may not indicate that fact. To restore the System State on a computer that is operational, use the Backup Utility and, on the Restore And Manage Media tab, click the System State check box. .
System state & Directory Services Mode
The System State on a domain controller includes the Microsoft Active Directory directory service and the Sysvol folder. You can back up the System State on a domain controller just as on any other system, using the Backup Utility or Ntbackup command.
To restore the System State on a domain controller, you must restart the computer, press F8 to select startup options, and select Directory Services Restore Mode. (If you perform a system state restore to an alternative location or single folder, you don't need to select Directory Services Restore Mode).
In Directory Services Restore Mode, the domain controller boots but does not start Active Directory services. You can log on to the computer only as the local Administrator, using the Directory Services Restore Mode password that was specified when dcpromo.exe was used to promote the server to a domain controller.
When in Directory Services Restore Mode, the domain controller does not perform authentication or Active Directory replication, and the Active Directory database and supporting files are not subject to file locks. You can therefore restore the System State using the Backup Utility. When restoring the System State on a domain controller, you must choose whether to perform a non-authoritative (normal) or authoritative restore of the Active Directory and Sysvol folder. After restoring the System State using the Backup Utility, you complete a non-authoritative restore by restarting the domain controller into normal operational status. Because older data was restored, the domain controller must update its replica of the Active Directory and Sysvol, which it does automatically through standard replication mechanisms from its replication partners.
There may be occasions, however, when you do not want the restored domain controller to become consistent with other functioning domain controllers and instead want all domain controllers to have the same state as the restored replica. If, for example, objects have been deleted from Active Directory, you can restore one domain controller with a backup set that was created prior to the deletion of the objects. You must then perform an authoritative restore, which marks selected objects as authoritative and causes those objects to be replicated
from the restored domain controllers to its replication partners.To perform an authoritative restore, you must first perform a non-authoritative restore by using the Backup Utility to restore the System State onto the domain controller. When the restore is completed and you click Close in the Backup Utility, you are prompted to restart the computer. When that occurs, you must select No. Do not allow the domain controller to restart. Then, open a command prompt and use Ntdsutil.exe program to mark the entire restored database or selected objects as authoritative.
If there is only one DC in the domain, or if you need to rebuild an entire domain from backup with all DC's have been lost, perform a Primary Restore. This lets you restore the Domains first replica set as well as restore of AD and the SYSVOL folder.
You must have the Backup Files And Directories user right, or NTFS Read permission to back up a file. Similarly, you must have the Restore Files And Directories user right, or NTFS Write permission to the target destination, to restore a file.
Privileges are assigned to both the Administrators and Backup Operators groups, so the minimum required privileges can be given to a user, a group, or a service account by nesting the account in the Backup Operators group on the server.
Users with the Restore Files And Directories user right can remove NTFS permissions from files during restore. In Windows Server 2003, they can additionally transfer ownership of files between users. Therefore, it is important to control the membership of the Backup Operators group and to physically secure backup tapes.
Backup options are configured by choosing the Options command from the Tools menu. Many of these options configure defaults that are used by the Backup Utility and the command-line backup tool, Ntbackup. Those settings can be overridden by options of a specific job. General Options The General tab of the Options dialog box includes the following settings:
Verify Data After The Backup Completes The system compares the contents of the backup media to the original files and logs any discrepancies. This option obviously adds a significant amount of time for completing the backup job. Discrepancies are likely if data changes frequently during backup or verification, and it is not recommended to verify system backups because of the number of changes that happen to system files on a continual basis.
Advanced Backup Options
After selecting files to back up, and clicking Start Backup, you can configure additional, job-specific options by clicking Advanced. Among the more important settings are the following:
Verify Data After Backup This setting overrides the default setting in the Backup Options dialog box.
The Ntbackup command provides the opportunity to script backup jobs on Windows Server 2003. Its syntax is
.bks"} /j "Job Name" optionsNtbackup backup {"path to backup" or "@selectionfile
The command’s first switch is backup, which sets its mode—you cannot restore from the command line. That switch is followed by a parameter that specifies what to back up. You can specify the actual path to the local folder, network share, or file that you want to back up. Alternatively, you can indicate the path to a backup selection file (.bks file) to be used with the syntax @selectionfile.bks. The at (@) symbol must precede the name of the backup selection file.
For each of the job types described above, you can specify additional job options using these switches:
Recover from server hardware failure.
The Recovery Console is a text-mode command interpreter that allows you to access to the hard disk of a computer running Windows Server 2003 for basic troubleshooting and system maintenance. It is particularly useful when the operating system cannot be started, as the Recovery Console can be used to run diagnostics, disable drivers and services, replace files, and perform other targeted recovery procedures.
You can start the Recovery Console by booting with the Windows Server 2003 CD-ROM and, when prompted, pressing R to choose the repair and recover option. However, when a system is down you will typically want to recover the system as quickly as possible, and you may not want to waste time hunting down a copy of the CD-ROM or waiting for the laboriously long restart process. Therefore, it is recommended to pro-actively install the Recovery Console.
To install the Recovery Console, insert the Windows Server 2003 CD-ROM and type
cd-drive:\i386\winnt32 /cmdcons on the command line. The Setup Wizard will install the 8 MB console in a hidden folder called Cmdcons, and will modify the boot.ini file to provide the Recovery Console as a startup option during the boot process.Once the Recovery Console has started, you will be prompted to select the installation of Windows to which you wish to log on. You will then be asked to enter the Administrator password. You must use the password assigned to the local Administrator account, which, on a domain controller, is the password configured on the Directory Services Restore Mode Password page of the Active Directory Installation Wizard.
The Recovery Console cannot be used to remove or create disk mirrored sets.
You can type help
at the console prompt to list the commands available in the Recovery Console, and help command name for information about a specific command. Several of the commands deserve particular attention:Listsvc Displays the services and drivers that are listed in the registry as well as their startup settings. This is a useful way to discover the short name for a service or driver before using the Enable and Disable commands.
Enable/Disable Controls the startup status of a service or driver. If a service or driver is preventing the operating system from starting successfully, use the Recovery Console’s Disable command to disable the component, then restart the system and repair or uninstall the component.
Diskpart Provides the opportunity to create and delete partitions using an interface similar to that of the text-based portion of Setup. You can then use the Format command to configure a file system for a partition.
Bootcfg Enables you to manage the startup menu. Can be used with the /EMS command (Emergency Management Services) to access the server via a COM Port via Terminal Emulation programs.
Restore backup data.
Via the Backup Utility, you can configure how the restore operation will treat security settings on the backed-up files by clicking Advanced in the Confirm Restore dialog box and selecting the Restore Security option. If data was backed up from, and is being restored to, an NTFS volume, the default setting will restore permissions, audit settings, and ownership information. Deselecting this option will restore the data without its security descriptors, and all restored files will inherit the permissions of the target restore volume or folder.
Schedule backup jobs.
To schedule a backup job, create the job in the Backup Utility then click Start Backup and configure advanced backup options. After all options have been configured, click Schedule and, in the Set Account Information dialog box, type the user name and password of the account to be used by the backup job.
In the Scheduled Job Options dialog box, enter a job name and click Properties. Configure the job date, time, and frequency. The Advanced button will let you configure additional schedule settings including a date range for the job. The Settings tab of the Schedule Job dialog box allows you to refine the job, for example, by specifying that the job should only take place if the machine has been idle for a period of time.
Once a job has been scheduled, you can edit the schedule by clicking the Schedule Jobs tab of the Backup Utility. Jobs are listed on a calendar. Click a job to open its schedule. Although you can also add a backup job by clicking Add Job on the Schedule Jobs tab, clicking Add Job will launch the backup wizard so that you can select the files to back up and some of the properties of the backup job. Most administrators find it more convenient to create a backup job on the Backup tab directly, then click Start Backup and Schedule, as described above.
To schedule normal, differential or incremental backups - via the Backup utility program, choose from the advanced menu to either use the Normal / Differential / Incremental option.