Solved

Batch File to Free Up RAM before starting a Virtual PC machine

Posted on 2008-10-07
4
799 Views
Last Modified: 2013-12-01
I currently have a very large VPC image which I use for PoC purposes.  My PC has 4 GB of RAM and I have around 3 GB dedicated to the VPC image.  My question is can I run a batch file to free up RAM (shut down unneccesary services) prior to starting the VPC?  I am running a Windows Vista Business OS so I need to know what services are save to shut down so that the PC is running with as little RAM as possible.  I nevertheless need Internet connection.
0
Comment
Question by:g_claxton
4 Comments
 
LVL 54

Accepted Solution

by:
McKnife earned 125 total points
ID: 22661562
0
 
LVL 30

Expert Comment

by:pgm554
ID: 22835664
Vista is a memory pig,

if you are going to use it as a host machine,go 64 bit OS.

Allocating 3 gigs of memory to a VM will cause you nothing but grief if you are running a 32 bit OS.
With 64 bit you will get to use ALL of your 4 GB of RAM.

With a 32 bit OS ,because of the way resources are allocated,you may be able to use only a little more than 3 gb.(video card BIOS relocaion ,etc)for the entire machine (Host OS+VM)

0
 
LVL 48

Expert Comment

by:dbrunton
ID: 23022872
CleanMem

I've tried this app and it didn't do that much for me but you may experience something else.  I'd download the actual app from the Major Geeks link in the article though.

http://www.pcwintech.com/node/145

I do use RAMpage http://www.jfitz.com/software/RAMpage/

It not only gives you an indication of how much memory is free but will try and free up if it drops too low or you can manually tell it to go do the job.
0
 
LVL 4

Expert Comment

by:raehrlich
ID: 23026287
> run a batch file to free up RAM (shut down unneccesary services)

Use the 'net stop' command inside a batch file. You will need the service name (display name) which you can get from the properties page of the service or by just running 'net start' from a command prompt. You may need to use quotes if there are spaces.

Example:

C:\>net start
These Windows services are started:

   Application Layer Gateway Service
   Automatic Updates
   COM+ Event System
   Computer Browser
   .
   ..
   ....
   MozyHome Backup Service      <------ let's stop this one.
   Network Connections
   Windows Time
   Wireless Zero Configuration
   Workstation

The command completed successfully.


C:\>net stop "MozyHome Backup Service"

The MozyHome Backup Service service was stopped successfully.
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
RoboCopy to Changing External Drives 2 54
Event ID: 7016 / Source: Microsoft-Windows-GroupPolicy 7 132
Command to modify Registry entry 5 128
batch script 3 45
I wrote an article (http://www.experts-exchange.com/articles/2245/Anti-rootkit-software.html) some time ago with a reference to nLite  (http://www.nliteos.com/)slipstreaming software.  I recently changed that link to point to NTLite (https://www.ntl…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question