Try: $Cache = Get-WmiObject -namespace root\ccm\SoftMgmtAgent -class CacheConfig* ***
$Cache.size -eq 10000 If the last line has -eq, the script will return True or False. If the last line just has =, nothing is returned because you are setting the value. On Wed, Jul 24, 2013 at 1:41 PM, Mike Gouldthorp < [email protected]> wrote: > As a means of a detection method Im trying to create a simple Powershell > script to validate that the client cache is a specific size (10,000 MB)*** > * > > ** ** > > $Cache = Get-WmiObject -namespace root\ccm\SoftMgmtAgent -class CacheConfig > **** > > $Cache.size = 10000**** > > ** ** > > My application will successfully change the client cache size to 10000 MB > but the deployment fails on the detection method.**** > > ** ** > > *The software change returned error code 0x87D00324(-2016410844).* > > * * > > Any thoughts on how I would go about creating a detection method based on > the cache size being a specific size?**** > > ** ** > > Thanks for the help!**** > > ** ** > > Mike G.**** > > ** ** > >

