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:

  1. Moving the Paging File


  2. Moving the Default Spool Directory for All Printers


  3. 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

  1. In Control Panel, double-click System.


  2. Click Virtual Memory.


  3. Set the Initial Size (MB) and Maximum size values to 0 (zero), and then click Set.


  4. Select the new drive that you want to use to store the paging file.


  5. 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.


  6. Click Set, and then click OK twice.


  7. Click Restart Now.


Windows 2000
  1. In Control Panel, double-click System.


  2. Click the Advanced tab.


  3. Click Performance Options.


  4. Under Virtual Memory, click Change.


  5. Select the new drive that you want to use to store the paging file.


  6. 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.


  7. Click Set, and then click OK twice.


  8. 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.
  1. Start Registry Editor.


  2. From the HKEY_LOCAL_MACHINE subtree, go to the following subkey:

    \SYSTEM\CurrentControlSet\Control\Print\Printers


  3. Select the Printers key.


  4. On the Edit menu, click Add Value.


  5. Add a value using the following information:
    Value Name: DefaultSpoolDirectory
    Data Type : REG_SZ
    String : <full path to printer spool directory>


  6. Quit Registry Editor.


  7. 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.


  8. 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


  9. Stop and Restart the Spooler service in the Services section of Control Panel.


  10. 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

  1. In Control Panel, double-click Printers.


  2. On the File menu, click Server Properties, and then click the Advanced tab.


  3. Type the path you want to use in the Spool Folder box, and then click OK.


  4. 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.

  1. Start Registry Editor.


  2. From the HKEY_LOCAL_MACHINE subtree, go to the following subkey:

    \SYSTEM\CurrentControlSet\Control\Print\Printers \<specific printer>\SpoolDirectory


  3. Select the Specific Printers key.


  4. Verify that the value SpoolDirectory is not displayed in the right pane. If it isn't displayed, click Add Value on the Edit menu.


  5. Add a value using the following information:
    Value Name: SpoolDirectory
    Data Type : REG_SZ
    String : <full path to printer spool directory>


  6. Quit Registry Editor.


  7. 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.


  8. If the new directories are located on an NTFS drive, please assign the appropriate permissions to the spool directories. Q137503 describes the appropriate entries.


  9. Stop and Restart the Spooler service in the Services section of Control Panel.


  10. 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


Last Reviewed: January 27, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.


Send feedback to MSDN.Look here for MSDN Online resources.