Thursday, October 1, 2009

Command Line

Changing the theme of this Blog for a moment I'm going to use this post as my own person dumping ground for stuff relating to Server 2008 Core and other Command Line thing... mostly so I have an easy reference place online. Steal / use whatever you like :)

Moving the Page File

diskpart.exe

DISKPART> select disk 0
DISKPART> select partition 1
DISKPART>
shrink desired=2280
DISKPART>
create partition primary
DISKPART>
select partition 2
DISKPART> format fs=ntfs label="Swap"
DISKPART>
assign letter=E
DISKPART>
exit

wmic.exe computersystem where name=”%computername%” set AutomaticManagedPagefile=False
wmic.exe pagefileset create name="E:\pagefile.sys"
wmic.exe pagefileset where name="E:\\pagefile.sys" set InitialSize=2048,MaximumSize=2048
wmic.exe pagefileset where name="C:\\pagefile.sys" delete

Turning off Hibernation (on by default on 2008)

powercfg.exe /hibernate off










No comments:

Post a Comment