28 10, 2014

How to combine powershell objects: Combine-Objects

By | October 28th, 2014|Functions, PowerShell|5 Comments

  How to combine powershell objects ? The fusion sounds like a good idea right ? That is cool but it ‘might’ be a bit time consuming if whe need to learn the dance and stuff 😉 Read below to see how I have done it. […]

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: