29 06, 2015

How to get configuration manager inventory data using PowerShell

By | June 29th, 2015|ConfigMgr, ConfigMgr 2007, ConfigMgr 2012, WMI|0 Comments

In order to find information from our environment,very often we go out query the information directly at the source, on the network. We will query 100 hundreds of computers to [...]

28 06, 2015

How to get missing software updates using PowerShell

By | June 28th, 2015|ConfigMgr, ConfigMgr 2012, Configuration Item tresor chest, PowerShell remoting, WMI|0 Comments

I needed to list all the missing Windows Updates that have been deployed through Configuration manager. This means, not the ones deployed through WSUS, nor the ones that have NOT been [...]

13 04, 2015

How to extend hardware inventory in configuration manager

By | April 13th, 2015|ConfigMgr, ConfigMgr 2012, PowerShell, WMI, wmi module|4 Comments

During the first meeting of the Basel Powershell UserGroup , I have done a presentation where I demonstrated how we could tattoo our Windows Image during a deployment for reporting purposes [...]

5 01, 2015

How to OSD tattoo a SCCM Windows image using PowerShell –> OSD Tattooer Script

By | January 5th, 2015|ConfigMgr, ConfigMgr 2007, ConfigMgr 2012, OSD, PowerShell, Sticky, WMI|44 Comments

OSD Tattooer Script Latest version  = 1.4.3 Version 1.4.3 is out! (16/08/2015)  I have added the following minor changes in version 1.4.3: Added Online help. Use get-help .\New-OSDTattoo.ps1 -Online to get [...]

30 11, 2014

WMI introduction presentation for the PowerShell Bengalore UserGroup (PSBUG)

By | November 30th, 2014|PowerShell, Series, UserGroup, WMI, WMI Week|0 Comments

  I just finished my presentation for the PowerShell Bengalore UserGroup (PSBUG). It was really a great session where almost 30 people attended it! Special thanks to dexter for having me [...]

26 09, 2014

How to manage WMI qualifiers with PowerShell [WMI week – day 5]

By | September 26th, 2014|PowerShell, WMI, wmi module, WMI Week|3 Comments

This is the 5th post of a series of 6 articles entitled "WMI Week". It tends to covers the automation tasks around WMI mainly using the powershell WMI module. The first gives a [...]

25 09, 2014

wmi properties powershell: How to manage them [WMI Week – Day 4]

By | September 25th, 2014|PowerShell, WMI, wmi module, WMI Week|5 Comments

This is the 4th post of a series of 6 articles entitled "WMI Week". It tends to covers the automation tasks around WMI mainly using the powershell WMI module. The first gives a [...]

10 09, 2014

Be ready for the PowerShell WMI week!!

By | September 10th, 2014|PowerShell, WMI, wmi module, WMI Week|8 Comments

I have been working quite a lot with WMI through the years. My different experiences, and my natural curiosity, brought me the knowledge that I have developped around WMI. Since I really like to automate things I have been naturally pushed to incorporate automation in all my taks, and a matter a fact, WMI and automation just go really well together. When I do not write Powershell scripts, I do OS deployments, or actually any tasks that can be handled with System center Configuration Manager. (2007 or 2012). This means from Application deployment, Endpoint protection, mobile device management, Software updates deployment, reporting all the way to client troubleshooting and  Bitlocker encryption remediation. In OS deployment, it is a common task to tatoo the WMI repository with information specific to the image, such as the version, task sequence used to deploy it, task sequence installation time, build version, etc… Besides OSD, custom WMI classes are often created in order to do reporting using the integrated reporting features from configmgr  2012. This is what brought me to write the WMI powershell module. With the 19 cmdlets that it contains (Currently in version 2.0 of the module) it is possible to manage the complete WMI repository and create NameSpaces, classes, properties, import/export .mof files and much more ! (Download link to the module is available below). Since Powershell might be a bit difficult for certain administrators, I have decided to write a couple of blog posts during the next 6 days in order to explain how you can leverage WMI by mainly  using the Powershell module for your environment. [stextbox id=”download”]Interested ? Download immediately the PowerShell WMI module here[/stextbox] The following topics will cover a lot of the differents WMI aspects. It could be though of something like a powershell wmi tutorial. See below for the complete list of topic I will cover in the next days: […]

22 08, 2014

PowerShell WMI module 2.0 is out!

By | August 22nd, 2014|module, PowerShell, WMI, wmi module, WMI Week|12 Comments

    [stextbox id=”info”]Updated to version 2.1 with some minor bug fixes[/stextbox]   Voila, I am very proud to publish version 2.0 2.1 of the Powershell WMI module. I have worked quite hard on it, and I think it is time to publish it, and share my knowledge with the community. You can download the powershell wmi module from the download section here under: [stextbox id=”download”]Download the powershell wmi module here.[/stextbox] How can I start using the Powershell WMI module? You have no idea where to start? no worries! I got your back! You can start from scratch and work all your way up to WMI pro in no time by following the WMI week blog posts I wrote. You will find everything you need to start right here! What’s new in powershell wmi module? Well, to start first, quite some new cmdlets came to the 9 already existing. Indeed, the version 2.0 of the powershell wmi module (WMI-Commands) comes with 10 new cmdlets. Wich brings the complete WMI range of action up to 19 cmdlets !! Yes, 19 cmdlets in order to manage your WMI repository ! The following list are the newly added functions : […]

12 08, 2014

How to get bitlocker recovery key ID

By | August 12th, 2014|Bitlocker, Functions, WMI|4 Comments

How to get the bitlocker recovery key ID ? This is a question that a colleague of mine asked me. He wanted to get the local bitlocker key, and compare it to the one stored in Active directory. I wrote him this function which will retrieve the protector ID (Bitlocker recovery ID) with the possibility to choose which protector to retrieve. [stextbox id=”note”]This function below would be the PowerShell equivalent as the : manage-bde -protectors c: -get command[/stextbox] The function is based on Win32_EncryptableVolume WMI class. This function can easily be extended, or even incorporated in other functions / scripts. Find the download link here below [stextbox id=”info”] Since the first developpement of this script, I have written a new cool tool name “BitlockerSAK” for “Bitlocker Swiss Army knife”. The bitlocker swiss army knifeallow to find the bitlocker recovery key id, but also a lot more neat stuff! You can get more information about BitlockerSAK right here –> “Bitlocker Swiss Army Knife” [/stextbox] […]

24 07, 2014

how to create custom wmi classes and properties with powershell (WMI module 1.0)

By | July 24th, 2014|Functions, module, PowerShell, WMI, wmi module|2 Comments

  ***** [important]New version of the PowerShell WMI module 2.0 is out. It has now 19 cmdlets in total! To get the latest version of it, click here [/important] *****                 Have you ever needed to create a new WMI property ? Have you ever needed to create that WMI property in a specefic (and new) WMI class ? Well, if you did, the WMI-Module is what you are looking for then ! After setting up the method on how to measure a Task sequence time (which I explained here), I needed to add it at the end of our task sequence in the “tatoo” section. In OSD, we generaly like to put the same information, in various locations : Registry, environment variable and in the WMI repository. The registry and environment variable are pretty easy (or lets say that was something I had already done before), but how do we actually add a WMI property and a new WMI class ? That is a good question right ? I have started to write some cmdlets in order to create a class, then a property, then to import or export MOF files, and sooner then I thought, I came up with the WMI PowerShell Module. And it is my turn to give something back to the PowerShell community. For now, the module is composed of the following cmdlets : […]

14 07, 2014

Top 6 things you need to know when scripting with SCCM

By | July 14th, 2014|ConfigMgr, ConfigMgr 2007, ConfigMgr 2012, Functions, PowerShell, Sticky, WMI|9 Comments

PowerShell and Configmgr 2007/2012: If you are searching to script with SCCM 2012 post sp1 edition, you must probably already know that there are tons of cmdlets available. Prior to SP1, there were no ‘official’ cmdlets available in order to automate different tasks on ConfigMgr 2012. That is actually the main reason why I started to develop my own PowerShell cmdlets and regroup them in a SCCM2012-Commands module.   If you are attempting to script something with SCCM 2012 after version SP1, you might be lucky, and have already everything right there. Simply load the console and then write the following command :

You will have the list of all the cmdlets available. Simply filter on the name to find what you are looking for. [important]The complete list of PowerShell cmdlets avaiable in Configuration manager is available right here.[/important] The SP1 brought a huge change to this; It brought A LOT of cmdlets !. Super happy to be, finally, able to automate things in configMgr 2012. It works great !   Except for a few cmdlets where actually we have to admit, a few bugs have been reported. These bugs are reported directly to Microsoft, and are correct (or not) generaly in the next cumulative update package. You have an issue with a cmdlet, and think it is a bug, verify if somone else has the same issue on the Interet, and especially, check out the “Microsoft Connect” web page. It contains all the current open points concerning issues and feature requests. [important]Be sure to check out the feedback page and vote for the new features or bug corrections you would like to see ![/important] […]

20 06, 2014

Sccm powershell module 2.0

By | June 20th, 2014|ConfigMgr, ConfigMgr 2007, Functions, module, PowerShell, Sticky, WMI|5 Comments

  Here it is, the latest version of the SCCM Powershell module. All the different functions I wrote, that were not yet existing in the version 1.0 made by Michael Niehaus , are now available in this new version of the SCCM PowerShell module. In total, there are more then 60 new Cmdlets that can be used in order to manage your SCCM infrastructure. PowerShell Configuration manager module 2.1 is out! (25/06/2015) You can download the module containing the 63 cmdlets on technet right here –> Technet download link (dont forget to rate it !)) The screen cap below recaps the complete list of cmdlets currently present in version 2.0.   This list contains 63 cmdlets in total. For now, I will stop the developpement, and publish it as is. The cmdlets are available here under. […]

Load More Posts
%d bloggers like this: