Solved

Need to query cache size of SMS Clients

Posted on 2009-07-02
1
590 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

1. Boot PC and press F10, select storage options and change the compatibility from “AHCI” to “IDE”, save and exit 2. Boot PC and press F12 3. Upon PXE display of searching for DHCP server, press Pause break to obtain MAC address 3. Open Configu…
Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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