I don't use a ton of PowerShell, but the big issue I ran into was 32 vs 64 bit 
PowerShell.  This is the command I used for launching a script in 64-bit 
PowerShell.

%systemroot%\sysnative\windowspowershell\v1.0\powershell.exe -executionpolicy 
unrestricted .\NeedReboot.ps1

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Krueger, Jeff
Sent: Wednesday, July 9, 2014 1:59 PM
To: mssms@lists.myitforum.com
Subject: [mssms] Remediation Script for Compliance Item not working.

I made a compliance item for the ccmcache size.  The discover script is working 
correctly, but the remediation script below is not working.  I'm not seeing any 
errors in the client logs though those may be some of the most cryptic logs 
I've seen.

$CacheQuery = Get-WmiObject -Namespace ROOT\CCM\SoftMgmtAgent -Class CacheConfig
$CacheQuery.Size = 12288
$CacheQuery.Put()

The script works fine from a powershell window, so I'm not sure why it's not 
working with the configuration item settings.

Jeff Krueger
IT - Endpoint Design Services
Henry Ford Health System
jkrue...@hfhs.org<mailto:jkrue...@hfhs.org>
248.853.4466


________________________________

CONFIDENTIALITY NOTICE: This email contains information from the sender that 
may be CONFIDENTIAL, LEGALLY PRIVILEGED, PROPRIETARY or otherwise protected 
from disclosure. This email is intended for use only by the person or entity to 
whom it is addressed. If you are not the intended recipient, any use, 
disclosure, copying, distribution, printing, or any action taken in reliance on 
the contents of this email, is strictly prohibited. If you received this email 
in error, please contact the sending party by reply email, delete the email 
from your computer system and shred any paper copies.

Note to Patients: There are a number of risks you should consider before using 
e-mail to communicate with us. See our Privacy & Security page on 
www.henryford.com<http://www.henryford.com> for more detailed information as 
well as information concerning MyChart, our new patient portal. If you do not 
believe that our policy gives you the privacy and security protection you need, 
do not send e-mail or Internet communications to us.




Reply via email to