Solved

Need to query cache size of SMS Clients

Posted on 2009-07-02
1
586 Views
Last Modified: 2013-11-21
We have quite few SMS 2003 clients that have not received the updated cache policy of  2GB.   Is there a VBS script or something built into SMS that will show me cache size per client, fora given collection or system?  
0
Comment
Question by:net1994
1 Comment
 
LVL 10

Accepted Solution

by:
JonLambert earned 250 total points
ID: 24782806
The cache info is indvidually configurable per client, with a default size you can set during the client installation.

Instead of trying to query the cache size for each client, you would be better off creating a script to set the required cache size, and advertising it to the collection.

As the UI Resource Manager is only available when there is a logon session on the client, make sure that the SMS Program is set to run with Administrative priveleges, and only when a user is logged on.



On Error Resume Next
Set oUIResManager = CreateObject("UIResource.UIResourceMgr")
Set oCache = oUIResManager.GetCacheInfo()
 
oCache.TotalSize = 2048
 
If oCache.TotalSize = 2048 Then
  wscript.quit(0)
Else
  wscript.quit(1)
End If

Open in new window

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

On a regular basis I get questions about slow RDP performance, RDP connection problems, strange errors and even BSOD, remote computers freezing or restarting after initiation of a remote session. In a lot of this cases the quick solutions made b…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

837 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