Moving the Windows NT Default Paging and Spool File
ID: Q123747
|
The information in this article applies to:
-
Microsoft Windows NT Workstation versions 3.5, 3.51, 4.0
-
Microsoft Windows NT Server versions 3.5, 3.51, 4.0
-
Microsoft Windows 2000 Professional
-
Microsoft Windows 2000 Server
-
Microsoft Windows 2000 Advanced Server
SUMMARY
This article describes how to move the paging file and print spooler to
another hard disk. You may want to do this if you install a new hard disk
that is faster than the hard disk currently storing your paging and print
spooler files.
MORE INFORMATION
There are three sections of this article:
- Moving the Paging File
- Moving the Default Spool Directory for All Printers
- Moving the Default Spool Directory on a Per Printer Basis and Creating
Multiple Spool Directories
Section 1: Moving the Paging File
Windows 3.5, Windows 3.51, and Windows 4.0
- In Control Panel, double-click System.
- Click Virtual Memory.
- Set the Initial Size (MB) and Maximum size values to 0 (zero), and
then click Set.
- Select the new drive that you want to use to store the paging file.
- Set Initial Size (MB) and Maximum size. For the initial size, Microsoft recommends using the recommended value in the Total Page File Size for All Drives box.
- Click Set, and then click OK twice.
- Click Restart Now.
Windows 2000
- In Control Panel, double-click System.
- Click the Advanced tab.
- Click Performance Options.
- Under Virtual Memory, click Change.
- Select the new drive that you want to use to store the paging file.
- Set Initial Size (MB) and Maximum size. For the initial size, Microsoft
recommends using the recommended value in the Total Page File Size for All Drives box.
- Click Set, and then click OK twice.
- Click Restart Now.
Section 2: Moving the Default Spool Directory for All Printers
NOTE: Following this procedure applies a new default spool directory to all printers configured on this system.
Windows NT 3.5 and Windows NT 3.51
NOTE: This value is also available in Windows NT 4.0 and Windows 2000.
- Start Registry Editor.
- From the HKEY_LOCAL_MACHINE subtree, go to the following subkey:
\SYSTEM\CurrentControlSet\Control\Print\Printers
- Select the Printers key.
- On the Edit menu, click Add Value.
- Add a value using the following information:
Value Name: DefaultSpoolDirectory
Data Type : REG_SZ
String : <full path to printer spool directory>
- Quit Registry Editor.
- Go to File Manager, select the drive on which the new spool directory
will be created and then create the directory on the drive defined in
the Registry value DefaultSpoolDirectory. For example, if in the
Registry under DefaultSpoolDirectory the value "F:\SPOOL" was entered,
then a directory called SPOOL would need to be created on the F: drive.
- If the new directory is located on an NTFS drive, please assign the
appropriate permissions to the spool directory.
For additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
Q137503 Default Windows NT Spool Directory and Permissions
- Stop and Restart the Spooler service in the Services section of Control
Panel.
- To verify correct operation, first, open File Manager and highlight
the spool directory(s) on the appropriate drive. Then open an
application, like Write, with a document over 100Kbytes in size. print
the document and, while printing, immediately press ALT-TAB to move
back to the File Manager window. There should be two files now
appearing on the right hand side window under the spool directory. They
should have extensions of .SHD and .SPL. Once the print job is
completed these two will be deleted by NT. If no files appear, try
printing a larger file. Then verify Registry settings and NTFS
permissions (Q137503) if spool directory resides on NTFS partition.
Windows NT 4.0 and Windows 2000
- In Control Panel, double-click Printers.
- On the File menu, click Server Properties, and then click the Advanced tab.
- Type the path you want to use in the Spool Folder box, and then click OK.
NOTE: Some third-party programs may block you from moving the spool file in Windows NT 4.0.
Section 3: Moving the Default Spool Directory on a Per Printer Basis and Creating Multiple Spool Directories
NOTE: Following this procedure applies a new default spool directory to a
specific printer configured on this system. If you want to define this for
all printers, use procedures listed in Section 2.
- Start Registry Editor.
- From the HKEY_LOCAL_MACHINE subtree, go to the following subkey:
\SYSTEM\CurrentControlSet\Control\Print\Printers
\<specific printer>\SpoolDirectory
- Select the Specific Printers key.
- Verify that the value SpoolDirectory is not displayed in the right pane. If it isn't displayed, click Add Value on the Edit menu.
- Add a value using the following information:
Value Name: SpoolDirectory
Data Type : REG_SZ
String : <full path to printer spool directory>
- Quit Registry Editor.
- Go to File Manager, select the drive on which the new spool directories
will be created and then create the directories on the drive defined in
each of the printer's Registry value SpoolDirectory. For example, if in
the Registry under SpoolDirectory the value "F:\SPOOL\PRINTQ1" was
entered, then a directory called SPOOL would need to be created on the
F: drive and then a subdirectory under SPOOL called PRINTQ1 would need
to be created.
- If the new directories are located on an NTFS drive, please assign the
appropriate permissions to the spool directories. Q137503 describes the
appropriate entries.
- Stop and Restart the Spooler service in the Services section of Control
Panel.
- To verify correct operation, first, open File Manager and highlight the
spool directory(s) on the appropriate drive. Then open an application,
like Write, with a document over 100Kbytes in size. print the document
and, while printing, immediately press ALT-TAB to move back to the File
Manager window. There should be two files now appearing on the right
hand side window under the spool directory. They should have
extensions of .SHD and .SPL. Once the print job is completed these two
will be deleted by NT. If no files appear, try printing a larger file.
Then verify Registry settings and NTFS permissions (Q137503) if spool
directory resides on NTFS partition.
NOTE: Neither DefaultSpoolDirectory nor SpoolDirectory are set by default.
The global default location for all printers spool files is
%SYSTEMROOT%\SYSTEM32\SPOOL\PRINTERS. DefaultSpoolDirectory defines a new
global default location for all printers to put their spool files.
SpoolDirectory defines a new printer-specific location for spool files
that overrides the global default on a per-printer basis.
An actual directory name needs to be specified; specifying only the root
directory (for example: "C:\") won't work. Instead, you must use
C:\<directory>, where "<directory>" is the name of the directory you want
to use. If you do specify the root directory as the default spool
location, spooling reverts back to the %systemroot%\system32\spool\printer
directory.
The Windows NT Resource Kit documentation does not indicate this nor does
it explicitly state that only a directory will work (see p.226 & pp.637-
640).
Additional query words:
pagefile
Keywords : kbprint kbhowto
Version : WINDOWS:2000; winnt:3.5,3.51,4.0
Platform : WINDOWS winnt
Issue type : kbhowto
|