Answered by:
Error while querying Win32_OperatingSystem FreePhysicalMemory

Question
-
Hi guys...
I've found this script to show free ram on a server:
' Memory.vbs
' Sample VBScript to discover how much RAM in computer
' Author Guy Thomas http://computerperformance.co.uk/
' Version 1.3 - August 2010
' -------------------------------------------------------'
Option Explicit
Dim objWMIService, objComputer, colComputer
Dim strLogonUser, strComputer
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colComputer
Wscript.Echo "System Name: " & objComputer.Name _
& vbCr & "Total RAM " & objComputer.TotalPhysicalMemory
Next
WScript.Quit
' End of free example of Memory WMI / VBScriptI've tested and works great on all my servers with the exception of 1.
Any ideas why is not working?
This is the error:
Windows Script Host
Script: C:\Users\Administrator\Desktop\memory.vbs
Line : 18
Char : 1
Error : The paging file is too small for this operation to complete.
Code : 800705AF
Source : (null)Thanks so much and i hope to fix this soon :)
Greetings.
Francisco.
Wednesday, May 22, 2013 1:32 PM
Answers
-
Hi!...
We don't have SP1 installed :(
Thanks
Okay, then that hotfix does apply and you can try it out.- Marked as answer by Bill_Stewart Sunday, June 2, 2013 2:19 PM
Wednesday, May 22, 2013 3:58 PM
All replies
-
The error message tells you what's wrong: The paging file is too small for this operation to complete.
Bill
Wednesday, May 22, 2013 2:43 PM -
Hi ,
please check the below link.
This may help you
Wednesday, May 22, 2013 2:46 PM -
Hi!...
Quick question...
I've been reading about that error and it has to do with the free disk space on my server or ram.
I have 80gb free and 16gb free of ram.
With this patch, i would be able to run the vbs?.
Thanks for your support :)
Regards.
Francisco.Wednesday, May 22, 2013 3:06 PM -
Hi!...
Quick question...
I've been reading about that error and it has to do with the free disk space on my server or ram.
I have 80gb free and 16gb free of ram.
With this patch, i would be able to run the vbs?.
Thanks for your support :)
Regards.
Francisco.
As long as you are running 2008 R2 SP1 you already have this fix in place.Wednesday, May 22, 2013 3:17 PM -
Hi!...
We don't have SP1 installed :(
Thanks
Wednesday, May 22, 2013 3:52 PM -
Hi!...
We don't have SP1 installed :(
Thanks
Okay, then that hotfix does apply and you can try it out.- Marked as answer by Bill_Stewart Sunday, June 2, 2013 2:19 PM
Wednesday, May 22, 2013 3:58 PM -
Actually those servers are on a production enviroment and it's a lot complicated to install patches without testing them first.
Any other way?
Thanks.!
Wednesday, May 22, 2013 4:10 PM -
Actually those servers are on a production enviroment and it's a lot complicated to install patches without testing them first.
Any other way?
Thanks.!
Since it's a memory leak, the almighty magical reboot should fix the issue (for a while at least). I know that's not really a good solution for a production server either though...Wednesday, May 22, 2013 4:25 PM -
Actually those servers are on a production enviroment and it's a lot complicated to install patches without testing them first.
Any other way?No; sorry.
Bill
Wednesday, May 22, 2013 4:43 PM -
Actually those servers are on a production enviroment and it's a lot complicated to install patches without testing them first.
Any other way?
Thanks.!
Since it's a memory leak, the almighty magical reboot should fix the issue (for a while at least). I know that's not really a good solution for a production server either though...
Haahahahah... I thought that too hahaha. In fact, we are waiting for a reboot for 6 months now to complete an installation of a backup software haha.
Thanks!
Wednesday, May 22, 2013 4:44 PM