Chapter 4. Files, Folders, and Shares
Introduction
This chapter covers some of the common tasks facing administrators when it comes to managing the Windows file system. I’ll not only touch on the really basic tasks such as creating, deleting, renaming, and moving files and folders, but more advanced topics such as viewing a list of all open files and identifying the process that has a file locked.
Using a Graphical User Interface
You are undoubtedly familiar with the all-purpose file, folder, and shared folder management tool, Windows Explorer. With it you can create, move, rename, and delete files and folders as well as hide, encrypt, and make them read-only. As you’ll see, this is the most used graphical tool in this chapter.
You are also probably familiar with the Shared Folder MMC snap-in, which is commonly seen as a part of the Computer Management tool. This snap-in allows you to do just about anything with shares (i.e., create, delete, see who is using them, etc.).
Sysinternals produces several graphical tools that are also very helpful. These include File Monitor (Recipe 4.19), Fundelete (Recipe 4.3), and Shareenum (Recipe 4.24).
Using a Command-Line Interface
Table 4-1 lists command-line tools used in this chapter and the recipes they are used in.
Table 4-1. Command-line tools used in this chapter
Tool | Windows Server 2003 | Windows 2000 Server | Recipes |
|---|---|---|---|
attrib | %SystemRoot%\system32 | %SystemRoot%\system32 | 4.12, 4.13 |
auditpol | Windows 2000 Resource Kit | Windows 2000 Resource Kit | 4.18 |
cipher ... |