Do you need this file to contain (like random text) or just to occupy disk space ?
fsutil file createnew sample_2gb.file 2147483648 2gb sample file