Disable page file and set mem

$pagefileset = Gwmi win32_pagefilesetting | where{$_.caption -like 'C:*'}
$pagefileset.Delete()

bcdedit /set increaseuserva 12288