You may find yourself in a position where you’ve got to document the SCCM solution that you’ve just deployed. MVP, and PowerShell guru, David O’Brien has taken away the pain of the labourious hours that would be normally spent doing this and popped it all into a PowerShell script that takes minutes to run…..just don’t tell your boss!
The requirements to run the script are:
- Microsoft System Center 2012 Configuration Manager SP1 (at least)
- Powershell 3.0
- installed ConfigMgr Admin GUI
- read-access to the site
- English installation of Microsoft Word
You can run this locally on the SCCM server or remotely. Personally I ran this on my laptop as I had Word installed there.
How to execute
Load PowerShell x86 as administrator on your system. Change directory to C:\Program Files (x86)\Microsoft Configuration Manager\bin.
Run the command import-module .\ConfigurationManager.psd1 -verbose to import the Configuration Manager PowerShell cmdlets.
When the module has imported change to the folder location where the Inventory Documentation Script has been downloaded to and run the following command:
.\CM12_Inventory.ps1 -SMSProvider <FQDN> -Verbose
The script will start, Word will populate with data. Grab a coffee and your documentation will be done when you get back. Enjoy!
For more details and many more PS scripts check out David’s blog. Very much recommended.