compstuff Posted January 5, 2009 Share Posted January 5, 2009 ArtBio thanks for the reply but I really don't think thats the problem since WMI is fully functional... here's some further info:I have been using Rogues script for numerous installs but now on a machine with 4Gig of Ram it too fails unless I change the "2" value to a max of 1.33If I change your "2" value to 1.2 the script runs and changes the pagefile size. Since I don't write VBS all my attempts to correct this have failed but I'm wondering if regonizing a max page file value of 4 gig would be the answer... buy I'm guessing Link to comment Share on other sites More sharing options...
Trilox Posted January 29, 2010 Share Posted January 29, 2010 There is a limitation in VBS that does not allow setting a pagefile over the 4GB mark. I am not sure of the reasoning behind this, but you are right that detecting a value over to 4096 and reducing down is the answer. If you require a pagefile of bigger than 4gb then you'll most likely need to manually set the settings in windows. Link to comment Share on other sites More sharing options...
cluberti Posted January 29, 2010 Share Posted January 29, 2010 I'm not sure there would ever be a need for a paging file that large, unless you have more than 4GB of RAM and are worried about having the paging file size available for crash dump recovery. Link to comment Share on other sites More sharing options...
deathcon1 Posted December 30, 2010 Share Posted December 30, 2010 I'm getting error 800A0408 at script. How to fix it? Link to comment Share on other sites More sharing options...
cluberti Posted December 31, 2010 Share Posted December 31, 2010 I wrote this awhile ago, and might work better depending on your needs. Link to comment Share on other sites More sharing options...
belivakov Posted June 15, 2011 Share Posted June 15, 2011 wmic pagefileset where name="C:\\pagefile.sys" set InitialSize=2048,MaximumSize=2048This can be run from command line (RunOnceEx). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now