Yes, I've done exactly that before (well, not for mydocs). Where I had, on purpose, wanted everyone to be non-compliant. Just so that the results of the script that were echo'd with wscript.echo (or write-host w/posh) would show up in the DB.
If you want to test it quick; just do a posh script ConfigItem where it just does a write-host "hello" but "what means compliant" is the phrase "goodbye". and you'll see that the "non-compliant" value of hello will show up in your DB. in your case, the string that means compliant is say.. X so anything else would be wrong; and would show up in your db; the number you spit out with write-host On Thursday, February 19, 2015 3:40 PM, Dwayne Allen <[email protected]> wrote: You might be able to do it with a CI if you use a script (SCCM 2012). The output of the detection script actually gets written in the DB. Check out the InstancePatch field in the vDCMDeploymentNonCompliantRuleDetailsPerClientMachine view. ----- Dwayne Allen [email protected] (479) 310-0027 On Thu, Feb 19, 2015 at 3:11 PM, Beardsley, James <[email protected]> wrote: I’ve been asked to see if there is a way to gather the size of everyones My Documents. Is there anything within SCCM that I’m not thinking of that could do that? I’ve done this before with a package that simply runs a Powershell script that writes the folder size into a text file and then copies the text file to a central location on a network server. Then using another Powershell script, gather and combine all of the data in those txt files to one spreadsheet. Before I did that again, I wanted to see if maybe I’m overlooking a better way to get this done. A co-worker of mine started down the road of returning the folder size as an exit code and report on that but that didn’t turn out right. > >Thanks, > >James Beardsley | Firm Technology Group >Dixon Hughes Goodman LLP > > > >________________________________ > >Confidentiality Notice: This e-mail is intended only for the addressee named >above. It contains information that is privileged, confidential or otherwise >protected from use and disclosure. If you are not the intended recipient, you >are hereby notified that any review, disclosure, copying, or dissemination of >this transmission, or taking of any action in reliance on its contents, or >other use is strictly prohibited. If you have received this transmission in >error, please reply to the sender listed above immediately and permanently >delete this message from your inbox. Thank you for your cooperation. >

