PowerShell

Free PowerShell Inventory Reports

By Garth Jones The other day a good friend of mine, Sherry Kissinger, created a method to inventory PowerShell (PoSH) with System Center 2012 Configuration Manager (CM12) and System Center Configuration Manager 2007 (CM07). I tested it out on CM12 and found that it worked great! However, it needed some reports, so I created some as a companion to her blog post. These reports were tested on CM12, but they should also work on CM07. The reports are titled as follows and they drill through from top to bottom: · PowerShell Dashboard · List of PCs by PowerShell Version · PowerShell Computer Details Prior to downloading the reports, you will need to read Sherry’s blog post and implement the mof edits. https://myitforum.com/myitforumwp/2013/12/31/configmgr-inventory-of-powershell-versions/ After y...

Automate "UDA Application" Installations During OSD

As I’m escaping the windowless lab a client has set up for me and seeking refuge in a well lit cafe for lunch, I chance upon a colleague who works for a national consulting firm. I invite him to join me, and after the initial pleasantries we start discussing our current projects. To our mutual amusement, we’re both working on Configuration Manager 2012 (ConfigMgr) implementations with desktop deployment components. It is at this point that my colleague shares with me that he is in a bit of a battle with his client over the installation of user assigned applications. User Device Affinity (UDA) is implemented and ConfigMgr Application and Package objects are assigned to User collections, and users do automatically obtain those application when they log onto a managed computer. Th...

How to find ConfigMgr Collection membership of client via Powershell?

During my session today at the ConfigMgr User Group in Zurich / CH I demoed a little Powershell function which will output all the Collection Names a device is a member of. Unfortunately, this cannot be done by default from the Admin Console. I know there are Console extensions doing EXACTLY the same, but I know of people who don’t want to install any extensions not made available by the vendor. This is why I wrote this little snippet which in turn can easily be turned into a function. 1: $ResID = (Get-CMDevice -Name "CLTwin7").ResourceID 2: $Collections = (Get-WmiObject -Class sms_fullcollectionmembership -Namespace rootsmssite_HQ1 -Filter "ResourceID = '$($ResID)'").CollectionID 3: foreach ($Collection … Continue reading →

ConfigMgr User Group Meeting in Zurich – my session

ConfigMgr User Group session slides For all of those who attended my session (or those who didn’t), here are the slides for my “ConfigMgr 2012 R2 & Powershell – Tips & Tricks & Tools”. For all those interested, I also attached a demo document created by my Inventory script. I talked a lot more than just what is on the slides, but if you weren’t there, you missed that Thanks everybody for this great day in Zurich (which actually isn’t the Swiss Capital!) Download:

SCCM 2012 – Get-DPSize

hi All, one of the main problems design a SCCM solution is always disk space. The main...

Windows Server 2012 R2 – IIS6 install state

In troubleshooting some ConfigMgr 2012 R2 web service point configuration problems in my home environment, I was having real problems trying to locate the install status of IIS6 Metabase and Compatibility components within the Server Manager GUI.  Ultimately I turned to PowerShell to get the answer I needed. (in fact, I’m still trying to find […]

How to rename ConfigMgr 2012 Folders with Powershell

A few days ago I was asked how one could rename a lot of Folders in the Configuration Manager Admin Console. ConfigMgr Powershell cmdlets Folders are a bit neglected by Microsoft. They can’t be used for Security stuff, scoping or anything else besides putting stuff there. That said you can’t create Folders via the built-in Powershell cmdlets, you can’t move them or delete them, so you can’t rename them. For all this you still need to use WMI! I said it again Here are two of my previous posts showing what you can do: How to create Folders in ConfigMgr 2012 Delete Folder Structure in ConfigMgr 2012 This article here … Continue reading →

SCCM 2012 – Set Security Scope (Part 1)

Hi All, have you ever tried to set a security scope to applications that are on a...

SCCM 2012 R2 – Required by

Hi All, have you ever tried to discover what machine needs the update that you are looking...

PowerShell: Identify Hard-Wired Network Connections

As is often with scripting, automation and tool making, we find ourselves needing to ensure we have a stable (wired) network connection before performing certain tasks on a system.  Whether it be for automating a domain join or simply copying a large file, ensuring you have that hard-wired connection can be critical. After researching the internet and interrogating WMI on a few different test systems, I concluded that leveraging the Win32_NetworkAdapterConfiguration class was going to be my best option.  In one line of code we can get a collection of all hard-wired network connections on a system. Read the full post

ConfigMgr – Application Base variables the easy way with Powershell

This article I planned on writing for some time now (as a lot of others) but didn’t find the time yet. The topic itself isn’t new, it’s the solution that’s cool (although itself also not too new). Install Applications according to dynamic variable list There is more than one way of how you can install applications (and packages) during a Task Sequence and each of them has its pros and cons. There is the “Install Application” step which lets you chose the applications you want to have installed: This is really easy, as long as you don’t want to install more than nine (9) applications in one step. The tenth … Continue reading →