active 19 hours, 14 minutes agoPublic Group
This area is for sharing scripts and script documentation.
- fso_subfolder_sizes.vbs.txt (1.5k) This is somewhat related to Config Manager, but if I should post this elsewhere please let me know? I am trying to run a script to enumerate the folders and folder sizes on one of our Distribution Points (every folder beneath the Package Share). I\'m using the FileSystemObject API, with VBscript, I can crawl about 60% of the sub-folders, and get their names and sizes, but then the rest return error 70 / Permission Denied. It doesn\'t matter what account I execute the script as, and I\'ve tried adding a Sleep() delay between each sub-folder object reference. It still won\'t get them all. If I manually explore the folders, I can view their properties without any problem. Is this a known issue with FSO or maybe Windows Scripting Host? I\'ve attached the script in case it helps clarify what I\'m doing (or doing incorrectly).
- WMI Diagnosis Tool 2.1 (548.3k) The WMI Diagnosis Tool is a VBScript based-tool for testing, validating and analyzing a WMI installation. The tool collects data from WMI installations on computers Windows 2000 (all service packs), Windows XP (all service packs), Windows 2003 (all service packs), Windows Vista (all service packs), Windows Server 2008 (all service packs), Windows 7(all service packs) and Windows Server 2008 R2 (all service packs).
- Powershell script to clean up StateStore folder only if load state was successful (687b) This scripts check to see if load state completed sucessfully or not, and creates a task sequence variable. This variable can then be used to determine if USMTUtils.exe should be run or not to remove the user state folder. For more information on how to put this into practice along and screen shoots can be found here, http://www.industrialarcservices.com.au/2012/07/03/script-to-clean-up-statestore-folder-only-if-load-state-was-successful/
- Parse Dan Thomson Client Health Check Logs (3.6k) Reads all of the client health logs from Dan Thomson\\\'s scripts and outputs a CSV file.
- cm07servercheck.zip (171.9k) Version 1.01: Document your server configuration – instructions can be found here: http://chadtill.wordpress.com/2012/03/26/document-your-configuration-manager-implementation/ Fixed a bug in the way expired advertisements are reported.
- PowerShell script to check ConfigMgr agent software update assignment compliance (1.6k) Full info: http://myitforum.com/myitforumwp/2012/03/29/powershell-script-to-check-configmgr-agent-software-update-assignment-compliance/
- Change SCCM Cache Size Package (597b) Usage: cscript.exe sccmcache.vbs Full details: http://myitforum.com/myitforumwp/2012/03/29/change-sccm-cache-size-package/
- cm07servercheck.zip (170.4k) Document your server configuration - instructions can be found here: http://chadtill.wordpress.com/2012/03/26/document-your-configuration-manager-implementation/
- Find the members in admin group for a remote computer (339b) Use this PowerShell script to retrieve the list of accounts in the Administrator group on a remote computer.
- sccmconfigurationoptionsdemo.zip (919.8k) In the last few months I have had to develop a few solutions for managing options presented to end-users during task sequence execution. This has made me think of other, more dynamic or automatic methods of presenting these options and as such I have spent some time creating a mini solutions accelerator to allow SCCM administrators to automatically present selectable options to the end-user. Presenting options during a task sequence build is nothing new but usually requires that a package is maintained and options presented to the end user are kept within the package. This solutions accelerator uses a connection to the SCCM console to automatically present not only the options available but also a short description about the selectable option. From the solutions overview of the docx document... \"The process delivered in this framework allows the SCCM administrator to create collections in the SCCM console that are immediately available to the end-user for selection. The entire solution is built using an SCCM task sequence, HTA, MDT 2012 ServiceUI utility and SCCM hardware inventory and presents the user a selection of automatically determined options.\"
- Updating a SCCM Collection From a Customer SQL table by script with email of failed adds (3.9k) Recently I had a request to automate the updates to a collection for a customer so they could run reports on their own. So I set out to create a script that would allow me to do enable this to work as well as provide both them and my own team some information on clients that couldn’t be added to the collection. After tinkering around with it a bit, I have everything working the way I want it to and sending a nice email to them letting them know their servers don’t. The basic flow of the script is like this… Make connection to our SCCM server. Connect to Customer DB and read their servers into an array. clean collection of any existing Direct membership rules. Add new systems to collection including error checking. Send recipients email with results of non-functioning SCCM clients. For this to work in your environment you will need to change the following lines Line 68 strSMSServer Line 69 strCollID Line 94 Customer DB connection(sql server name, userid, user password, customer db) Line 96 Customer_Table/View Line 192 add/remove SiteCodes as needed Line 248-249 – From and to email addresses Line 252,255,258 Change the parenthesis Team names to the correct names that reflect your situation. Line 264 Change the email server name to your smtp server. Make sure you always test your code before using it in production environment.
- Export all unsealed OpsMgr MPs (230b) Use this PowerShell script to export all unsealed OpsMgr management packs.
- System Center Configuration Manager Inbox Monitor Script (1.1k) The inboxes are an important item for the everyday SCCM administrator to monitor and watch for back logs, hangups and troubleshooting. This script will do just that and for quick glance you will see boxes that are above thresh-hold you set in red and ones below in green.
- PowerShell Scriptlet to make the OpsMgr connection (277b) PowerShell Scriptlet to make the OpsMgr connection
- PowerShell Scriptlet to initialize the OpsMgr Snapin (281b) PowerShell Scriptlet to initialize the OpsMgr Snapin