You could try this (from an elevated command-prompt), but the general consensus is that it has a small (if any) effect:
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" -v DisablePagingExecutive -d 0x0 -t REG_DWORD -f
Disable it with:
reg add "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" -v DisablePagingExecutive -d 0x1 -t REG_DWORD -f
More discussion here:
http://serverfault.com/questions/12150/does-the-disablepagin...
The easiest way (if you have enough memory) is just disable the paging file.